2015-07-06 00:37:48 +00:00
|
|
|
dependencies:
|
2017-09-14 20:08:59 +00:00
|
|
|
override:
|
2015-07-06 00:37:48 +00:00
|
|
|
- |
|
2015-08-24 20:58:43 +00:00
|
|
|
sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get build-dep teeworlds
|
2017-09-14 20:08:59 +00:00
|
|
|
sudo apt-get install libsdl2-dev xz-utils
|
2015-07-06 00:37:48 +00:00
|
|
|
|
2017-09-14 20:08:59 +00:00
|
|
|
- |
|
2015-07-06 00:37:48 +00:00
|
|
|
if [ ! -x ~/bam/bam ]; then
|
|
|
|
git clone https://github.com/matricks/bam ~/bam/
|
|
|
|
cd ~/bam; ./make_unix.sh
|
|
|
|
fi
|
|
|
|
|
2017-09-14 20:08:59 +00:00
|
|
|
- |
|
|
|
|
if [ ! -d ~/cmake ]; then
|
|
|
|
mkdir ~/cmake
|
|
|
|
cd ~/cmake
|
2017-09-14 20:16:21 +00:00
|
|
|
curl -o cmake.tar.gz https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
|
2017-09-14 20:08:59 +00:00
|
|
|
tar --strip-components=1 -zxf cmake.tar.gz
|
|
|
|
./bootstrap && make
|
|
|
|
fi
|
|
|
|
|
2015-07-06 00:37:48 +00:00
|
|
|
cache_directories:
|
|
|
|
- "~/bam/"
|
2017-09-14 20:08:59 +00:00
|
|
|
- "~/cmake/"
|
2015-07-06 00:37:48 +00:00
|
|
|
|
2017-09-13 17:05:46 +00:00
|
|
|
checkout:
|
|
|
|
post:
|
|
|
|
- git submodule update --init
|
|
|
|
|
2015-07-06 00:37:48 +00:00
|
|
|
## Customize test commands
|
2017-09-13 17:05:46 +00:00
|
|
|
compile:
|
2015-07-06 00:37:48 +00:00
|
|
|
override:
|
2017-09-14 20:08:59 +00:00
|
|
|
- ~/bam/bam release
|
2015-07-06 00:37:48 +00:00
|
|
|
- |
|
2017-03-18 00:30:59 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2017-09-14 20:08:59 +00:00
|
|
|
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" ~/cmake/bin/cmake ..
|
2017-03-18 09:16:36 +00:00
|
|
|
make everything
|
2017-09-13 17:05:46 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
override:
|
|
|
|
- |
|
|
|
|
cd build
|
|
|
|
make package
|
2017-09-13 17:29:12 +00:00
|
|
|
mv DDNet-*.tar.* ${CIRCLE_ARTIFACTS}
|
2017-09-13 17:05:46 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
##deployment:
|
|
|
|
## master:
|
|
|
|
## branch: master
|
|
|
|
## owner: ddnet
|
|
|
|
## commands:
|
|
|
|
## - |
|
|
|
|
## cd build
|
|
|
|
## make package
|
2017-09-14 22:57:04 +00:00
|
|
|
## mv DDNet-*.tar.*
|