forked from nilmtk/nilmtk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (32 loc) · 1.1 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
sudo: false # use new container infrastructure on Travis CI
language: python
python: 2.7
before_install:
# Install miniconda.
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- rm miniconda.sh
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda install -c conda conda-env
- conda info -a # Useful for debugging any issues with conda
install:
# create and activate env using NILMTK's environment.yml
- conda env create
- source activate nilmtk-env
# Install nilm_metadata (can't yet install using pip / conda)
- git clone https://github.com/nilmtk/nilm_metadata/
- cd nilm_metadata; python setup.py develop; cd ..
# Finally, install nilmtk...
- pip install -e 'git+https://github.com/nilmtk/nilmtk.git#egg=nilmtk'
script:
- python -c 'from nilmtk.utils import show_versions; show_versions()'
- nosetests --with-coverage
after_success:
- coveralls
after_script:
- source deactivate
cache:
directories:
- $HOME/.cache/pip