1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 15:15:31 +00:00

Update .gitlab-ci.yml

This commit is contained in:
Bret Curtis 2018-06-22 15:13:09 +00:00
parent 516fc0283b
commit dcba3a1058

View file

@ -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