forked from Unidata/python-training
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (37 loc) · 1.6 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
language: python
cache: apt
sudo: false
branches:
only:
- master
python:
- 3.6
env:
global:
- MINICONDA_DIR="$HOME/miniconda"
- secure: MXdYKYUM3my1jL7SMYOa3atk58VwMYEu39pWOF6q0ALoEY/vPbUP2cWAp4QJO7LRic/vIzh6L+YaW6FYmvDXhn+BAXOweCV3ndE1IipxmlFGw0GdUF3Voll2q8IXdCLrXCa+vwufwhaQCGhFUyMKtk6XZOmXfinO6PkJ2tX4+sB95zgbBRKag+uKJ397QPLx1bR5u551bV49jfSXqLkkLOogtjcajEYsQQ1G78BOrrAQJti/1+lRhzIZ2XhwhONdWr1peD4W6e4jctrC/TQrjAjtnInNjDZLewRLOB4pz+RXwz5HkX6xoMLHkwH6835D9dcB79TNB6Z/bIgN3PCmH2GH5UfuonE76V9otlPMJJkNidu3EMyqkQ27EOpco/yYlLhr4YlAfZeP3/cLX+1tdeyLWzFXAWC4L1bzfucvOeNoMsFujwC4IZb8qQDmdTu67KDrb4+KkTOoRbkglO+JAXJJgc3kFWbAA964BElzdtEEf9+F7IVVNlLZMmcot9oJqAPlV+DB2G9Tlfolo6CuWiP1sxTn9nUVRKBg8tPfdJBhdk9Y0Z6qBxiFVxLJEO2tFpd3moFLgv8Wu8d81JPfSO/2n4TW9K5ziv1X7cpsWUiiQkl8+xDS7pZj2KNX6LuVqqrhp04oa2z+Neb6WyU4iU/dSVV6Nj7EqdMyowYb8Ik=
before_install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export CONDA_OS_NAME="MacOSX"; else export
CONDA_OS_NAME="Linux"; fi;
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-${CONDA_OS_NAME}-x86_64.sh
-O miniconda.sh
- bash miniconda.sh -b -p $MINICONDA_DIR
- export PATH="$MINICONDA_DIR/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda setuptools
- conda info -a
- sed -i -e "s/python=3/python=$Python/" environment.yml;
install:
- conda env create -q -f environment.yml
- source activate unidata
- pip install -U --upgrade-strategy=eager 'Nikola[extras]'
- conda list
script:
- python notebooks_preprocess.py
- python run_notebooks.py
- nikola build --strict
deploy:
provider: script
skip_cleanup: true
script: bash deploy.sh