forked from transientlunatic/grbeams
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
53 lines (46 loc) · 1.63 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
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py
language: python
env:
- TOXENV=py35
- TOXENV=py34
- TOXENV=py33
- TOXENV=py27
- TOXENV=py26
- TOXENV=pypy
# Setup anaconda
before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- chmod +x miniconda.sh
- hash -r
- export PATH=$HOME/miniconda/bin:$PATH
- conda update -q --yes conda
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
# - sudo rm -rf /dev/shm
# - sudo ln -s /run/shm /dev/shm
# Install packages
install:
- conda create --yes -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose astropy
- conda install --yes -c dan_blanchard coverage python-coveralls
# - conda install --yes -c https://conda.anaconda.org/jesserobertson python-coveralls
- source activate test-environment
- python setup.py install
# command to run tests, e.g. python setup.py test
script: python setup.py test
# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: transientlunatic
on:
tags: true
repo: transientlunatic/grasshopper
condition: $TOXENV == py27
notifications:
slack: glatechgws:DILe2PuemzDUfKM4Pfq9HQqb