Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
bd7b24b
Set up CI with Azure Pipelines
llersch Sep 24, 2019
e610d5c
Update azure-pipelines.yml
llersch Sep 24, 2019
aef611c
Update azure-pipelines.yml
llersch Sep 24, 2019
f135164
Update azure-pipelines.yml
llersch Sep 24, 2019
e082cb2
Update azure-pipelines.yml
llersch Sep 24, 2019
ac60e49
Update azure-pipelines.yml
llersch Sep 24, 2019
32be54e
Update azure-pipelines.yml
llersch Sep 24, 2019
377e01b
Update azure-pipelines.yml
llersch Sep 24, 2019
e471488
Update azure-pipelines.yml
llersch Sep 24, 2019
b2da8bf
Update azure-pipelines.yml
llersch Sep 24, 2019
ac20eba
Update azure-pipelines.yml
llersch Sep 24, 2019
45b05f4
Update azure-pipelines.yml
llersch Sep 24, 2019
4aa7d9c
Update azure-pipelines.yml
llersch Sep 24, 2019
4592239
Update azure-pipelines.yml
llersch Sep 24, 2019
eb27a83
Update azure-pipelines.yml
llersch Sep 24, 2019
0f904d8
Update azure-pipelines.yml
llersch Sep 24, 2019
e3b4130
Update azure-pipelines.yml
llersch Sep 24, 2019
117626b
Update azure-pipelines.yml
llersch Sep 25, 2019
1d5b8e1
Update azure-pipelines.yml
llersch Sep 25, 2019
62a5283
Update azure-pipelines.yml
llersch Sep 25, 2019
6cfac95
Update azure-pipelines.yml
llersch Sep 25, 2019
662011a
Update azure-pipelines.yml
llersch Sep 25, 2019
017bd79
Update azure-pipelines.yml
llersch Sep 25, 2019
7473bb2
Update azure-pipelines.yml
llersch Sep 25, 2019
6df5728
Update azure-pipelines.yml
llersch Sep 25, 2019
4b978d4
Create Dockerfile
llersch Sep 25, 2019
0736f42
Update Dockerfile
llersch Sep 25, 2019
c27fab1
Update azure-pipelines.yml
llersch Sep 25, 2019
de80563
Update azure-pipelines.yml
llersch Sep 25, 2019
a219a61
Update Dockerfile
llersch Sep 25, 2019
4550bc5
Update Dockerfile
llersch Sep 25, 2019
05516ae
Update Dockerfile
llersch Sep 25, 2019
7984976
Update Dockerfile
llersch Sep 25, 2019
2b1f471
Update Dockerfile
llersch Sep 25, 2019
cea6d24
Update Dockerfile
llersch Sep 25, 2019
c541f63
Update Dockerfile
llersch Sep 25, 2019
dd61dea
Update Dockerfile
llersch Sep 25, 2019
a7d1b55
Update Dockerfile
llersch Sep 25, 2019
26562c7
Update Dockerfile
llersch Sep 25, 2019
5aeed1e
Update Dockerfile
llersch Sep 25, 2019
dc696fd
Update Dockerfile
llersch Sep 25, 2019
d313c46
Update Dockerfile
llersch Sep 25, 2019
bf13d5b
Update Dockerfile
llersch Sep 25, 2019
a4446d4
Update azure-pipelines.yml
llersch Sep 25, 2019
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
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM alpine:latest
RUN apk add --no-cache \
build-base \
cmake
COPY . /usr/src/pibench
WORKDIR /usr/src/pibench
RUN mkdir build_tmp && cd build_tmp && cmake -DCMAKE_BUILD_TYPE=Release .. && make
ENTRYPOINT ["make", "-C", "build_tmp", "test" ]
107 changes: 107 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

# Trigger on push to master branch
trigger:
- master

# Trigger on pull request to master branch
pr:
- master

jobs:
- job:
displayName: Ubuntu-16.04
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
GCC-7 Debug:
CC: gcc-7
CXX: g++-7
Packages: g++-7
BuildType: Debug

GCC-7 Release:
CC: gcc-7
CXX: g++-7
Packages: g++-7
BuildType: Release

GCC-8 Debug:
CC: gcc-8
CXX: g++-8
Packages: g++-8
BuildType: Debug

GCC-8 Release:
CC: gcc-8
CXX: g++-8
Packages: g++-8
BuildType: Release

GCC-9 Debug:
CC: gcc-9
CXX: g++-9
Packages: g++-9
BuildType: Debug

GCC-9 Release:
CC: gcc-9
CXX: g++-9
Packages: g++-9
BuildType: Release

Clang-6.0 Debug:
CC: clang-6.0
CXX: clang++-6.0
Packages: clang-6.0 libomp-dev
BuildType: Debug

Clang-6.0 Release:
CC: clang-6.0
CXX: clang++-6.0
Packages: clang-6.0 libomp-dev
BuildType: Release

steps:
- checkout: self
submodules: true

- script: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y $(Packages)
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/$(CC) 100
sudo update-alternatives --set cc /usr/bin/$(CC)
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/$(CXX) 100
sudo update-alternatives --set c++ /usr/bin/$(CXX)
displayName: 'Install Build Dependencies'

- task: CMake@1
displayName: 'CMake .. -DCMAKE_BUILD_TYPE=$(BuildType)'
inputs:
workingDirectory: 'build'
cmakeArgs: '.. -DCMAKE_BUILD_TYPE=$(BuildType)'

- script: make -j -C build
displayName: 'Compiling'

- script: make test -C build
displayName: 'Running tests'

- job:
displayName: Docker Ubuntu-16.04
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: self
submodules: true

- script: docker build -t pibench . # add options to this command to meet your needs
displayName: 'Build the code'

- script: docker run pibench
displayName: 'Run tests'