Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
k0zmo committed Sep 29, 2020
1 parent e7cd368 commit 12fb15c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
24 changes: 24 additions & 0 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,30 @@ jobs:
~/.local/bin/codecov -X gcov
displayName: 'Send code coverage data'
- job: ubuntu18_clang6
pool:
vmImage: 'ubuntu-18.04'
steps:
- template: templates/install-clang.yml
parameters:
version: '6.0'
- script: |
which clang++ && clang++ --version
cmake --version
displayName: 'Check environment'
- template: templates/install-boost.yml
- script: |
sudo apt-get install ninja-build
displayName: 'Install Ninja'
- script: |
export LDFLAGS="-fuse-ld=gold" CXX=clang++ CC=clang
cmake -S . -B build -G Ninja -DCMAKE_PREFIX_PATH=_deps/boost_1_67_0 -DCMAKE_BUILD_TYPE=Release
cmake --build build
displayName: 'Build kl'
- script: |
cd build && ctest -VV --output-on-failure
displayName: 'Run CTest'
- job: ubuntu18_gcc9
pool:
vmImage: 'ubuntu-18.04'
Expand Down
10 changes: 10 additions & 0 deletions ci/templates/install-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
parameters:
version: 6

steps:
- bash: |
sudo apt-get update -qq
sudo apt-get install clang-${{ parameters.version }}
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ parameters.version }} 250
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ parameters.version }} 250
displayName: 'Install Clang'
4 changes: 2 additions & 2 deletions ci/templates/install-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ steps:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update -qq
sudo apt-get install g++-${{ parameters.version }} gcc-${{ parameters.version }}
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ parameters.version }} 90
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ parameters.version }} 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ parameters.version }} 250
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ parameters.version }} 250
displayName: 'Install GCC'

0 comments on commit 12fb15c

Please sign in to comment.