Skip to content

Commit

Permalink
Control
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed May 11, 2019
1 parent fc835ad commit b8869ef
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
8 changes: 2 additions & 6 deletions .ci/azure-steps.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
steps:

- checkout: self
fetchDepth: 50
submodules: true

- task: CMake@1
inputs:
cmakeArgs: .. -DCLI12_SINGLE_FILE=ON -DCLI11_CXX_STD=14 -DCLI11_SINGLE_FILE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
cmakeArgs: .. -DCLI11_SINGLE_FILE=$(cli11.single) -DCLI11_CXX_STD=$(cli11.std) -DCLI11_SINGLE_FILE_TESTS=$(cli11.single) -DCMAKE_BUILD_TYPE=$(cli11.build_type)
displayName: 'Configure'

- script: cmake --build . -j
displayName: 'Build'
workingDirectory: build

- script: ctest --output-on-failure -C Debug
- script: ctest --output-on-failure -C $(cli11.build_type)
displayName: 'Test'
workingDirectory: build
50 changes: 32 additions & 18 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,66 @@
trigger:
- master

variables:
cli11.single: ON
cli11.std: 14
cli11.build_type: Debug

jobs:

- job: ClangFormat
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: scripts/check_style_docker.sh
displayName: Check format

- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: .ci/azure-steps.yml

- job: macOS
pool:
vmImage: 'macOS-10.13'
steps:
- template: .ci/azure-steps.yml

- job: Windows
- job: Native
strategy:
matrix:
Linux:
vmImage: 'ubuntu-16.04'
macOS:
vmImage: 'macOS-10.14'
Windows:
vmImage: 'vs2017-win2016'
pool:
vmImage: 'vs2017-win2016'
vmImage: $(vmImage)
steps:
- template: .ci/azure-steps.yml

- job: Docker
variables:
cli11.single: OFF
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
gcc9:
containerImage: gcc:9
cli11.std: 17
gcc4.7:
containerImage: gcc:4.7
cli11.std: 11
clang3.5:
containerImage: silkeh/clang:3.5
cli11.std: 11
clang8:
containerImage: silkeh/clang:8
cli11.std: 17
container: $[ variables['containerImage'] ]
steps:
# Note that silkeh/clang does not include ca-certificates, so check the shasum for verification
- script: |
mkdir $HOME/cmake
wget -qO- "https://cmake.org/files/v3.14/cmake-3.14.3-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C $HOME/cmake
displayName: Install CMake
- bash: echo "##vso[task.prependpath]$HOME/cmake/bin"
wget --no-check-certificate "https://cmake.org/files/v3.14/cmake-3.14.3-Linux-x86_64.tar.gz"
echo "29faa62fb3a0b6323caa3d9557e1a5f1205614c0d4c5c2a9917f16a74f7eff68 cmake-3.14.3-Linux-x86_64.tar.gz" | shasum -sca 256
displayName: Download CMake
- task: ExtractFiles@1
inputs:
archiveFilePatterns: 'cmake*.tar.gz'
destinationFolder: 'cmake_program'
displayName: Extract CMake
- bash: echo "##vso[task.prependpath]$(Build.SourcesDirectory)/cmake_program/cmake-3.14.3-Linux-x86_64/bin"
displayName: Add CMake to PATH
- template: .ci/azure-steps.yml

0 comments on commit b8869ef

Please sign in to comment.