forked from ome/openmicroscopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (54 loc) · 2.58 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
59
60
61
62
63
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 -y install python-imaging python-numpy python-tables python-yaml
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5E6DA83306132997
- sudo apt-add-repository "deb http://zeroc.com/download/apt/ubuntu`lsb_release -rs` stable main"
- sudo apt-get update
- sudo apt-get -y install zeroc-ice-all-runtime zeroc-ice-all-dev
- sudo pip install -U https://github.com/ome/zeroc-ice-py-ubuntu1404/releases/download/0.1.0/zeroc_ice-3.6.4-cp27-none-linux_x86_64.whl
# 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.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