forked from nilmtk/nilmtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (29 loc) · 1.03 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
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)
#- pip install 'git+https://github.com/nilmtk/nilm_metadata.git#egg=nilm_metadata'
# Finally, install nilmtk...
#- pip install 'git+https://github.com/nilmtk/nilmtk.git#egg=nilmtk'
script:
- python -c 'from nilmtk.utils import show_versions; show_versions()'
- nosetests
after_script:
- source deactivate
cache:
directories:
- $HOME/.cache/pip