Skip to content
Snippets Groups Projects
Verified Commit 275e36d8 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

edit gitlab-ci: dont allow failure anymore!!!

parent 5e01fa6d
No related branches found
No related tags found
No related merge requests found
Pipeline #219 passed with stages
in 13 minutes and 49 seconds
......@@ -38,7 +38,6 @@ test-positive-whole:
- ./run.sh parse src/test/data/pa2/sample/ast_coverage.py ast_coverage.ast.gi
- ./run.sh type ast_coverage.ast.gi ast_coverage.typed.gi
- diff ast_coverage.typed.gi src/test/data/pa2/sample/ast_coverage.py.ast.typed
allow_failure: true
# code_quality:
# image: docker:stable
......
......@@ -12,7 +12,9 @@ if [[ "$task" = parse ]]; then
elif [[ "$task" = type ]]; then
java -cp "$classPath" chocopy.ChocoPy --pass=.s --out "$output" "$input"
elif [[ "$task" = ass ]]; then
java -cp "$classPath" chocopy.ChocoPy --pass=.s --dir src/test/data/pa2/sample --test
java -cp "$classPath" chocopy.ChocoPy --pass=.s --dir src/test/data/pa2/sample --test | tee /tmp/cs164_ass.log
# Should pass all positive test, else return error_code=2
cat /tmp/cs164_ass.log | grep Test: | grep failed | grep -v sample/bad_ && exit 2 || exit 0
elif [[ "$task" = build ]]; then
mvn clean package > /dev/null 2>&1 && echo success || echo failed
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment