Skip to content

Commit

Permalink
Merge: fix ci nitunit some
Browse files Browse the repository at this point in the history
When there is no change in watched nit files, the job `nitunit_some` failed.

Pull-Request: nitlang#2770
  • Loading branch information
privat committed Jul 15, 2019
2 parents 5e0aa41 + a54cfd3 commit bf0c76c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ before_script:
- git config --add github.oauthtoken "$GITHUB_OAUTHTOKEN" # needed for github api rate limit
- pwd
- ccache -s
- ccache -z
- ccache -M 500M
- du -sh .gradle || true
- type -a nitc nitdoc || true # is there some nit tools?
Expand Down Expand Up @@ -89,6 +90,7 @@ nitunit_some:
script:
- git diff --name-only origin/master..HEAD -- "*.nit" "*.res" "README.*" | grep -v "^tests/" > list0.txt || true
- xargs nitls -pP < list0.txt > list.txt
- test -s list.txt || exit 0
- xargs nitunit < list.txt
- junit2html nitunit.xml
artifacts:
Expand Down

0 comments on commit bf0c76c

Please sign in to comment.