-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.travis.yml
63 lines (50 loc) · 1.96 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
55
56
57
58
59
60
61
62
63
# Travis CI config for Snorkel, a training data creation and management
# system focused on information extraction
dist: trusty
sudo: false # to use container-based infra, see: http://docs.travis-ci.com/user/migrating-from-legacy/
language: python
cache:
directories:
- download
before_install:
- travis_retry
wget https://repo.continuum.io/miniconda/Miniconda3-4.5.1-Linux-x86_64.sh
--output-document=miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source $HOME/miniconda/etc/profile.d/conda.sh
- conda config --set always_yes yes --set changeps1 no
- conda info --all
install:
- conda env create --quiet --file=environment.yml
- conda activate snorkel-extraction
- pip install .
- conda list
script:
# Run generative model test modules
- python test/learning/test_gen_learning.py
- python test/learning/test_supervised.py
- python test/learning/test_categorical.py
# Run PyTorch test modules
- python test/learning/pytorch/test_lstm.py
- python test/learning/pytorch/test_model_reloading.py
- python test/learning/pytorch/test_determinism.py
# Runs intro tutorial notebooks
- runipy tutorials/intro/Intro_Tutorial_1.ipynb
- runipy tutorials/intro/Intro_Tutorial_2.ipynb
- runipy tutorials/intro/Intro_Tutorial_3.ipynb
# Run advanced notebooks
- runipy tutorials/advanced/Categorical_Classes.ipynb
- runipy tutorials/advanced/Structure_Learning.ipynb
# Run CDR tutorials
- runipy tutorials/cdr/CDR_Tutorial_1.ipynb
- runipy tutorials/cdr/CDR_Tutorial_2.ipynb
- runipy tutorials/cdr/CDR_Tutorial_3.ipynb
# Run Image tutorial
- runipy tutorials/images/Images_Tutorial.ipynb
# TODO check outputs, upload results, etc.
# for more ideas, see: https://github.com/rossant/ipycache/issues/7
# Build Sphinx documentation
# # Disabled due to the following error:
# # make: *** docs: No such file or directory. Stop.
# - conda install --channel=conda-forge sphinx=1.7.4
# - make --directory=docs html