forked from nilmtk/nilmtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (30 loc) · 1.04 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
sudo: false # use new container infrastructure on Travis CI
language: python
python: 3.7
before_install:
# Install miniconda.
- wget https://repo.anaconda.com/miniconda/Miniconda3-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 -f environment-dev.yml
- source activate nilmtk-env
# Install nilm_metadata (development version)
- pip install 'git+https://github.com/nilmtk/nilm_metadata.git#egg=nilm_metadata'
# Finally, install nilmtk (development version)
- pip install .
script:
- python -c 'from nilmtk.utils import show_versions; show_versions()'
- nosetests
- bash ci/build_conda_package.sh
after_script:
- source deactivate
cache:
directories:
- $HOME/.cache/pip