-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
47 lines (40 loc) · 1.13 KB
/
Copy path.travis.yml
File metadata and controls
47 lines (40 loc) · 1.13 KB
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
language: python
sudo: false # if false, use TravisCI's container based build
# assume linux if not specified
addons:
apt:
packages:
- ccache
cache:
- ccache
# setup miniconda for numpy, scipy, pandas, etc.
before_install:
- echo "before install"
- export PYVER="3"
- export OSSTR="Linux-x86_64.sh";
- export PATH=/usr/lib/ccache:$PATH;
- export BASE="http://repo.continuum.io/miniconda/Miniconda"
- export CONDAVER="4.6.14"
- wget $BASE$PYVER-$CONDAVER-$OSSTR -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
- conda update -q conda
- conda info -a
install:
- echo "install"
- conda env create --file ci/environment.yml
- source activate pySolarCalc
- conda list
- echo $PATH
- ls -l /home/travis/miniconda/envs/pySolarCalc/lib
- pip install -e .
script:
- flake8
- pytest --cov=osd --cov-report term-missing
after_script:
pip install codecov;
codecov -e TRAVIS_PYTHON_VERSION;
after_success:
coveralls