This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
forked from reymond-group/tmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
116 lines (112 loc) · 4.01 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
trigger:
- master
jobs:
- job: Ubuntu
pool:
vmImage: "ubuntu-latest"
steps:
- script: |
source ${CONDA}/etc/profile.d/conda.sh
sudo chown -R ${USER} ${CONDA}
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda create --name tmbuild
conda activate tmbuild
conda install -y conda-build
displayName: Setup Conda
- bash: cd tmap
- script: |
source ${CONDA}/etc/profile.d/conda.sh
conda activate tmbuild
conda build ogdf-conda
displayName: "Conda build ogdf"
- script: |
source ${CONDA}/etc/profile.d/conda.sh
conda activate tmbuild
conda build tmap
displayName: "Conda build tmap"
- task: CopyFiles@2
displayName: "Copy Files to: $(build.artifactStagingDirectory)"
inputs:
SourceFolder: "/usr/share/miniconda/envs/tmbuild/conda-bld/linux-64/"
Contents: "*.tar.bz2"
TargetFolder: "$(build.artifactStagingDirectory)"
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: LinuxPackages"
- job: Windows
pool:
vmImage: vs2017-win2016
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Setup build environment
- script: |
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda create --name tmbuild
conda activate tmbuild
conda install -y conda-build
displayName: Setup Conda
- bash: cd tmap
- script: |
conda activate tmbuild
conda build ogdf-conda
displayName: "Conda build ogdf"
- script: |
conda activate tmbuild
conda build tmap
displayName: "Conda build tmap"
- task: CopyFiles@2
displayName: "Copy Files to: $(build.artifactStagingDirectory)"
inputs:
SourceFolder: 'C:\Miniconda\conda-bld\win-64\'
Contents: "*.tar.bz2"
TargetFolder: "$(build.artifactStagingDirectory)"
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: WindowsPackages"
- job: MacOS
pool:
vmImage: macos-10.13
variables:
target_platform: 10.13
steps:
- bash: |
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX$(target_platform).sdk.tar.xz
sudo mkdir /opt
sudo install -d -m 0777 /opt
tar Jxvf MacOSX$(target_platform).sdk.tar.xz -C /opt
displayName: Install MacOSX $(target_platform) SDK
- script: |
echo "Removing homebrew from Azure to avoid conflicts."
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
chmod +x ~/uninstall_homebrew
~/uninstall_homebrew -fq
rm ~/uninstall_homebrew
displayName: Remove Homebrew
- script: |
source ${CONDA}/etc/profile.d/conda.sh
sudo chown -R ${USER} ${CONDA}
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda create --name tmbuild
conda activate tmbuild
conda install -y conda-build
displayName: Setup Conda
- bash: cd tmap
- script: |
source ${CONDA}/etc/profile.d/conda.sh
conda activate tmbuild
conda build ogdf-conda
displayName: "Conda build ogdf"
- script: |
source ${CONDA}/etc/profile.d/conda.sh
conda activate tmbuild
conda build tmap
displayName: "Conda build tmap"
- task: CopyFiles@2
displayName: "Copy Files to: $(build.artifactStagingDirectory)"
inputs:
SourceFolder: "/usr/local/miniconda/envs/tmbuild/conda-bld/osx-64/"
Contents: "*.tar.bz2"
TargetFolder: "$(build.artifactStagingDirectory)"
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: MacOSPackages"