Skip to content

Commit

Permalink
[azure-pipeline] container linux in vm windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed May 10, 2020
1 parent c2d55d2 commit 84e5ae9
Showing 1 changed file with 51 additions and 43 deletions.
94 changes: 51 additions & 43 deletions azure-pipelines/win-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,53 +30,61 @@ variables:
- template: variables/build_switches.yml

stages:
- stage: Dep
jobs:
- job: vcpkg
strategy:
matrix:
Win Mingw64:
imageName: ${{ variables.windows_image }}
TRIPLET: x64-mingw
ARCH: 64
osx:
imageName: ${{ variables.mac_image }}
TRIPLET: x64-osx
pool:
vmImage: $(imageName)
steps:
- template: templates/dep-vcpkg-steps.yml
parameters:
vcpkg_key_cache: $(CACHE_VCPKG_KEY)
triplet: $(TRIPLET)
arch: $(ARCH)
# - stage: Dep
# jobs:
# - job: vcpkg
# strategy:
# matrix:
# Win Mingw64:
# imageName: ${{ variables.windows_image }}
# TRIPLET: x64-mingw
# ARCH: 64
# osx:
# imageName: ${{ variables.mac_image }}
# TRIPLET: x64-osx
# pool:
# vmImage: $(imageName)
# steps:
# - template: templates/dep-vcpkg-steps.yml
# parameters:
# vcpkg_key_cache: $(CACHE_VCPKG_KEY)
# triplet: $(TRIPLET)
# arch: $(ARCH)

- stage: mingw
variables:
BUILD_EXAMPLES: OFF
BUILD_SHARED_LIBS: OFF
jobs:
- template: 'templates/sonarcloud-job.yml'
parameters:
imageName: ${{ variables.windows_image }}
jobName: SonarCloud_win_gcc
jobDisplayName: SonarCloud (WIN GCC)
vcpkg_key_cache: $(CACHE_VCPKG_KEY)
triplet: x64-mingw
arch: 64
build_type: Debug
sonar_wrapper_url: 'https://sonarcloud.io/static/cpp/build-wrapper-win-x86.zip'
build_wrapper: 'build-wrapper-win-x86\build-wrapper-win-x86-64.exe'
build_wrapper_path: build/build-wrapper-win-x86
# - template: 'templates/sonarcloud-job.yml'
# parameters:
# imageName: ${{ variables.windows_image }}
# jobName: SonarCloud_win_gcc
# jobDisplayName: SonarCloud (WIN GCC)
# vcpkg_key_cache: $(CACHE_VCPKG_KEY)
# triplet: x64-mingw
# arch: 64
# build_type: Debug
# sonar_wrapper_url: 'https://sonarcloud.io/static/cpp/build-wrapper-win-x86.zip'
# build_wrapper: 'build-wrapper-win-x86\build-wrapper-win-x86-64.exe'
# build_wrapper_path: build/build-wrapper-win-x86

- template: 'templates/sonarcloud-job.yml'
parameters:
imageName: ${{ variables.mac_image }}
jobName: SonarCloud_macos
jobDisplayName: SonarCloud (macOS)
vcpkg_key_cache: $(CACHE_VCPKG_KEY)
triplet: x64-osx
build_type: Debug
sonar_wrapper_url: 'https://sonarcloud.io/static/cpp/build-wrapper-macosx-x86.zip'
build_wrapper: 'build-wrapper-macosx-x86/build-wrapper-macosx-x86'
build_wrapper_path: build/build-wrapper-macosx-x86
# - template: 'templates/sonarcloud-job.yml'
# parameters:
# imageName: ${{ variables.mac_image }}
# jobName: SonarCloud_macos
# jobDisplayName: SonarCloud (macOS)
# vcpkg_key_cache: $(CACHE_VCPKG_KEY)
# triplet: x64-osx
# build_type: Debug
# sonar_wrapper_url: 'https://sonarcloud.io/static/cpp/build-wrapper-macosx-x86.zip'
# build_wrapper: 'build-wrapper-macosx-x86/build-wrapper-macosx-x86'
# build_wrapper_path: build/build-wrapper-macosx-x86
- job: container
pool:
vmImage: ${{ variables.windows_image }}
container: ubuntu:18.04
steps:
- script: echo "hello"
- script: cat /proc/cpu

0 comments on commit 84e5ae9

Please sign in to comment.