Commit c7e5eca6 by Edward Thomson

Revert "foo"

This reverts commit 1fe3fa5e.
parent 1fe3fa5e
...@@ -6,164 +6,152 @@ trigger: ...@@ -6,164 +6,152 @@ trigger:
- maint/* - maint/*
jobs: jobs:
- job: freebsd - job: linux_amd64_trusty_gcc_openssl
displayName: 'FreeBSD (amd64; 12.0)' displayName: 'Linux (amd64; Trusty; GCC; OpenSSL)'
pool: pool:
vmImage: 'Ubuntu 16.04' vmImage: 'Ubuntu 16.04'
steps: steps:
- template: azure-pipelines/ssh.yml - template: azure-pipelines/docker.yml
parameters:
imageName: 'libgit2/trusty-amd64:latest'
environmentVariables: |
CC=gcc
CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON
LEAK_CHECK=valgrind
- job: linux_amd64_trusty_gcc_mbedtls
displayName: 'Linux (amd64; Trusty; GCC; mbedTLS)'
pool:
vmImage: 'Ubuntu 16.04'
steps:
- template: azure-pipelines/docker.yml
parameters:
imageName: 'libgit2/trusty-amd64:latest'
environmentVariables: |
CC=gcc
CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS -DDEPRECATE_HARD=ON
LEAK_CHECK=valgrind
- job: linux_amd64_trusty_clang_openssl
displayName: 'Linux (amd64; Trusty; Clang; OpenSSL)'
pool:
vmImage: 'Ubuntu 16.04'
steps:
- template: azure-pipelines/docker.yml
parameters:
imageName: 'libgit2/trusty-amd64:latest'
environmentVariables: |
CC=clang
CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON
LEAK_CHECK=valgrind
- job: linux_amd64_trusty_clang_mbedtls
displayName: 'Linux (amd64; Trusty; Clang; mbedTLS)'
pool:
vmImage: 'Ubuntu 16.04'
steps:
- template: azure-pipelines/docker.yml
parameters:
imageName: 'libgit2/trusty-amd64:latest'
environmentVariables: |
CC=clang
CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS -DDEPRECATE_HARD=ON
LEAK_CHECK=valgrind
- job: macos
displayName: 'macOS'
pool:
vmImage: 'macOS 10.13'
steps:
- bash: . '$(Build.SourcesDirectory)/ci/setup-osx.sh'
displayName: Setup
- template: azure-pipelines/bash.yml
parameters: parameters:
remoteHost: 'build@13.92.132.220'
environmentVariables: environmentVariables:
CMAKE_OPTIONS: -DDEPRECATE_HARD=ON TMPDIR: $(Agent.TempDirectory)
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
LEAK_CHECK: leaks
CMAKE_OPTIONS: -G Ninja -DDEPRECATE_HARD=ON
SKIP_SSH_TESTS: true SKIP_SSH_TESTS: true
#- job: linux_amd64_trusty_gcc_openssl - job: windows_vs_amd64
# displayName: 'Linux (amd64; Trusty; GCC; OpenSSL)' displayName: 'Windows (amd64; Visual Studio)'
# pool: pool: Hosted
# vmImage: 'Ubuntu 16.04' steps:
# steps: - template: azure-pipelines/powershell.yml
# - template: azure-pipelines/docker.yml parameters:
# parameters: environmentVariables:
# imageName: 'libgit2/trusty-amd64:latest' CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013 Win64" -DDEPRECATE_HARD=ON
# environmentVariables: |
# CC=gcc - job: windows_vs_x86
# CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON displayName: 'Windows (x86; Visual Studio)'
# LEAK_CHECK=valgrind pool: Hosted
# steps:
#- job: linux_amd64_trusty_gcc_mbedtls - template: azure-pipelines/powershell.yml
# displayName: 'Linux (amd64; Trusty; GCC; mbedTLS)' parameters:
# pool: environmentVariables:
# vmImage: 'Ubuntu 16.04' CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" -DDEPRECATE_HARD=ON
# steps:
# - template: azure-pipelines/docker.yml - job: windows_mingw_amd64
# parameters: displayName: 'Windows (amd64; MinGW)'
# imageName: 'libgit2/trusty-amd64:latest' pool: Hosted
# environmentVariables: | steps:
# CC=gcc - powershell: . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
# CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS -DDEPRECATE_HARD=ON displayName: Setup
# LEAK_CHECK=valgrind env:
# TEMP: $(Agent.TempDirectory)
#- job: linux_amd64_trusty_clang_openssl ARCH: amd64
# displayName: 'Linux (amd64; Trusty; Clang; OpenSSL)' - template: azure-pipelines/powershell.yml
# pool: parameters:
# vmImage: 'Ubuntu 16.04' environmentVariables:
# steps: CMAKE_OPTIONS: -G"MinGW Makefiles" -DDEPRECATE_HARD=ON
# - template: azure-pipelines/docker.yml PATH: $(Agent.TempDirectory)\mingw64\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
# parameters:
# imageName: 'libgit2/trusty-amd64:latest' - job: windows_mingw_x86
# environmentVariables: | displayName: 'Windows (x86; MinGW)'
# CC=clang pool: Hosted
# CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON steps:
# LEAK_CHECK=valgrind - powershell: . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
# displayName: Setup
#- job: linux_amd64_trusty_clang_mbedtls workingDirectory: '$(Build.BinariesDirectory)'
# displayName: 'Linux (amd64; Trusty; Clang; mbedTLS)' env:
# pool: TEMP: $(Agent.TempDirectory)
# vmImage: 'Ubuntu 16.04' ARCH: x86
# steps: - template: azure-pipelines/powershell.yml
# - template: azure-pipelines/docker.yml parameters:
# parameters: environmentVariables:
# imageName: 'libgit2/trusty-amd64:latest' CMAKE_OPTIONS: -G"MinGW Makefiles" -DDEPRECATE_HARD=ON
# environmentVariables: | PATH: $(Agent.TempDirectory)\mingw32\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
# CC=clang
# CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS -DDEPRECATE_HARD=ON - job: documentation
# LEAK_CHECK=valgrind displayName: 'Generate Documentation'
# pool:
#- job: macos vmImage: 'Ubuntu 16.04'
# displayName: 'macOS' steps:
# pool: - script: |
# vmImage: 'macOS 10.13' git config user.name 'Documentation Generation'
# steps: git config user.email 'libgit2@users.noreply.github.com'
# - bash: . '$(Build.SourcesDirectory)/ci/setup-osx.sh' git branch gh-pages origin/gh-pages
# displayName: Setup docker run --rm -v $(Build.SourcesDirectory):/src -w /src libgit2/docurium:latest cm doc api.docurium
# - template: azure-pipelines/bash.yml git checkout gh-pages
# parameters: cp -R * '$(Build.BinariesDirectory)'
# environmentVariables: displayName: 'Generate Documentation'
# TMPDIR: $(Agent.TempDirectory) - task: archivefiles@2
# PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig displayName: 'Archive Documentation'
# LEAK_CHECK: leaks inputs:
# CMAKE_OPTIONS: -G Ninja -DDEPRECATE_HARD=ON rootFolderOrFile: '$(Build.BinariesDirectory)'
# SKIP_SSH_TESTS: true includeRootFolder: false
# archiveFile: '$(Build.ArtifactStagingDirectory)/api-documentation.zip'
#- job: windows_vs_amd64 - task: publishbuildartifacts@1
# displayName: 'Windows (amd64; Visual Studio)' displayName: 'Upload Documentation Artifact'
# pool: Hosted inputs:
# steps: pathToPublish: '$(Build.ArtifactStagingDirectory)'
# - template: azure-pipelines/powershell.yml artifactName: 'docs'
# parameters: - script: |
# environmentVariables: git remote -v
# CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013 Win64" -DDEPRECATE_HARD=ON echo 'machine github.com' > ~/.netrc
# echo 'login $(GITHUB_USERNAME)' >> ~/.netrc
#- job: windows_vs_x86 echo 'password $(GITHUB_PAT)' >> ~/.netrc
# displayName: 'Windows (x86; Visual Studio)' git push origin gh-pages
# pool: Hosted displayName: 'Publish Documentation'
# steps: condition: eq(variables['Build.Reason'], 'IndividualCI')
# - template: azure-pipelines/powershell.yml
# parameters:
# environmentVariables:
# CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" -DDEPRECATE_HARD=ON
#
#- job: windows_mingw_amd64
# displayName: 'Windows (amd64; MinGW)'
# pool: Hosted
# steps:
# - powershell: . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
# displayName: Setup
# env:
# TEMP: $(Agent.TempDirectory)
# ARCH: amd64
# - template: azure-pipelines/powershell.yml
# parameters:
# environmentVariables:
# CMAKE_OPTIONS: -G"MinGW Makefiles" -DDEPRECATE_HARD=ON
# PATH: $(Agent.TempDirectory)\mingw64\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
#
#- job: windows_mingw_x86
# displayName: 'Windows (x86; MinGW)'
# pool: Hosted
# steps:
# - powershell: . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
# displayName: Setup
# workingDirectory: '$(Build.BinariesDirectory)'
# env:
# TEMP: $(Agent.TempDirectory)
# ARCH: x86
# - template: azure-pipelines/powershell.yml
# parameters:
# environmentVariables:
# CMAKE_OPTIONS: -G"MinGW Makefiles" -DDEPRECATE_HARD=ON
# PATH: $(Agent.TempDirectory)\mingw32\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
#
#- job: documentation
# displayName: 'Generate Documentation'
# pool:
# vmImage: 'Ubuntu 16.04'
# steps:
# - script: |
# git config user.name 'Documentation Generation'
# git config user.email 'libgit2@users.noreply.github.com'
# git branch gh-pages origin/gh-pages
# docker run --rm -v $(Build.SourcesDirectory):/src -w /src libgit2/docurium:latest cm doc api.docurium
# git checkout gh-pages
# cp -R * '$(Build.BinariesDirectory)'
# displayName: 'Generate Documentation'
# - task: archivefiles@2
# displayName: 'Archive Documentation'
# inputs:
# rootFolderOrFile: '$(Build.BinariesDirectory)'
# includeRootFolder: false
# archiveFile: '$(Build.ArtifactStagingDirectory)/api-documentation.zip'
# - task: publishbuildartifacts@1
# displayName: 'Upload Documentation Artifact'
# inputs:
# pathToPublish: '$(Build.ArtifactStagingDirectory)'
# artifactName: 'docs'
# - script: |
# git remote -v
# echo 'machine github.com' > ~/.netrc
# echo 'login $(GITHUB_USERNAME)' >> ~/.netrc
# echo 'password $(GITHUB_PAT)' >> ~/.netrc
# git push origin gh-pages
# displayName: 'Publish Documentation'
# condition: eq(variables['Build.Reason'], 'IndividualCI')
# These are the steps used for ssh'ing into a remote host to build and test.
steps:
- task: SSH@0
displayName: 'Create Build Directory'
inputs:
sshEndpoint: freebsd
commands: |
set -e
REMOTE_BASEDIR=$(mktemp -d -t build)
REMOTE_SOURCEDIR="${REMOTE_BASEDIR}/src"
REMOTE_OUTPUTDIR="${REMOTE_BASEDIR}/build"
mkdir "${REMOTE_SOURCEDIR}"
mkdir "${REMOTE_OUTPUTDIR}"
echo "##vso[task.setvariable variable=Remote.BaseDir]${REMOTE_BASEDIR}"
echo "##vso[task.setvariable variable=Remote.SourceDir]${REMOTE_SOURCEDIR}"
echo "##vso[task.setvariable variable=Remote.OutputDir]${REMOTE_OUTPUTDIR}"
- task: CopyFilesOverSSH@0
displayName: 'Securely copy files to the remote machine'
inputs:
sshEndpoint: freebsd
sourceFolder: '$(Build.SourcesDirectory)'
targetFolder: '$(Remote.SourceDir)'
- task: SSH@0
displayName: 'Create Build Directory'
inputs:
sshEndpoint: freebsd
commands: |
set -e
cd $(Remote.OutputDir)
$(Remote.SourceDir)/ci/build.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment