From ecf4d5e91d09f988a294c85f55e5520ca71f1062 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 30 Mar 2019 17:05:43 +0100 Subject: [PATCH 1/5] :construction_worker: trying CircleCI --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..d1d8ddec --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,16 @@ +version: 2 +jobs: + build: + docker: + - image: debian:stretch + + steps: + - checkout + + - run: + name: Greeting + command: echo Hello, world. + + - run: + name: Print the Current Time + command: date From 5ebe7220456b9caba131a8b4e89d4bad80eebf3b Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 30 Mar 2019 17:14:50 +0100 Subject: [PATCH 2/5] :construction_worker: full workflow --- .circleci/config.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d1d8ddec..40571d62 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,9 +8,20 @@ jobs: - checkout - run: - name: Greeting - command: echo Hello, world. - + name: Install sudo + command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*' - run: - name: Print the Current Time - command: date + name: Install GCC + command: 'apt-get update && apt-get install -y gcc g++' + - run: + name: Install CMake + command: 'apt-get update && sudo apt-get install -y cmake' + - run: + name: Create build files + command: 'cmake -Bbuild' + - run: + name: Compile + command: 'cmake --build build' + - run: + name: Execute test suite + command: 'cd build ; ctest' From a5e00f2cf7bbc3cace67d3e3414940b7045541dd Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 30 Mar 2019 17:19:27 +0100 Subject: [PATCH 3/5] :construction_worker: fixed path --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 40571d62..528e25a8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,7 @@ jobs: command: 'apt-get update && sudo apt-get install -y cmake' - run: name: Create build files - command: 'cmake -Bbuild' + command: 'mkdir build ; cd build ; cmake ..' - run: name: Compile command: 'cmake --build build' From 0a57c51a699df917207399c4e236fba9eb7114c4 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 30 Mar 2019 17:32:52 +0100 Subject: [PATCH 4/5] :construction_worker: adding concurrency --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 528e25a8..f164c28d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,14 +14,14 @@ jobs: name: Install GCC command: 'apt-get update && apt-get install -y gcc g++' - run: - name: Install CMake - command: 'apt-get update && sudo apt-get install -y cmake' + name: Install CMake and Ninja + command: 'apt-get update && sudo apt-get install -y cmake ninja-build' - run: name: Create build files - command: 'mkdir build ; cd build ; cmake ..' + command: 'mkdir build ; cd build ; cmake .. -GNinja' - run: name: Compile command: 'cmake --build build' - run: name: Execute test suite - command: 'cd build ; ctest' + command: 'cd build ; ctest -j 10' From 80daa193317acf6757f46cd6b6cf0bb56badda84 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 30 Mar 2019 17:39:50 +0100 Subject: [PATCH 5/5] :construction_worker: Ninja seems not to work --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f164c28d..0d2edbf6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,14 +14,14 @@ jobs: name: Install GCC command: 'apt-get update && apt-get install -y gcc g++' - run: - name: Install CMake and Ninja - command: 'apt-get update && sudo apt-get install -y cmake ninja-build' + name: Install CMake + command: 'apt-get update && sudo apt-get install -y cmake' - run: name: Create build files - command: 'mkdir build ; cd build ; cmake .. -GNinja' + command: 'mkdir build ; cd build ; cmake ..' - run: name: Compile command: 'cmake --build build' - run: name: Execute test suite - command: 'cd build ; ctest -j 10' + command: 'cd build ; ctest -j 2'