From bb8ec6b836ac92f760fa1b6d8f4654b257846fae Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Sun, 3 Feb 2019 02:18:13 +0100 Subject: [PATCH] Test CMake on CircleCI --- .circleci/config.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a4db906aa..ff992733e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file + 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