Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
As a possible replacement of Travis CI and Appveyor
  • Loading branch information
RichieSams committed Dec 26, 2020
1 parent a901bac commit 9075c9f
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 187 deletions.
148 changes: 0 additions & 148 deletions .travis.yml

This file was deleted.

26 changes: 0 additions & 26 deletions appveyor.yml

This file was deleted.

115 changes: 115 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
jobs:
- job: linux_gcc_49
displayName: Linux - GCC 4.9
pool:
vmImage: ubuntu-18.04
variables:
compiler: gcc
version: 4.9
steps:
- bash: make generate_linux build_linux
displayName: Build
- bash: make test_linux
displayName: Test
- job: linux_gcc_9
displayName: Linux - GCC 9
pool:
vmImage: ubuntu-18.04
variables:
compiler: gcc
version: 9
steps:
- bash: make generate_linux build_linux
displayName: Build
- bash: make test_linux
displayName: Test
- job: linux_clang_37
displayName: Linux - Clang 3.7
pool:
vmImage: ubuntu-18.04
variables:
compiler: clang
version: 3.7
steps:
- bash: make generate_linux build_linux
displayName: Build
- bash: make test_linux
displayName: Test
- job: linux_clang_9
displayName: Linux - Clang 9
pool:
vmImage: ubuntu-18.04
variables:
compiler: clang
version: 9
steps:
- bash: make generate_linux build_linux
displayName: Build
- bash: make test_linux
displayName: Test
- job: osx_gcc_49
displayName: OSX - GCC 4.9
pool:
vmImage: macos-10.15
variables:
compiler: gcc
version: 4.9
steps:
- bash: bash ci_scripts/travis_ci_install_osx.sh
displayName: Install
- bash: make generate_osx build_osx
displayName: Build
- bash: make test_osx
displayName: Test
- job: osx_gcc_9
displayName: OSX - GCC 9
pool:
vmImage: macos-10.15
variables:
compiler: gcc
version: 9
steps:
- bash: bash ci_scripts/travis_ci_install_osx.sh
displayName: Install
- bash: make generate_osx build_osx
displayName: Build
- bash: make test_osx
displayName: Test
- job: osx_clang_9
displayName: OSX - Clang 9
pool:
vmImage: macos-10.15
variables:
compiler: clang
version: 9
steps:
- bash: bash ci_scripts/travis_ci_install_osx.sh
displayName: Install
- bash: make generate_osx build_osx
displayName: Build
- bash: make test_osx
displayName: Test
- job: windows_vs_2017
displayName: Windows - Visual Studio 2017
pool:
vmImage: vs2017-win2016
variables:
cmake.gen.name: Visual Studio 15 2017 Win64
cmake.arch.arg: ""
steps:
- powershell: make generate_windows build_windows
displayName: Build
- powershell: make test_windows
displayName: Test
- job: windows_vs_2019
displayName: Windows - Visual Studio 2019
pool:
vmImage: windows-2019
variables:
cmake.gen.name: Visual Studio 16 2019
cmake.arch.arg: -A x64
steps:
- powershell: make generate_windows build_windows
displayName: Build
- powershell: make test_windows
displayName: Test
41 changes: 28 additions & 13 deletions ci_scripts/travis_ci_install_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ gcc-7)
upgradeBrewFormula gcc@7
;;
gcc-8)
upgradeBrewFormula gcc@7
upgradeBrewFormula gcc@8
;;
gcc-9)
upgradeBrewFormula gcc@9
;;
clang-3.7)
upgradeBrewFormula llvm@3.7
Expand All @@ -44,27 +47,39 @@ clang-3.9)
;;
clang-4)
upgradeBrewFormula llvm@4
# 3.9 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@3.9/bin/clang
export CXX=/usr/local/opt/llvm@3.9/bin/clang++
# 4 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@4/bin/clang
export CXX=/usr/local/opt/llvm@4/bin/clang++
;;
clang-5)
upgradeBrewFormula llvm@5
# 3.9 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@3.9/bin/clang
export CXX=/usr/local/opt/llvm@3.9/bin/clang++
# 5 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@5/bin/clang
export CXX=/usr/local/opt/llvm@5/bin/clang++
;;
clang-6)
upgradeBrewFormula llvm@6
# 3.9 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@3.9/bin/clang
export CXX=/usr/local/opt/llvm@3.9/bin/clang++
# 6 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@6/bin/clang
export CXX=/usr/local/opt/llvm@6/bin/clang++
;;
clang-7)
upgradeBrewFormula llvm@7
# 3.9 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@3.9/bin/clang
export CXX=/usr/local/opt/llvm@3.9/bin/clang++
# 7 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@7/bin/clang
export CXX=/usr/local/opt/llvm@7/bin/clang++
;;
clang-8)
upgradeBrewFormula llvm@9
# 8 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@8/bin/clang
export CXX=/usr/local/opt/llvm@8/bin/clang++
;;
clang-9)
upgradeBrewFormula llvm@9
# 9 is keg-only, so we have to set the full file path
export CC=/usr/local/opt/llvm@9/bin/clang
export CXX=/usr/local/opt/llvm@9/bin/clang++
;;
*) echo "Compiler not supported: ${COMPILER}-${VERSION}. See travis_ci_install_osx.sh"; exit 1 ;;
esac

0 comments on commit 9075c9f

Please sign in to comment.