forked from sunpy/sunpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
80 lines (68 loc) · 1.93 KB
/
.travis.yml
File metadata and controls
80 lines (68 loc) · 1.93 KB
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
language: python
group: travis_latest
dist: xenial
os: linux
sudo: false
env:
global:
- TOX_ARG=''
name: "Cron jobs"
if: type = cron
matrix:
fast_finish: true
include:
- os: osx
language: generic
name: "macOS 3.7 (py37-offline)"
python: "3.7"
env: TOX_ENV='py37-offline'
- name: "3.6 offline (py36-offline)"
python: "3.6"
env: TOX_ENV='py36-offline'
- name: "3.7 online (py37-online)"
python: "3.7"
env:
- TOX_ENV='py37-online'
- TOX_ARG='-- -n=4'
- name: "Figure tests (figure)"
env:
- TOX_ENV='figure'
- name: "AstroPy dev (py37-astropydev)"
python: "3.7"
env:
- TOX_ENV='py37-astropydev'
addons:
apt:
packages:
- httpie
- name: "NumPy dev (py37-numpydev)"
python: "3.7"
addons:
apt:
packages:
- gfortran
- libatlas-dev
- libatlas-base-dev
env: TOX_ENV='py37-numpydev'
allow_failures:
- name: "3.7 online (py37-online)"
python: "3.7"
env:
- TOX_ENV='py37-online'
- TOX_ARG='-- -n=4'
before_install:
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
# We do not want to create the test env
- echo "" > ci-helpers/travis/setup_dependencies_common.sh
- source ci-helpers/travis/setup_conda.sh
- pip install tox
- if [[ $TOX_ENV == *figure* ]]; then pip install tox-conda; fi
script:
- tox -e $TOX_ENV $TOX_ARG
- pip install --upgrade codecov
- codecov
after_failure:
# Send a nice matrix notification if the Astropy-dev job fails
- NOTIF_TEXT='Build '$TRAVIS_BUILD_NUMBER' (Astropy-dev) Failed:'$TRAVIS_BUILD_WEB_URL
- AVATAR_URL='https://s3-eu-west-1.amazonaws.com/cadair.com/Tessa-pride.png'
- if [[ -n "$NOTIFURL" && $TOX_ENV == *astropydev* ]]; then http --verify=no POST $NOTIFURL displayName="Travis Bot" avatarUrl="$AVATAR_URL" text="$NOTIF_TEXT"; fi