forked from HazyResearch/metal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (44 loc) · 1.53 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
# Use a docker image for access to Ubuntu 16.04 (more details below)
sudo: required
dist: trusty
services:
- docker
language: python
python:
- "3.6" # This value may be referred to as $TRAVIS_PYTHON_VERSION
before_install:
# Use Ubuntu 16.04 instead of 14.04 to avoid the error:
# "ImportError: dlopen: cannot load any more object with static TLS"
# https://github.com/pytorch/pytorch/issues/2083
# https://github.com/RobotLocomotion/director/issues/467
# In short, Ubuntu 16.04 has a larger default allotment of TLS slots.
- docker pull ubuntu:16.04
# Check if miniconda is already accessible; if not, download and install it
- chmod +x ./.travis/maybe_install_miniconda.sh
- ./.travis/maybe_install_miniconda.sh
# Add miniconda to PATH
- export PATH="$HOME/miniconda/bin:$PATH"
# Set conda settings
- conda config --set always_yes yes # For all conda commands, choose 'yes'
- conda config --set changeps1 no # Do not show the name of the active env
install:
# Create conda environment
- conda env create -f environment.yml
- source activate metal
# Add metal/ to PYTHONPATH
- source add_to_path.sh
# Run linter/style checks
- make dev
- make check
script:
- nosetests
- runipy tutorials/Basics.ipynb
- runipy tutorials/Class_Balance.ipynb
- runipy tutorials/Multitask.ipynb
- runipy tutorials/Visualization.ipynb
notifications:
email:
recipients:
on_success: change # default: change [change, always, never]
on_failure: change # default: always