Update .gitlab-ci.yml

This commit is contained in:
FelixBrendel
2020-04-07 09:46:16 +00:00
parent d10e7fe3ca
commit 5280fa6586
+40 -2
View File
@@ -1,2 +1,40 @@
build_and_run:
script: "./build.sh"
default:
image: warchantua/dev-essential
artifacts:
paths:
- ./bin/slime
- ./bin/slime_d
expire_in: 1 week
stages:
- build_debug
- build_release
- test
build_clang++_d:
stage: build_debug
script: clang++ -D_DEBUG -D_DONT_BREAK_ON_ERRORS src/main.cpp -gfull -gdwarf -o ./bin/slime_d --std=c++17 -I3rd/
build_g++_d:
stage: build_debug
script: g++ -D_DEBUG -D_DONT_BREAK_ON_ERRORS src/main.cpp -gfull -gdwarf -o ./bin/slime_d --std=c++17 -I3rd/
build_clang++_r:
stage: build_release
script: clang++ -D_DONT_BREAK_ON_ERRORS -O3 src/main.cpp -g -o ./bin/slime --std=c++17 -I3rd/ || exit 1
build_g++_r:
stage: build_release
script: g++ -D_DONT_BREAK_ON_ERRORS -O3 src/main.cpp -g -o ./bin/slime --std=c++17 -I3rd/ || exit 1
tests_d:
stage: test
script: ./bin/sime_d --run-tests
tests_r:
stage: test
script: ./bin/sime --run-tests
valgrind:
stage: test
script: valgrind ./bin/sime --run-tests