ddnet/.circleci/config.yml
2019-02-10 17:00:08 +01:00

42 lines
1.3 KiB
YAML

version: 2
jobs:
build:
docker:
- image: buildpack-deps:stretch
steps:
- checkout
- run:
name: Prepare
command: |
apt-get update -y
apt-get install cmake libfreetype6-dev libsdl2-dev -y
git submodule update --init
- run:
name: Build bam
command: |
git clone https://github.com/matricks/bam.git ~/bam
cd ~/bam/
git reset --hard f012dd9a3e38295b8a45af5a101d29573381f169
./make_unix.sh
- run:
name: Build teeworlds with bam
command: ~/bam/bam conf=release all
- run:
name: Build teeworlds with cmake in Release mode
command: |
mkdir -p release
cd release
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake -Werror=dev -DDOWNLOAD_GTEST=ON ..
make everything
make run_tests
./teeworlds_srv shutdown
- run:
name: Build teeworlds with cmake in Debug mode
command: |
mkdir -p debug
cd debug
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON ..
make everything
make run_tests
./teeworlds_srv shutdown