-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
37 lines (37 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
- xvfb
before_script:
- export DISPLAY=:99.0
- git fetch --unshallow
env:
global:
- GENERATE="runMain org.combinators.solitaire"
matrix:
include:
- language: scala
jdk: openjdk8
script:
- sbt compile
- rm -r Invalid/*
- rm -r Valid/*
- pwd
- ls
- while read i; do
variant=$(echo "$i" | tr -d '\n');
echo $variant;
sbt "$GENERATE.$variant";
mv -f generated/src/main/java/org/combinators/solitaire/* src/test/java/org/combinators/solitaire/;
if sbt test; then
mv src/test/java/org/combinators/solitaire/* Valid; else
mv src/test/java/org/combinators/solitaire/* Invalid;
fi;
done < travis.txt
- git config --global user.email "[email protected]";
- git config --global user.name "gilchristb78";
- git add Valid/ Invalid/;
- git commit -m"Travis Tests Results";
- git push --force "https://${GH_TOKEN}@github.com/gilchristb78/Valid" HEAD:main;
- cd Valid
- ls
- cd ../Invalid
- ls