forked from ome/bioformats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (53 loc) · 2.08 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
language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
env:
- BUILD=maven
- BUILD=cpp
- BUILD=cppwrap
- BUILD=flake8
- BUILD=sphinx
- BUILD=ant
matrix:
fast_finish: true
allow_failures:
- env: "BUILD=cppwrap"
before_install:
- if [[ $BUILD == 'cpp' ]]; then sudo add-apt-repository -y ppa:kubuntu-ppa/backports; fi
- if [[ $BUILD == 'cpp' ]]; then sudo apt-get -qq update; fi
- if [[ $BUILD == 'cpp' ]] || [[ $BUILD == 'cppwrap' ]]; then sudo apt-get install -qq cmake; fi
- if [[ $BUILD == 'sphinx' ]]; then sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ trusty main universe"; fi
- if [[ $BUILD == 'cpp' ]]; then sudo add-apt-repository -y ppa:dhor/myway; fi
- sudo apt-get -qq update
- if [[ $BUILD != 'sphinx' ]]; then sudo apt-get install -qq python-genshi; fi
- if [[ $BUILD == 'cpp' ]] || [[ $BUILD == 'cppwrap' ]]; then sudo apt-get install -qq build-essential libboost1.48-all-dev; fi
- if [[ $BUILD == 'cpp' ]]; then sudo apt-get install -qq libgtest-dev libxerces-c-dev libtiff4-dev doxygen graphviz graphicsmagick; fi
- if [[ $BUILD == 'sphinx' ]] || [[ $BUILD == 'flake8' ]]; then sudo pip install flake8 Sphinx==1.2.3; fi
- if [[ $BUILD == 'sphinx' ]]; then sudo apt-get -y install texlive-latex-base texlive-latex-recommended texlive-xetex; fi
- if [[ $BUILD == 'sphinx' ]]; then sudo apt-get -y install texlive-latex-extra texlive-fonts-recommended fonts-texgyre; fi
- if [[ $BUILD == 'sphinx' ]]; then sudo fc-cache -rsfv; fi
install:
- if [[ $BUILD != 'ant' ]] && [[ $BUILD != 'sphinx' ]] && [[ $BUILD != 'flake8' ]]; then git fetch --tags; fi
- if [[ $BUILD == 'maven' ]]; then mvn install -DskipTests=true; fi
script:
- ./tools/test-build $BUILD
matrix:
exclude:
- jdk: openjdk6
env: BUILD=flake8
- jdk: oraclejdk7
env: BUILD=flake8
- jdk: openjdk6
env: BUILD=sphinx
- jdk: oraclejdk7
env: BUILD=sphinx
- jdk: openjdk6
env: BUILD=cpp
- jdk: oraclejdk7
env: BUILD=cpp
- jdk: oraclejdk8
env: BUILD=cppwrap
- jdk: openjdk6
env: BUILD=cppwrap