-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
40 lines (36 loc) · 1.15 KB
/
.gitlab-ci.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
#image: python:2.7
#image: debian:stretch
# before_script:
# # - cat /etc/apt/sources.list | sed 's/deb /deb-src /g' >> /etc/apt/sources.list
# - apt-get update
# # Install needed python2 packages
# - apt-get install -y python-pip python-pytest-cov python-coverage
# - apt-get install -y python-numpy
# - apt-get install -y python-matplotlib
# - apt-get install -y python-astropy python-photutils python-healpy python-wcsaxes
# - pip install pytest-mpl
# # Install needed python2 packages
# - apt-get install -y python3-pip python3-pytest-cov python3-coverage
# - apt-get install -y python3-numpy
# - apt-get install -y python3-matplotlib
# - apt-get install -y python3-astropy python3-photutils python3-healpy python3-wcsaxes
# - pip3 instal pytest-mpl
# # Alternative preparation....
# # - apt-get build-dep -y python-numpy
# # - apt-get build-dep -y matplotlib
# # - pip install numpy astropy healpy photutils matplotlib
image: abeelen/pyastro
stages:
- test
test_master_v2:
stage: test
tags:
- test
script:
- MPLBACKEND="agg" py.test
test_master_v3:
stage: test
tags:
- test
script:
- MPLBACKEND="agg" py.test-3