ddnet/circle.yml
2017-09-14 16:03:38 +02:00

47 lines
959 B
YAML

dependencies:
pre:
- |
sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
sudo apt-get update
sudo apt-get build-dep teeworlds
sudo apt-get install libsdl2-dev cmake xz-utils
if [ ! -x ~/bam/bam ]; then
git clone https://github.com/matricks/bam ~/bam/
cd ~/bam; ./make_unix.sh
fi
cache_directories:
- "~/bam/"
checkout:
post:
- git submodule update --init
## Customize test commands
compile:
override:
- ../bam/bam release
- |
mkdir build
cd build
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake ..
make everything
test:
override:
- |
cd build
make package
mv DDNet-*.tar.* ${CIRCLE_ARTIFACTS}
##
##deployment:
## master:
## branch: master
## owner: ddnet
## commands:
## - |
## cd build
## make package
## mv DDNet-*.tar.*