diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-02-03 17:00:49 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2019-02-03 17:01:05 +0100 |
commit | 33c58b4aaf4afc8ca13c1d07c65d66e6beb6bedb (patch) | |
tree | 7b945a16b17e8b624a1cf6a2638a755a667b7d97 /.circleci | |
parent | f04e90f638425c0e0ef2e40f0cd29ab7eec625d1 (diff) |
CI/CircleCI: Add parallel no-pch build
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 315edcd6313..7d428056709 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2 jobs: - build: + pch_and_sql: docker: - image: ubuntu:18.04 - image: circleci/mysql:5.7 @@ -54,3 +54,40 @@ jobs: cd check_install/bin ./authserver --version ./worldserver --version + nopch: + docker: + - image: ubuntu:18.04 + steps: + - run: + name: Requirements + command: | + apt-get update + apt-get install -y wget sudo mysql-client + apt-get install -y libboost-dev libboost-filesystem-dev libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libboost-thread-dev libssl-dev libmysqlclient-dev libreadline-dev libncurses-dev zlib1g-dev libbz2-dev + apt-get install -y cmake clang git + - checkout + - run: + name: Setup + command: | + git config user.email "circleci@build.bot" && git config user.name "Circl CI" + export CC=/usr/bin/clang + export CXX=/usr/bin/clang++ + $CXX --version + mkdir bin + cd bin + cmake ../ -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=0 -DUSE_SCRIPTPCH=0 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_INSTALL_PREFIX=check_install + cd .. + - run: + name: Build + command: | + cd bin + make -j 4 -k && make install + cd check_install/bin + ./authserver --version + ./worldserver --version +workflows: + version: 2 + build_all: + jobs: + - pch_and_sql + - nopch |