Преглед изворни кода

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 година
родитељ
комит
69b2c47089
5 измењених фајлова са 46 додато и 15 уклоњено
  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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку


+ 0
- 14
.travis.yml Прегледај датотеку

@@ -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 Прегледај датотеку

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


Loading…
Откажи
Сачувај