Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 42 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,45 @@
image: "registry.gitlab.com/obruns/bluetoe/ubuntu-build:1.0"

variables:
BOOST_TEST_COLOR_OUTPUT: 1
BOOST_TEST_LOG_LEVEL: "unit_scope"
BUILD_ON_TRAVIS: 1
NINJA_STATUS: "[%r %c %o %e (%s/%t)]"

before_script:
- apt-get update -qq
- c++ -v
- g++ --version
- clang++-6.0 --version
- cmake --version
- ninja --version

tests:
.builder_template: &build_definition
script:
- cd bluetoe
- mkdir build && cd build && cmake .. && make && ctest
- mkdir build
- cd build
- cmake .. -G Ninja -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=$MODE -DBLUETOE_EXCLUDE_SLOW_TESTS=1
- time timeout 1200 ninja -v
- time timeout 10 ctest --verbose

clang-debug:
<<: *build_definition
variables:
COMPILER: clang++-6.0
MODE: Debug

clang-release:
<<: *build_definition
variables:
COMPILER: clang++-6.0
MODE: Release

gcc-debug:
<<: *build_definition
variables:
COMPILER: g++
MODE: Debug

gcc-release:
<<: *build_definition
variables:
COMPILER: g++
MODE: Release
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:latest

MAINTAINER Oliver Bruns <obruns@gmail.com>

RUN apt update && \
apt install --assume-yes \
build-essential \
clang-6.0 \
cmake \
libboost-all-dev \
ninja-build