2018-06-12 07:52:53 +00:00
|
|
|
# use the official gcc image, based on debian
|
|
|
|
# can use verions as well, like gcc:5.2
|
|
|
|
# see https://hub.docker.com/_/gcc/
|
|
|
|
image: gcc
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
2018-06-12 19:06:59 +00:00
|
|
|
- nproc
|
2018-06-12 08:41:07 +00:00
|
|
|
- apt-get update
|
2018-06-12 10:33:35 +00:00
|
|
|
- apt-get install -y cmake libboost-filesystem-dev libboost-program-options-dev libboost-system-dev
|
2018-06-12 09:09:37 +00:00
|
|
|
- apt-get install -y libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev
|
2018-06-12 10:33:35 +00:00
|
|
|
- apt-get install -y libsdl2-dev libqt4-dev libopenal-dev libopenscenegraph-3.4-dev libunshield-dev libtinyxml-dev
|
2018-06-12 11:24:27 +00:00
|
|
|
- apt-get install -y libmygui-dev libbullet-dev # to be updated to latest below because stretch is too old
|
2018-06-12 09:26:10 +00:00
|
|
|
- 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
|
2018-06-12 10:33:35 +00:00
|
|
|
- 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
|
2018-06-12 11:32:37 +00:00
|
|
|
- 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
|
2018-06-12 10:33:35 +00:00
|
|
|
- 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
|
2018-06-12 11:41:19 +00:00
|
|
|
- dpkg --ignore-depends=libmygui.ogreplatform0debian1v5 -i *.deb
|
2018-06-12 08:37:26 +00:00
|
|
|
- mkdir build; cd build; cmake ../
|
2018-06-12 19:06:59 +00:00
|
|
|
- make -j3
|
2018-06-12 12:46:19 +00:00
|
|
|
- DESTDIR=artifacts make install
|
2018-06-12 10:33:35 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-06-12 12:46:19 +00:00
|
|
|
- build/artifacts/
|
2018-06-12 07:52:53 +00:00
|
|
|
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
|
2018-06-12 12:46:19 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- "*.o"
|
2018-06-12 07:52:53 +00:00
|
|
|
|
|
|
|
# run tests using the binary built before
|
2018-06-12 19:06:59 +00:00
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- true
|