|
|
@ -1,13 +1,15 @@
|
|
|
|
# use the official gcc image, based on debian
|
|
|
|
stages:
|
|
|
|
# can use verions as well, like gcc:5.2
|
|
|
|
- build
|
|
|
|
# see https://hub.docker.com/_/gcc/
|
|
|
|
|
|
|
|
image: gcc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Debian:
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- docker
|
|
|
|
|
|
|
|
- linux
|
|
|
|
|
|
|
|
image: gcc
|
|
|
|
cache:
|
|
|
|
cache:
|
|
|
|
key: apt-cache
|
|
|
|
key: apt-cache
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- apt-cache/
|
|
|
|
- apt-cache/
|
|
|
|
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
before_script:
|
|
|
|
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
|
|
|
|
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
|
|
|
|
- apt-get update -yq
|
|
|
|
- apt-get update -yq
|
|
|
@ -19,8 +21,6 @@ before_script:
|
|
|
|
- curl http://ftp.us.debian.org/debian/pool/main/m/mygui/libmyguiengine3debian1v5_3.2.2+dfsg-1_amd64.deb -o libmyguiengine3debian1v5_3.2.2+dfsg-1_amd64.deb
|
|
|
|
- curl http://ftp.us.debian.org/debian/pool/main/m/mygui/libmyguiengine3debian1v5_3.2.2+dfsg-1_amd64.deb -o libmyguiengine3debian1v5_3.2.2+dfsg-1_amd64.deb
|
|
|
|
- curl http://ftp.us.debian.org/debian/pool/main/m/mygui/libmygui-dev_3.2.2+dfsg-1_amd64.deb -o libmygui-dev_3.2.2+dfsg-1_amd64.deb
|
|
|
|
- curl http://ftp.us.debian.org/debian/pool/main/m/mygui/libmygui-dev_3.2.2+dfsg-1_amd64.deb -o libmygui-dev_3.2.2+dfsg-1_amd64.deb
|
|
|
|
- dpkg --ignore-depends=libmygui.ogreplatform0debian1v5 -i *.deb
|
|
|
|
- dpkg --ignore-depends=libmygui.ogreplatform0debian1v5 -i *.deb
|
|
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi
|
|
|
|
- cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi
|
|
|
@ -30,13 +30,17 @@ build:
|
|
|
|
artifacts:
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- build/artifacts/
|
|
|
|
- build/artifacts/
|
|
|
|
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
|
|
|
|
MacOS:
|
|
|
|
cache:
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- macos
|
|
|
|
|
|
|
|
- xcode
|
|
|
|
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
|
|
|
- rm -fr build/* # remove anything in the build directory
|
|
|
|
|
|
|
|
- CI/before_install.osx.sh
|
|
|
|
|
|
|
|
- CI/before_script.osx.sh
|
|
|
|
|
|
|
|
- cd build; make -j2 package
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- "*.o"
|
|
|
|
- build/OpenMW-*.dmg
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: run tests using the binary built before
|
|
|
|
|
|
|
|
#test:
|
|
|
|
|
|
|
|
# stage: test
|
|
|
|
|
|
|
|
# script:
|
|
|
|
|
|
|
|
# - ls
|
|
|
|
|