CI/CircleCI: Add parallel no-pch build

This commit is contained in:
jackpoz
2019-02-03 17:00:49 +01:00
parent f04e90f638
commit 33c58b4aaf

View File

@@ -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