ddnet/circle.yml
heinrich5991 a60320b87a Activate C++11 in old CMake as well
Old CMake doesn't understand `CMAKE_CXX_STANDARD` and similar, add the
parameter directly.
2017-11-23 03:10:25 +01:00

59 lines
1.1 KiB
YAML

dependencies:
override:
- |
sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
sudo apt-get update
sudo apt-get build-dep teeworlds
sudo apt-get install cmake libsdl2-dev xz-utils
- |
if [ ! -x ~/bam/bam ]; then
git clone https://github.com/matricks/bam ~/bam/
cd ~/bam; ./make_unix.sh
fi
cache_directories:
- "~/bam/"
- "~/cmake/"
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 -DDOWNLOAD_GTEST=ON ..
make everything
test:
override:
- |
cd build
make run_tests
./DDNet-Server shutdown
- |
cd build
make package
mv DDNet-*.tar.* ${CIRCLE_ARTIFACTS}
branches:
ignore:
- staging.tmp
##
##deployment:
## master:
## branch: master
## owner: ddnet
## commands:
## - |
## cd build
## make package
## mv DDNet-*.tar.*