forked from ome/openmicroscopy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
58 lines (49 loc) · 2.18 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
57
58
language: java
jdk: oraclejdk8
# 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: required
# http://docs.travis-ci.com/user/caching/#Arbitrary-directories
cache:
directories:
- $HOME/.m2
- download
matrix:
fast_finish: true
addons:
apt_packages:
- git
- cmake
- libgtest-dev
env:
- BUILD="build-python"
- BUILD="build-java"
- BUILD="integration"
before_install:
# The installation of the python dependencies must be done in that level for now
# otherwise they are not available in the containers,
# see https://github.com/travis-ci/travis-ci/issues/8048
# Changing the value for sudo will also need to be reviewed at the same time
# This will need to be reviewed when the issue above is fixed
- export PATH=/usr/bin/:$PATH
- sudo apt-get install -y zeroc-ice35 python-imaging python-numpy python-tables python-yaml
# upgrade numexpr to fix table test failures
- sudo pip install -U numexpr
- pip install --user pytest
- if [[ $BUILD == 'build-python' ]]; then pip install --user -r ./components/tools/OmeroWeb/requirements-py27-all-ice35.txt; fi
- export PATH=$PATH:$HOME/.local/bin
- 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
notifications:
slack:
secure: YoCiRg7KuG+jQdW2wD5aBVurfJoKTT+/bKexZD/t5w+WjR4oKi0eoj+La4niUHxmUGHmJAuRYq/7wpP7nq1RBOcXQYpq9S842tmhhQZeC2EGFGw3YlBBEQj9oqMl9JlcI4lTkSo4V/uCnwdrFAGfGaAjICuCnEb9rvBhsXeqYtU=
on_success: change