forked from KatKiker/oorb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
103 lines (97 loc) · 2.77 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
#
# Parallel build
#
jobs:
- template: azure-tpl-jobs.yml
parameters:
name: 'Linux_Conda'
vmImage: 'Ubuntu 16.04'
- template: azure-tpl-jobs.yml
parameters:
name: 'MacOS_Conda'
vmImage: 'macOS-10.13'
- job: 'Ubuntu_1604_py27'
condition: eq('a', 'a')
displayName: 'Ubuntu 16.04 Py27'
pool:
vmImage: 'Ubuntu 16.04'
steps:
- checkout: self
fetchDepth: 1
- script: |
set -xe
sudo apt-get update
sudo rm -f /usr/bin/conda
# sudo apt-get install -y git gfortran build-essential python3-dev python3-numpy python3-pytest
sudo apt-get install -y git gfortran build-essential python-dev python-numpy python-pytest
./configure gfortran opt --prefix=/opt/test/openorb --with-pyoorb
make -j8
make ephem -j8
make test
sudo make install
displayName: 'Build'
- script: |
set -xe
SRCDIR=$PWD
cd /
python -c "import pyoorb; print('success.')"
python $SRCDIR/python/test.py
displayName: 'Test'
- job: 'Ubuntu_1604_py35'
displayName: 'Ubuntu 16.04 Py35 (w. codecov)'
condition: eq('a', 'a')
pool:
vmImage: 'Ubuntu 16.04'
steps:
- checkout: self
fetchDepth: 1
- script: |
set -xe
sudo apt-get update
sudo rm -f /usr/bin/conda
sudo apt-get install -y git gfortran build-essential python3-dev python3-numpy python3-pytest
# Intentionally install python 2, to verify it doesn't get confused
sudo apt-get install -y git gfortran build-essential python-dev python-numpy python-pytest
./configure gfortran opt --prefix=/opt/test/openorb --with-f2py=f2py3 --with-python=python3 --with-pytest=py.test-3 --with-pyoorb --coverage
make -j8
make ephem -j8
make coverage
bash <(curl -s https://codecov.io/bash) -Z
sudo make install
env:
# NOTE: you must define this *secret* variable in Azure Pipelines
CODECOV_TOKEN: $(CODECOV_TOKEN)
displayName: 'Build'
- script: |
set -xe
SRCDIR=$PWD
cd /
python3 -c "import pyoorb; print('success.')"
python3 $SRCDIR/python/test.py
displayName: 'Test'
- job: 'Ubuntu_1604_no_pyoorb'
condition: eq('a', 'a')
displayName: 'Ubuntu 16.04 (w/o pyoorb)'
pool:
vmImage: 'Ubuntu 16.04'
steps:
- checkout: self
fetchDepth: 1
- script: |
set -xe
sudo apt-get update
sudo rm -f /usr/bin/conda
sudo apt-get install -y git gfortran build-essential
./configure gfortran opt
make -j8
make ephem -j8
sudo apt-get install -y python-pytest
make test
sudo make install
displayName: 'Build'
- script: |
set -xe
echo PATH="$PATH"
ls -l /usr/local/{bin,etc,lib,share}
[[ $(oorb --help | head -n 1) == "Usage:" ]] && echo yes
displayName: 'Test'