File: .travis.yml

package info (click to toggle)
knitpy 0.1.1~git20180430-4.3
  • links: PTS
  • area: main
  • in suites: forky
  • size: 912 kB
  • sloc: python: 1,576; makefile: 54
file content (42 lines) | stat: -rw-r--r-- 1,320 bytes parent folder | download | duplicates (3)
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
# http://travis-ci.org/#!/ipython/ipython
language: python

python:
    - 3.4
    - 2.7

env:
  global:
    - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH

install:
  # We do this conditionally because it saves us some downloading if the version is
  # the same.
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
    else
      wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
    fi
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda

  # install our packages
  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pip pyyaml matplotlib jupyter_client jupyter_core traitlets ipykernel  nose pyzmq
  - source activate test-environment

  # pandoc...
  - 'wget https://7de4dfdec62155b49b44-d726a73613a1989d29b147f20996e7c1.ssl.cf2.rackcdn.com/pandoc-1.12.3-linux-debian-x86_64.zip && unzip pandoc-1.12.3-linux-debian-x86_64.zip;'
  - export PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
  - pip install pypandoc

  # Useful for debugging any issues with conda
  - conda info -a
  - conda list

  - python setup.py install

script:
  - nosetests knitpy