-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
56 lines (41 loc) · 1.89 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
language: python
python:
- '3.5'
- '3.6'
branches:
only:
- master
- development
before_install:
- ./install_dcr.sh
install:
- export PATH="$PATH:$HOME/build/soar-telescope/goodman/dcrbin"
- sudo apt-get update
# Here we install Anaconda to work with Virtual Environments. We do this
# conditionally because it saves us some downloading if the version is the same.
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
# Adding AstroConda Channel since it contains most of the dependencies for
# Dragons and Dragons-SOAR
- conda config --add channels http://ssb.stsci.edu/astroconda
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Create astroconda virtual environment
- conda env create -q python=$TRAVIS_PYTHON_VERSION -f environment.yml
- source activate goodman
# install
- python setup.py test
- python setup.py install
script:
- pytest
- coverage run --branch --source= setup.py test
# TODO - How can I add the ./goodman as a source?
after_success:
- coveralls
notifications:
slack:
secure: nXR+xnqukl9rkA5ckId4eZ3sZO0BoXKATrPtKRDn9E9NAmgq5MZYzVpfiBTk1hSjec7IuKQ4WCHvmvdbgu5HBUvhf8pjEbIFdVjkoK/UEIkXLYIHazEF7PQG+9fMwXzNrv7NluBrA6nR4uF//Hz8ZKC2i/RG0wL4YDn9sEZqNGaCJ7toTONYT4sAzoGyHKR5yq18TVM6+D/7NDq/QOYEW9JbGaEc6URhYFZNlgSSd6glaxnyO9htoAKHKuk2vT31FgNpjHZrR34Upaw7NtdvSXlIAJjY4CwEunzwo48vEG10ZQydLJavk9hZw0pdwt5weroJiAfx6+j0kkt0i19o5pU2DDWqRgDds05Wt71t1lkCxV77VhsU7s85nWOsBL8351pF6/RGbNhg9LUbSrGA5PIbUXkKnOyrok27cZHoKKaSltgkABeGZdq/GsMvcp2ubDHvgnPAxAfZSmBlwhqjK7ugob8+sLEWRKHxVY71hl+/TCNd1MDLbROrU5QpyqTBco6EdEKJAV3m59837GBIHqGWEI6kYLt8QJDbT2SLfnnRFT9p3NaiNdN8ODCWhGjFZjHe2igUlOTqq/Zvd81k5SWB3Ewah9y12oDuiCh1rFq8yVnXHX7n7NV1ZxKlrKbcyCj9klFY9/C6GSCebftFkIv3GlXn4Lr4gWu3l0TmdAw=