forked from zerothi/sisl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (90 loc) · 2.66 KB
/
.travis.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
language: python
os: linux
# Manage sub-modules manually
git:
quiet: true
submodules: false
addons:
apt:
packages: &common_packages
- gfortran
- libatlas-base-dev
- liblapack-dev
- libnetcdf-dev
- libnetcdff-dev
- eatmydata
- ccache
cache:
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- $HOME/Library/Caches/pip
stages:
# First do simple test, then proceed with the others if successfull
- name: Initial test
- name: Full tests
branches:
except:
- "/.*gh-pages.*/"
- "/rtfd.*/"
notifications:
email:
recipients:
on_failure: always
on_success: change
webhooks:
urls:
- https://webhooks.gitter.im/e/fa6dc002908da5678b5f
on_success: change
on_failure: always
on_start: never
# Signal we are running travis
env:
global: SISL_TRAVIS_CI=true
jobs:
include:
- stage: first
name: "Py3.6 initial"
python: 3.6
- stage: full
name: "Py3.9 initial"
python: 3.9
- python: 3.6
name: "Py3.6 optional"
env:
- OPTIONAL_DEPENDENCIES=true
- python: 3.8
name: "Py3.8 optional"
env:
- OPTIONAL_DEPENDENCIES=true
before_install: ./ci/travis-before-install.sh
install: ./ci/travis-install.sh
script: ./ci/travis-script.sh
before_script:
- |
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
export DISPLAY=:99.0 ;
sh -e /etc/init.d/xvfb start ;
sleep 2 ;
fi
- export MPLBACKEND=Agg
# Webhooks for discord
#after_success:
# - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
# - chmod +x send.sh
# - ./send.sh success $DISCORD_HOOK
#after_failure:
# - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
# - chmod +x send.sh
# - ./send.sh failure $DISCORD_HOOK
deploy:
provider: pypi
user: zeroth
password:
secure: pDCY0LPyJ8zU0x/AZSaFWGNYHD+I2ERr6a+EOq21Hczk0T3t57ASyQ0Zb9j1gLwNpV5Qnu/rVS54IelwUZrt1TZiXxL842wK1x3IZYzESwNTjkkhgdU6ptZIB3ujUsWaI64KL2U28cFAxmZj5i/RwsRSSjPzPp23sm5HVzrR6BVAzCURow+WUxQfF/SeeA8JBTo6fdfdrzSPsxaq4FCRzEdgXaW7e3Kza+2bEfwumWR/fDL7Uoflx8+lklWUeGPmnTL4h/icenAtcK3b0qieEf3gJMErlD2nfWIBPji7wWUpWNObV1M5VulADYBoZgb88/AGVyQW+x6PMvlM6MvqC+NsiSKYJYRbI+IP5Q8Acf3xeh/OzTTgj1SO3O7kgUcyZpqNBVgfjtMFvNWM4qQDzlnpDg0sruozO59PvEjTLMYIIoAtB5uLq5C0UrbuFpPUKup3xOfzKDqTWI09rz4IUcBW+3wbJ+xsZSPQIkBR5CakGcyeTRg0YVMErXUZr2fcgHwOxNvVtb1swP+kOHM/2ts3mpV8WSdR+xa6+TLkeDL4yp7A0Z9zRkzkDvjPi81IwDGRd2YPU15evT+cCTep3vPCMLlNXfwBiqs/tv4Q87EILj+mXcfLdHmXwKRkG6XWkgbIW2ZHvlS1qjul7nHTLOF8e/4sLJT4OTz3kR5oKzI=
on:
branch: master
tags: true
distributions: "sdist"
skip_existing: true