2018-10-15 20:12:47 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: buildpack-deps:stretch
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
2019-02-03 01:18:13 +00:00
|
|
|
name: Prepare
|
2018-10-15 20:12:47 +00:00
|
|
|
command: |
|
|
|
|
apt-get update -y
|
2019-02-03 01:18:13 +00:00
|
|
|
apt-get install cmake libfreetype6-dev libsdl2-dev -y
|
|
|
|
git submodule update --init
|
|
|
|
- run:
|
|
|
|
name: Build bam
|
|
|
|
command: |
|
2018-10-15 20:12:47 +00:00
|
|
|
git clone https://github.com/matricks/bam.git ~/bam
|
|
|
|
cd ~/bam/
|
|
|
|
git reset --hard f012dd9a3e38295b8a45af5a101d29573381f169
|
|
|
|
./make_unix.sh
|
|
|
|
- run:
|
2019-02-03 01:18:13 +00:00
|
|
|
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
|
2019-02-06 21:30:27 +00:00
|
|
|
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake -Werror=dev -DDOWNLOAD_GTEST=ON ..
|
2019-02-03 01:18:13 +00:00
|
|
|
make everything
|
2019-02-06 21:30:27 +00:00
|
|
|
make run_tests
|
2019-02-03 01:31:16 +00:00
|
|
|
./teeworlds_srv shutdown
|
2019-02-03 01:18:13 +00:00
|
|
|
- run:
|
|
|
|
name: Build teeworlds with cmake in Debug mode
|
|
|
|
command: |
|
|
|
|
mkdir -p debug
|
|
|
|
cd debug
|
2019-02-06 21:30:27 +00:00
|
|
|
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON ..
|
2019-02-03 01:18:13 +00:00
|
|
|
make everything
|
2019-02-06 21:30:27 +00:00
|
|
|
make run_tests
|
2019-02-03 01:31:16 +00:00
|
|
|
./teeworlds_srv shutdown
|