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
93 - junit2html nitunit.xml
107 - nitls lib src examples contrib
108 - nitls -Pp lib src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
109 - xargs nitpick < list.txt
116 - make -C contrib/asteronits android
119 - contrib/asteronits/bin/*.apk
121 # TEST FULL #########################################################
129 - ./testfull.sh | tee log.txt
130 - grep -v '=>' log.txt > ../status.txt || true
147 - ./testfull.sh --engine niti | tee log.txt
148 - grep -v '=>' log.txt > ../status.txt || true
165 - ./testfull.sh --engine nitcg | tee log.txt
166 - grep -v '=>' log.txt > ../status.txt || true
183 - ./testfull.sh --engine nitce | tee log.txt
184 - grep -v '=>' log.txt > ../status.txt || true
201 - ./testfull.sh --engine nitcsg | tee log.txt
202 - grep -v '=>' log.txt > ../status.txt || true
213 # LIB, CONTRIB AND OOT ##############################################
220 - nitls -Pp lib | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
221 - xargs nitunit -v < list.txt| tee log.txt
222 - grep -e KO log.txt > status.txt || true
223 - tail -3 log.txt >> status.txt
224 - junit2html nitunit.xml
238 - nitls -Pp src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
239 - xargs nitunit -v < list.txt| tee log.txt
240 - grep -e KO log.txt > status.txt || true
241 - tail -3 log.txt >> status.txt
242 - junit2html nitunit.xml
256 - misc/jenkins/check_contrib.sh all check
257 - grep 'error message' *.xml > status.txt || true
258 - test ! -s status.txt # no lines, no errors
260 test_contribs_android:
265 - misc/jenkins/check_contrib.sh android
266 - grep 'error message' *.xml > status.txt || true
268 - find . -name '*.apk' -exec mv {} apk/debug/ ";"
269 - test ! -s status.txt # no lines, no errors
270 - misc/jenkins/check_contrib.sh android-release
271 - grep 'error message' *.xml > status.txt || true
272 - mkdir -p apk/release
273 - find . -name '*.apk' -exec mv {} apk/release ";"
274 - test ! -s status.txt # no lines, no errors
287 - grep 'error message' *.xml > ../status.txt || true
288 # Errors are somewhat expected
290 # MISC ##############################################################
307 - ./bench_engines.sh --fast --fast --html options
308 - grep -B1 'error message' *.xml | grep testcase > ../status.txt || true
318 # MORE TOOLS ########################################################
326 - make -C "contrib/nitcc"
339 - mkdir -p valgrind.out
340 - nitc src/nitc.nit # To warm-up the cache
341 - src/valgrind.sh --callgrind-out-file=valgrind.out/nitc.nitc.out nitc src/nitc.nit -vv
342 - callgrind_annotate valgrind.out/nitc.nitc.out > valgrind.out/nitc.nitc.txt
343 - src/valgrind.sh --callgrind-out-file=valgrind.out/niti.niti.out nit -- src/nit.nit tests/base_simple3.nit -vv
344 - callgrind_annotate valgrind.out/niti.niti.out > valgrind.out/niti.niti.txt
355 - nitdoc -d nitdoc.out --keep-going lib src
365 - nitmetrics --all --log --log-dir nitmetrics.out --dir nitmetrics.out --keep-going lib src
375 - misc/jenkins/check_contrib.sh pre-build
380 - nitcatalog -d catalog.out lib/ examples/ contrib/ contrib/oot/