mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
59 lines
1.2 KiB
YAML
59 lines
1.2 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 libsdl2-dev xz-utils
|
|
|
|
- |
|
|
if [ ! -x ~/bam/bam ]; then
|
|
git clone https://github.com/matricks/bam ~/bam/
|
|
cd ~/bam; ./make_unix.sh
|
|
fi
|
|
|
|
- |
|
|
if [ ! -d ~/cmake ]; then
|
|
mkdir ~/cmake
|
|
cd ~/cmake
|
|
curl -o cmake.tar.gz https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
|
|
tar --strip-components=1 -zxf cmake.tar.gz
|
|
./bootstrap && make
|
|
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/bin/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.*
|