Squashed 'shared/c-list/' changes from 2e4b605c6217..ac7c83139821

ac7c83139821 ci: switch to c-util automation
6c53ef1c0066 ci: switch to github-actions
b1cd4dbf967d Fix assignment instead of comparison
50e67beedbd9 ci: drop broken armv7hl

git-subtree-dir: shared/c-list
git-subtree-split: ac7c831398219acd8d63038e866035a6f86f9e21
This commit is contained in:
Thomas Haller 2020-06-03 21:59:32 +02:00
parent 5fceb23fa4
commit 722510b73d
4 changed files with 25 additions and 37 deletions

View file

@ -1,12 +0,0 @@
#!/bin/bash
set -e
rm -Rf "./ci-build"
mkdir "./ci-build"
cd "./ci-build"
${CHERRY_LIB_MESONSETUP} . "${CHERRY_LIB_SRCDIR}"
${CHERRY_LIB_NINJABUILD}
${CHERRY_LIB_MESONTEST}
(( ! CHERRY_LIB_VALGRIND )) || ${CHERRY_LIB_MESONTEST} "--wrapper=${CHERRY_LIB_VALGRINDWRAP}"

21
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Continuous Integration
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
ci:
name: CI with Default Configuration
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v2
- name: Run through C-Util CI
uses: c-util/automation/src/ci-c-util@v1
with:
m32: 1
valgrind: 1

View file

@ -1,21 +0,0 @@
os: linux
dist: trusty
language: c
services:
- docker
before_install:
- curl -O -L "https://raw.githubusercontent.com/cherry-pick/cherry-images/v1/scripts/vmrun"
- curl -O -L "https://raw.githubusercontent.com/cherry-pick/cherry-ci/v1/scripts/cherryci"
- chmod +x "./vmrun" "./cherryci"
jobs:
include:
- stage: test
script:
- ./vmrun -- ../src/cherryci -d ../src/.cherryci -s c-util -m
- script:
- ./vmrun -T armv7hl -- ../src/cherryci -d ../src/.cherryci -s c-util
- script:
- ./vmrun -T i686 -- ../src/cherryci -d ../src/.cherryci -s c-util

View file

@ -125,15 +125,15 @@ static void test_swap(void) {
assert(c_list_first(&list1) == &list);
assert(c_list_last(&list1) == &list);
assert(list.next = &list1);
assert(list.prev = &list1);
assert(list.next == &list1);
assert(list.prev == &list1);
c_list_swap(&list1, &list2);
assert(c_list_first(&list2) == &list);
assert(c_list_last(&list2) == &list);
assert(list.next = &list2);
assert(list.prev = &list2);
assert(list.next == &list2);
assert(list.prev == &list2);
assert(list1.prev == list1.next && list1.prev == &list1);
}