forked from ome/openmicroscopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 1.66 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
language: java
jdk:
- openjdk7
# This (sudo: false) is needed to "run on container-based infrastructure" on
# which cache: is available
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
# http://docs.travis-ci.com/user/caching/#Arbitrary-directories
cache:
directories:
- $HOME/.m2
- download
matrix:
fast_finish: true
addons:
apt_packages:
- git
- zeroc-ice34
- python-imaging
- python-numpy
- python-tables
- cmake
- libgtest-dev
env:
- BUILD="build-python"
- BUILD="build-java"
before_install:
- git config github.token 3bc7fc530b01081559eb911f59ccfec7f4fb2592
- git config --global user.email [email protected]
- git config --global user.name 'Snoopy Crime Cop'
- pip install --user scc pytest
- if [[ $BUILD == 'build-python' ]]; then pip install --user -r ./components/tools/OmeroWeb/requirements-py27-nginx.txt; fi
- export PATH=$PATH:$HOME/.local/bin
- scc travis-merge
- if [[ $BUILD == 'build-python' ]]; then travis_retry pip install --user flake8==2.4.0 pytest==2.7.3; fi
- if [[ $BUILD == 'build-python' ]]; then ./components/tools/travis-build py-flake8; fi
# retries the build due to:
# https://github.com/travis-ci/travis-ci/issues/2507
install:
- if [[ $BUILD == 'build-python' ]]; then travis_retry ./components/tools/travis-build py-build; fi
- if [[ $BUILD == 'build-java' ]]; then travis_retry ./components/tools/travis-build java-build; fi
script:
- if [[ $BUILD == 'build-python' ]]; then ./components/tools/travis-build py-test; fi
- if [[ $BUILD == 'build-java' ]]; then ./components/tools/travis-build java-test; fi