forked from shawnlaffan/biodiverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.46 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
language: perl
matrix:
include:
- perl: '5.26'
env: BD_NO_TEST_GUI=1
- perl: '5.24'
env: BD_NO_TEST_GUI=1
- perl: '5.24'
env: BD_NO_TEST_GUI=0
- perl: '5.22'
env: BD_NO_TEST_GUI=1
#perl:
# - '5.24'
# - '5.22'
distro: trusty
sudo: required
cache:
directories:
- perl_modules
- gdal_builds
#env:
# - BD_NO_TEST_GUI=1
# - BD_NO_TEST_GUI=0
before_install:
# local::lib target is cached
- cpanm --notest local::lib
- eval "$(perl -Mlocal::lib=${PWD}/perl_modules)"
- cpanm --notest List::MoreUtils~0.425
- cpanm --notest Sort::Key::Natural
# get the latest Geo::GDAL::FFI,
# and make sure something happens at the command prompt
# so we avoid timeouts when building Alien::gdal
- cpanm -v Geo::GDAL::FFI | perl -ne 'BEGIN {$|=1; open our $log, ">", "build.log"}; print "\n" if 0 == ($. % 90); print "."; print {$log} $_;' || cat build.log
# Disable Gtk stuff for speed reasons
# Reinstate when we add the GUI variant
- if [ "$BD_NO_TEST_GUI" = 0 ]; then sudo apt-get install libgnomecanvas2-dev; fi;
# Here as well as cpanfile because of dependency problems if not installed before Gnome2::Canvas
- if [ "$BD_NO_TEST_GUI" = 0 ]; then cpanm --notest ExtUtils::Depends ExtUtils::PkgConfig Glib Gtk2; fi;
- if [ "$BD_NO_TEST_GUI" = 0 ]; then cpanm --quiet --installdeps --notest --with-all-features .; fi;
script: prove -l -j4
# blocklist
branches:
except:
- ppm