Test CMake on CircleCI

This commit is contained in:
heinrich5991 2019-02-03 02:18:13 +01:00
parent b617c8b0b7
commit bb8ec6b836

View file

@ -6,14 +6,32 @@ jobs:
steps:
- checkout
- run:
name: Build bam
name: Prepare
command: |
apt-get update -y
apt-get install libsdl2-dev libfreetype6-dev -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
command: ~/bam/bam conf=release all
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 ..
make everything
- run:
name: Build teeworlds with cmake in Debug mode
command: |
mkdir -p debug
cd debug
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake -DDEV=ON ..
make everything