[CI]try optimize build

This commit is contained in:
Edouard DUPIN 2020-08-16 23:43:49 +02:00
parent 4689131547
commit 03d53ecba5

View File

@ -12,7 +12,7 @@ stages:
- build
- test
ci_style:
style_job:
stage: style
script:
- export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
@ -20,16 +20,20 @@ ci_style:
- java -jar checkstyle.jar -c CheckStyle.xml `find src/ -name "*.java"`
- java -jar checkstyle.jar -c CheckStyle.xml `find test/src/ -name "*.java"`
ci_build:
build_job:
stage: build
dependencies:
- style_job
script:
- export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
- eval echo "~$USER"
- ant clean
- ant build
ci_test:
test_job:
stage: test
dependencies:
- build_job
script:
- export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
- ant clean build TestBasicLog