1
- language : java
2
- env :
3
- - PYTHON_VERSION="2.7"
4
- - PYTHON_VERSION="3.5"
5
- before_install :
6
- # Get the tag if it wasn't provided. Travis doesn't provide this if it isn't a tagged build.
7
- - if [ -z $TRAVIS_TAG ]; then TRAVIS_TAG=`git tag --contains` ; fi
8
- - echo $TRAVIS_TAG
9
- # Move out of git directory to build root.
10
- - cd ../..
11
- - pwd
1
+ language : python
2
+ python :
3
+ - " 2.7"
4
+ - " 3.5"
5
+ sudo : false
6
+ notifications :
7
+ email : false
12
8
install :
13
- # Download and configure conda.
14
- - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
15
- - bash miniconda.sh -b -p $HOME/miniconda
16
- - export PATH="$HOME/miniconda/bin:$PATH"
17
- - conda config --set always_yes yes
18
- - conda config --set show_channel_urls True
19
- - source activate root
20
- # Install basic conda dependencies.
21
- - touch $HOME/miniconda/conda-meta/pinned
22
- - echo "conda-build ==1.16.0" >> $HOME/miniconda/conda-meta/pinned
23
- - conda update --all
24
- - conda install conda-build
25
- # Setup environment for testing and install all dependencies and our package.
26
- - cd $TRAVIS_REPO_SLUG
27
- - conda create --use-local -n testenv python=$PYTHON_VERSION
28
- - source activate testenv
29
- - conda install numpy
30
- - python setup.py install
31
- # Install sphinx to build documentation.
32
- - conda install sphinx
33
- # Install coverage and coveralls to generate and submit test coverage results for coveralls.io.
34
- - echo "coverage 3.*" >> $HOME/miniconda/envs/testenv/conda-meta/pinned
35
- - conda install nose
36
- - conda install coverage
37
- - pip install coveralls
38
- # Clean up downloads as there are quite a few and they waste space/memory.
39
- - conda clean -tipsy
40
- - rm -rfv $HOME/.cache/pip
9
+ - pip install --upgrade pip wheel
10
+ - pip install --upgrade numpy
11
+ - pip install sphinx
12
+ - pip install .
41
13
script :
42
- # Run tests.
43
- - python nosetests.py
44
- # Build docs.
45
- - cd docs
46
- - make html
47
- - cd ..
48
- # after_success:
49
- # Submit results to coveralls.io.
50
- # - coveralls
51
- # Use container format for TravisCI for quicker startup and builds.
52
- sudo : false
14
+ - nosetests
15
+ - cd docs && make html
0 commit comments