forked from transpose-publishing/policies-database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 963 Bytes
/
.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
language: generic
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 policies-database
- conda list
script:
# In the future, we can consider only evaluating changed YAML files
- CHANGED_FILES=($(git diff --name-only $TRAVIS_COMMIT_RANGE))
- echo $CHANGED_FILES
# - jupyter nbconvert --inplace --execute
# --ExecutePreprocessor.timeout=-1
# --ExecutePreprocessor.kernel_name=python
# romeo/*.ipynb
- pytest policies/validate_policies.py
# - jupyter nbconvert --inplace --execute
# --ExecutePreprocessor.timeout=-1
# --ExecutePreprocessor.kernel_name=python
# policies/*.ipynb