Browse Source

Switch from Travis CI to GitHub Actions

While Travis CI has served us well in the past, the recent changes made it unusable. Farewell Travis CI!
master
ooxi 3 years ago
parent
commit
69b2c47089
5 changed files with 46 additions and 15 deletions
  1. +24
    -0
      .github/workflows/ci.yaml
  2. +21
    -0
      .mc/rebuild.sh
  3. +0
    -0
      .mc/ubuntu:16.04.yaml
  4. +0
    -14
      .travis.yml
  5. +1
    -1
      README.md

+ 24
- 0
.github/workflows/ci.yaml View File

@@ -0,0 +1,24 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull
# request events but only for the main branch
on:
push:
branches:
- master
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 15 * *'


jobs:
ci:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Build and TesT
run: npx --package mini-cross@0.15.2 mc --no-tty ubuntu:16.04 .mc/rebuild.sh


+ 21
- 0
.mc/rebuild.sh View File

@@ -0,0 +1,21 @@
#!/bin/bash

set -e


# @see https://stackoverflow.com/a/1482133
DIRECTORY_OF_SCRIPT=`dirname "$(readlink -f "$0")"`

SOURCE_DIRECTORY="${DIRECTORY_OF_SCRIPT}/.."
BUILD_DIRECTORY="${DIRECTORY_OF_SCRIPT}/../build"


if [ -d "${BUILD_DIRECTORY}" ]; then
rm -rf "${BUILD_DIRECTORY}"
fi
mkdir "${BUILD_DIRECTORY}"

(cd "${BUILD_DIRECTORY}" && cmake -DCMAKE_BUILD_TYPE=Release ..)
make --directory "${BUILD_DIRECTORY}" --silent
make --directory "${BUILD_DIRECTORY}" --silent test


mc.yaml → .mc/ubuntu:16.04.yaml View File


+ 0
- 14
.travis.yml View File

@@ -1,14 +0,0 @@
language: c
compiler:
- gcc
- g++
before_install:
- sudo apt-get update
- sudo apt-get install cmake valgrind
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DXML_PARSER_VERBOSE=On ..
- make
after_script:
- make test


+ 1
- 1
README.md View File

@@ -6,7 +6,7 @@ which also just parses an xml subset, [xml.c](https://github.com/ooxi/xml.c) is
a simple, small and self contained xml parser in one file. Ideal for embedding a simple, small and self contained xml parser in one file. Ideal for embedding
into other projects without the need for big external dependencies. into other projects without the need for big external dependencies.


[![Build Status](https://secure.travis-ci.org/ooxi/xml.c.png)](http://travis-ci.org/ooxi/xml.c)
[![Build Status](https://github.com/ooxi/xml.c/actions/workflows/ci.yaml/badge.svg)](https://github.com/ooxi/xml.c/actions)




Downloads Downloads


Loading…
Cancel
Save