forked from michellab/Sire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-osx.yml
47 lines (43 loc) · 1.73 KB
/
azure-pipelines-osx.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
trigger:
- devel
jobs:
- job: 'SireOSX'
pool:
vmImage: 'macOS-10.14'
timeoutInMinutes: 180
steps:
- script: |
# make sure development headers are installed
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
./compile_sire.sh --install $HOME/sire.app
displayName: 'Build Sire'
- script: |
# create the binary package before running tests, as the package must be clean
$HOME/sire.app/bin/conda uninstall --yes cmake make clang_osx-64 clangxx_osx-64 llvm
$HOME/sire.app/bin/conda clean -tipy
$HOME/sire.app/bin/package_sire > package.log 2>&1
env:
SIRE_RUN_FILE: $HOME/sire_devel_latest_osx.run
displayName: 'Package Sire into a binary'
- script: |
# run the tests
$HOME/sire.app/bin/sire_test
displayName: 'Run Sire tests'
- script: |
# deploy the binary to an object store bucket identified by 'par_url'
$HOME/sire.app/bin/conda install -y pycurl conda-build=3.17 anaconda-client
$HOME/sire.app/bin/python docker/sire-deploy-devel/deploy.py $HOME/sire_devel_latest_osx.run
bash docker/sire-deploy-devel/deploy_release.sh
env:
PAR_URL: $(parURL)
displayName: 'Deploy binary to siremol.org'
- script: |
# finally create the Sire Conda package and upload to the Anaconda Cloud.
bash docker/sire-conda/create_package_file.sh
$HOME/sire.app/bin/python docker/sire-conda/deploy.py $HOME/sire_conda_latest_osx.tar.bz2
bash docker/sire-conda/update_recipe.sh
bash docker/sire-conda/build_and_deploy.sh
env:
ANACONDA_TOKEN: $(anacondaToken)
PAR_URL: $(parURL)
displayName: 'Create Conda package and upload to the Anaconda Cloud'