While Travis CI has served us well in the past, the recent changes made it unusable. Farewell Travis CI!master
@@ -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 | |||||
@@ -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 | |||||
@@ -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 | |||||
@@ -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 | ||||