forked from ome/bioformats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.69 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
language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
env:
- BUILD=maven
- BUILD=cpp
- BUILD=cppwrap
- BUILD=sphinx
- BUILD=ant
matrix:
fast_finish: true
allow_failures:
- env: "BUILD=cppwrap"
before_install:
- if [[ $BUILD == 'sphinx' ]]; then sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ saucy 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 cmake 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' ]]; then sudo pip install flake8 pep8==1.6.2 Sphinx; 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' ]]; then git fetch --tags; fi
- if [[ $BUILD == 'maven' ]]; then mvn install -DskipTests=true; fi
script:
- ./tools/test-build $BUILD
matrix:
exclude:
- jdk: oraclejdk8
env: BUILD=sphinx
- jdk: oraclejdk7
env: BUILD=sphinx
- jdk: oraclejdk8
env: BUILD=cpp
- jdk: oraclejdk7
env: BUILD=cpp
- jdk: oraclejdk8
env: BUILD=cppwrap
- jdk: oraclejdk7
env: BUILD=cppwrap