Procházet zdrojové kódy

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 před 3 roky
rodič
revize
69b2c47089
5 změnil soubory, kde provedl 46 přidání a 15 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor


+ 0
- 14
.travis.yml Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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
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


Načítá se…
Zrušit
Uložit