2018-06-22 15:14:09 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2018-06-23 13:22:20 +00:00
|
|
|
Debian:
|
2018-06-22 15:29:27 +00:00
|
|
|
tags:
|
2018-06-22 16:41:20 +00:00
|
|
|
- docker
|
2018-06-22 15:29:27 +00:00
|
|
|
- linux
|
2018-06-22 15:13:09 +00:00
|
|
|
image: gcc
|
2018-06-12 12:46:19 +00:00
|
|
|
cache:
|
2018-06-22 15:13:09 +00:00
|
|
|
key: apt-cache
|
2018-06-12 12:46:19 +00:00
|
|
|
paths:
|
2018-06-22 15:13:09 +00:00
|
|
|
- apt-cache/
|
|
|
|
before_script:
|
|
|
|
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
|
|
|
|
- apt-get update -yq
|
|
|
|
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y cmake libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libsdl2-dev libqt4-dev libopenal-dev libopenscenegraph-3.4-dev libunshield-dev libtinyxml-dev
|
|
|
|
# - apt-get install -y libmygui-dev libbullet-dev # to be updated to latest below because stretch is too old
|
|
|
|
- curl http://ftp.us.debian.org/debian/pool/main/b/bullet/libbullet-dev_2.87+dfsg-2_amd64.deb -o libbullet-dev_2.87+dfsg-2_amd64.deb
|
|
|
|
- curl http://ftp.us.debian.org/debian/pool/main/b/bullet/libbullet2.87_2.87+dfsg-2_amd64.deb -o libbullet2.87_2.87+dfsg-2_amd64.deb
|
|
|
|
- curl http://ftp.us.debian.org/debian/pool/main/m/mygui/libmygui.openglplatform0debian1v5_3.2.2+dfsg-1_amd64.deb -o libmygui.openglplatform0debian1v5_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
|
|
|
|
- dpkg --ignore-depends=libmygui.ogreplatform0debian1v5 -i *.deb
|
2018-06-22 15:20:38 +00:00
|
|
|
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:
|
|
|
|
- build/artifacts/
|
2018-06-23 13:22:20 +00:00
|
|
|
MacOS:
|
2018-06-22 15:29:27 +00:00
|
|
|
tags:
|
2018-06-22 16:41:20 +00:00
|
|
|
- macos
|
2018-06-23 07:19:05 +00:00
|
|
|
- xcode
|
2018-06-22 15:20:38 +00:00
|
|
|
stage: build
|
2018-06-23 13:22:20 +00:00
|
|
|
allow_failure: true
|
2018-06-23 13:50:58 +00:00
|
|
|
script:
|
2018-06-26 15:18:18 +00:00
|
|
|
- rm -fr /usr/local/Openmw.app/* # clean up after previous build
|
2018-06-26 13:54:37 +00:00
|
|
|
- CI/before_install.osx.sh
|
2018-06-23 13:50:58 +00:00
|
|
|
- CI/before_script.osx.sh
|
2018-06-26 13:57:13 +00:00
|
|
|
- cd build; make -j2
|
2018-06-26 15:36:53 +00:00
|
|
|
# - make install
|
2018-06-22 15:20:38 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-06-26 14:51:55 +00:00
|
|
|
- /usr/local/OpenMW.app
|