-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (41 loc) · 1.2 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
language: python
python:
- 3.6
- nightly
matrix:
allow_failures:
- python: nightly
sudo: false
env:
- TEST_DIR=tests
addons:
apt_packages:
- gfortran
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
-O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- chmod +x miniconda.sh
- "./miniconda.sh -b -p $HOME/miniconda"
- export PATH=$HOME/anaconda/bin:$HOME/miniconda/bin:$PATH
- conda update --yes conda
install:
- conda env create -f environment.yml
- source activate simpegEMIP-environment
- export MPLBACKEND="agg"
- pip install -r requirements_dev.txt
- pip install coveralls
- python setup.py install
- make build
script:
- travis_wait 20 nosetests $TEST_DIR -v -s
after_success: coveralls
deploy:
provider: pypi
user: sgkang
password:
secure: WtCIxOm3pO7T86+MI0YeV5yy+D3pmWolVl3Bocp8ygfUCOVAWq55d6vUr8JJAhX1RgXDFEc/oGL7qCrya5+cK/HdVMqgyz4hfTyUe76ftsMWmz89VhT6TlLJknC6h4otTAarZWW7MecNdojVaOav8c3gz8iA/Ju75WRAGEvBJGQ=
on:
tags: true
distributions: sdist bdist_wheel
repo: sgkang/simpegemip