forked from LeeKamentsky/python-javabridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (56 loc) · 1.91 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
language: java
env:
- PYTHON_VERSION="3.6"
jdk:
- oraclejdk9
- oraclejdk11
- openjdk8
- openjdk11
before_install:
# Get the tag if it wasn't provided. Travis doesn't provide this if it isn't a tagged build.
- if [ -z $TRAVIS_TAG ]; then TRAVIS_TAG=`git tag --contains` ; fi
- echo $TRAVIS_TAG
# Move out of git directory to build root.
- cd ../..
- pwd
install:
# Download and configure conda.
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes
- conda config --set show_channel_urls True
- source activate root
# Install basic conda dependencies.
- touch $HOME/miniconda/conda-meta/pinned
- echo "conda-build ==1.16.0" >> $HOME/miniconda/conda-meta/pinned
- conda update --all
- conda install conda-build
# Setup environment for testing and install all dependencies and our package.
- cd $TRAVIS_REPO_SLUG
- conda create --use-local -n testenv python=$PYTHON_VERSION
- source activate testenv
- python setup.py develop
# Install sphinx and friends to build documentation.
# (LEEK) travis install of sphinx on Python 3.5 crashed
- pip install sphinx==1.7.2
# Install coverage and coveralls to generate and submit test coverage results for coveralls.io.
- echo "coverage 3.*" >> $HOME/miniconda/envs/testenv/conda-meta/pinned
- conda install nose
- conda install coverage
- pip install coveralls
# Clean up downloads as there are quite a few and they waste space/memory.
- conda clean -tipsy
- rm -rfv $HOME/.cache/pip
script:
# Run tests.
- python setup.py nosetests
# Build docs.
- cd docs
- make html
- cd ..
after_success:
# Submit results to coveralls.io.
- coveralls
# Use container format for TravisCI for quicker startup and builds.
sudo: false