X-Git-Url: http://nitlanguage.org diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a70ece..a5b482a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,8 @@ image: nitlang/nit-ci cache: paths: - .ccache + - .gradle/caches + - .gradle/wrapper key: "$CI_JOB_NAME" stages: @@ -14,16 +16,19 @@ stages: before_script: - date - export CCACHE_DIR=$PWD/.ccache + - export GRADLE_USER_HOME=$PWD/.gradle - export PATH=$PWD/bin:$PATH - pwd - ccache -s - ccache -M 500M + - du -sh .gradle || true - type -a nitc nitdoc || true # is there some nit tools? - "> status.txt" after_script: - export CCACHE_DIR=$PWD/.ccache - ccache -s + - du -sh .gradle || true - git status --ignored - date - tail status.txt @@ -81,7 +86,7 @@ nitunit_some: dependencies: - build_tools script: - - git diff --name-only origin/master..HEAD -- "*.nit" "*.res" "README.*" | grep -v "^tests/" > list0.txt + - git diff --name-only origin/master..HEAD -- "*.nit" "*.res" "README.*" | grep -v "^tests/" > list0.txt || true - xargs nitls -pP < list0.txt > list.txt - xargs nitunit < list.txt artifacts: @@ -98,9 +103,19 @@ nitpick_full: - build_tools script: - nitls lib src examples contrib - - nitls -Pp lib src examples | grep -v -f tests/gitlab_ci.skip > list.txt # filter what is skipped by tests.sh + - nitls -Pp lib src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh - xargs nitpick < list.txt +basic_android: + stage: test + dependencies: + - build_tools + script: + - make -C contrib/asteronits android + artifacts: + paths: + - contrib/asteronits/bin/*.apk + # TEST FULL ######################################################### test_full_nitcs: @@ -200,7 +215,7 @@ nitunit_lib: dependencies: - build_tools script: - - nitls -Pp lib | grep -v -f tests/gitlab_ci.skip > list.txt # filter what is skipped by tests.sh + - nitls -Pp lib | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh - xargs nitunit -v < list.txt| tee log.txt - grep -e KO log.txt > status.txt || true - tail -3 log.txt >> status.txt @@ -217,7 +232,7 @@ nitunit_src: dependencies: - build_tools script: - - nitls -Pp src examples | grep -v -f tests/gitlab_ci.skip > list.txt # filter what is skipped by tests.sh + - nitls -Pp src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh - xargs nitunit -v < list.txt| tee log.txt - grep -e KO log.txt > status.txt || true - tail -3 log.txt >> status.txt