forked from zerothi/sisl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
111 lines (100 loc) · 3.08 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
108
109
110
111
language: minimal
sudo: false
# Manage sub-modules manually
git:
submodules: false
branches:
except:
- "/.*gh-pages.*/"
notifications:
email:
recipients:
- nickpapior@gmail.com
on_failure: always
on_success: change
webhooks:
urls:
- https://webhooks.gitter.im/e/fa6dc002908da5678b5f
on_success: change
on_failure: always
on_start: never
matrix:
include:
- env:
- CONDA_ENV=py27
- env:
- CONDA_ENV=py27-opt
- OPTIONAL_DEPENDENCIES=true
- env:
- CONDA_ENV=py36
- env:
- CONDA_ENV=py36-opt
- OPTIONAL_DEPENDENCIES=true
before_install:
- |
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh ;
else
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh ;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- hash -r
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
- conda info -a
- |
if [[ ${OPTIONAL_DEPENDENCIES:-false} == true ]]; then
export SISL_FILES_TESTS=$(pwd)/files/tests ;
git submodule update --init files ;
fi
install:
- conda env create -n test_env --file ci/requirements-$CONDA_ENV.yml
- source activate test_env
- conda info --envs
- conda list
- export CC=$GCC
- export FC=$GFORTRAN
- export F77=$GFORTRAN
- export F90=$GFORTRAN
- "$CC --version"
- "$FC --version"
- python -c 'import sys ; print(sys.version)'
- unset LDFLAGS
- pip install --no-deps -v -v -v -e .
script:
- which python
- python --version
- python -OO -c "import sisl"
- |
if [[ ${COVERAGE:-true} == true ]]; then
echo "Running coverage tests..." ;
py.test --pyargs sisl -rX --cov=sisl --cov-report term-missing --cov-config=.coveragerc ;
else
echo "Running non-coverage tests..." ;
py.test --doctest-modules sisl ;
py.test --pyargs sisl -rX ;
fi
after_success:
- |
if [[ ${COVERAGE:-true} == true ]]; then
bash <(curl -s https://codecov.io/bash) ;
python-codacy-coverage -r coverage.xml ;
fi
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
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