Update .gitlab-ci.yml

0.6.3
Bret Curtis 7 years ago
parent 516fc0283b
commit dcba3a1058

@ -1,6 +1,4 @@
# use the official gcc image, based on debian
# can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
linux-stable:
image: gcc
cache:
@ -30,13 +28,15 @@ build:
artifacts:
paths:
- build/artifacts/
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
cache:
darwin:
build:
stage: build
script:
- cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi
- mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../
- make -j$cores_to_use
- DESTDIR=artifacts make install
artifacts:
paths:
- "*.o"
- build/artifacts/
# TODO: run tests using the binary built before
#test:
# stage: test
# script:
# - ls

Loading…
Cancel
Save