26 - export CCACHE_DIR=$PWD/.ccache
27 - export GRADLE_USER_HOME=$PWD/.gradle
28 - export PATH=$PWD/bin:$PATH
29 - git config --add github.oauthtoken "$GITHUB_OAUTHTOKEN" # needed for github api rate limit
33 - du -sh .gradle || true
34 - type -a nitc nitdoc || true # is there some nit tools?
38 - export CCACHE_DIR=$PWD/.ccache
40 - du -sh .gradle || true
41 - git status --ignored
45 # BASIC JOBS ########################################################
50 - misc/jenkins/checkwhitespaces.sh | tee -a status.txt
51 - misc/jenkins/checksignedoffby.sh | tee -a status.txt
52 - misc/jenkins/checklicense.sh | tee -a status.txt
59 - misc/jenkins/check_manpages.sh
74 - ./search_tests_git.sh origin/master HEAD > list
75 - ./testall.sh `cat list` | tee log.txt
76 - grep -v '=>' log.txt > ../status.txt || true
90 - git diff --name-only origin/master..HEAD -- "*.nit" "*.res" "README.*" | grep -v "^tests/" > list0.txt || true
91 - xargs nitls -pP < list0.txt > list.txt
92 - xargs nitunit < list.txt
106 - nitls lib src examples contrib
107 - nitls -Pp lib src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
108 - xargs nitpick < list.txt
115 - make -C contrib/asteronits android
118 - contrib/asteronits/bin/*.apk
120 # TEST FULL #########################################################
128 - ./testfull.sh | tee log.txt
129 - grep -v '=>' log.txt > ../status.txt || true
146 - ./testfull.sh --engine niti | tee log.txt
147 - grep -v '=>' log.txt > ../status.txt || true
164 - ./testfull.sh --engine nitcg | tee log.txt
165 - grep -v '=>' log.txt > ../status.txt || true
182 - ./testfull.sh --engine nitce | tee log.txt
183 - grep -v '=>' log.txt > ../status.txt || true
200 - ./testfull.sh --engine nitcsg | tee log.txt
201 - grep -v '=>' log.txt > ../status.txt || true
212 # LIB, CONTRIB AND OOT ##############################################
219 - nitls -Pp lib | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
220 - xargs nitunit -v < list.txt| tee log.txt
221 - grep -e KO log.txt > status.txt || true
222 - tail -3 log.txt >> status.txt
236 - nitls -Pp src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
237 - xargs nitunit -v < list.txt| tee log.txt
238 - grep -e KO log.txt > status.txt || true
239 - tail -3 log.txt >> status.txt
253 - misc/jenkins/check_contrib.sh all check
254 - grep 'error message' *.xml > status.txt || true
255 - test ! -s status.txt # no lines, no errors
257 test_contribs_android:
262 - misc/jenkins/check_contrib.sh android
263 - grep 'error message' *.xml > status.txt || true
265 - find . -name '*.apk' -exec mv {} apk/debug/ ";"
266 - test ! -s status.txt # no lines, no errors
267 - misc/jenkins/check_contrib.sh android-release
268 - grep 'error message' *.xml > status.txt || true
269 - mkdir -p apk/release
270 - find . -name '*.apk' -exec mv {} apk/release ";"
271 - test ! -s status.txt # no lines, no errors
284 - grep 'error message' *.xml > ../status.txt || true
285 # Errors are somewhat expected
287 # MISC ##############################################################
304 - ./bench_engines.sh --fast --fast --html options
305 - grep -B1 'error message' *.xml | grep testcase > ../status.txt || true
315 # MORE TOOLS ########################################################
323 - make -C "contrib/nitcc"
337 - nitdoc -d nitdoc.out --keep-going lib src
347 - misc/jenkins/check_contrib.sh pre-build
352 - nitcatalog -d catalog.out lib/ examples/ contrib/ contrib/oot/