Skip to content

Commit 76c1a08

Browse files
author
Karl-Johan Alm
committed
replace travis with Cirrus CI
1 parent aa5b0a1 commit 76c1a08

File tree

5 files changed

+29
-8
lines changed

5 files changed

+29
-8
lines changed

.cirrus.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2.1
2+
3+
container:
4+
image: node:latest
5+
6+
check_task:
7+
test_script: scripts/test_all.sh

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/diffcheck.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true
4+
if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null; then
5+
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/before.diff || true
6+
newdiff=$(diff -s /tmp/before.diff /tmp/after.diff -u | grep '^+')
7+
if [ -n "$newdiff" ]; then
8+
echo "$newdiff"
9+
exit 1
10+
fi
11+
else
12+
echo 'Cannot build previous commit table for comparison'
13+
fi

scripts/link-format-chk.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
ECODE=0
1010
FILES=""
11-
for fname in $(git diff --name-only HEAD $(git merge-base HEAD master)); do
11+
git fetch origin master
12+
for fname in $(git diff --name-only HEAD $(git merge-base HEAD origin/master)); do
1213
if [[ $fname == *.mediawiki ]]; then
1314
GRES=$(grep -n '](http' $fname)
1415
if [ "$GRES" != "" ]; then

scripts/test_all.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# test_link_format:
3+
scripts/link-format-chk.sh
4+
# test_buildtable:
5+
scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
6+
# test_diff:
7+
scripts/diffcheck.sh

0 commit comments

Comments
 (0)