Skip to content

Commit

Permalink
Build pgplot 5.3.0 in cached dir, use
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Aug 9, 2015
1 parent 953cb78 commit 7e18d69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -25,6 +25,9 @@ addons:
- freeglut3-dev
- libgsl0-dev
- libnetpbm10-dev
cache:
directories:
- $HOME/pgplot530
matrix:
include:
# start the first coverage early so that it starts before everything else
Expand Down Expand Up @@ -63,6 +66,8 @@ before_install:
# clang is already installed in Travis-CI environment. Using PERL_MM_OPT does not work with subdirectory Makefile.PLs so we override Config.pm
# Also, both $Config{cc} and $Config{ld} need to be set because under ELF environments (such as Travis-CI's Ubuntu), this is what Perl's Config.pm does.
- if [ "$CC" == "clang" ]; then mkdir build_aux; echo 'package force_clang; use ExtUtils::MakeMaker::Config; $Config{cc} = $Config{ld} = "clang"; 1' > build_aux/force_clang.pm; export PERL5OPT="-I$(pwd)/build_aux -Mforce_clang"; fi
- BASE="pgplot530"; INST="$HOME/$BASE"; if [ ! -f "$INST/drivers.list" ]; then mkdir "$INST"; wget "http://www.astro.caltech.edu/~tjp/npgplot/downloads/${BASE}.tar.gz"; tar xvf "${BASE}.tar.gz"; SRC="$(pwd)/${BASE}"; cd "$INST"; cp "$SRC/driver.list" .; "$SRC/makemake" "$SRC" linux g77_gcc_aout; make; make cpg; fi
- export PGPLOT_DIR="$INST"
- export PGPLOT_DEV=/NULL
- perl -pi -e 's|WITH_BADVAL => 1|WITH_BADVAL => 0| if defined $ENV{PDL_WITH_BADVAL} && $ENV{PDL_WITH_BADVAL} == 0' perldl.conf # disable bad value support
- perl -pi -e 's|BADVAL_USENAN => 0|BADVAL_USENAN => 1| if defined $ENV{PDL_BADVAL_USENAN} && $ENV{PDL_BADVAL_USENAN} == 1' perldl.conf # enable BADVAL_USENAN
Expand All @@ -74,8 +79,7 @@ before_install:
- build-perl
- perl -V
- cpanm --quiet --notest ExtUtils::F77 Term::ReadLine::Gnu # do not need tests
#disable as pgplot not installed by package system right now
# - cpanm --quiet --notest PGPLOT # do not need tests
- cpanm --quiet --notest PGPLOT # do not need tests
- cpanm --quiet --notest Devel::CheckLib # specify this now because this is a CONFIGURE_REQUIRES for author-side
- if [ "$AUTHOR_TESTING" == 1 ]; then cpanm --quiet --notest CPAN::Changes; fi # for author tests (AUTHOR_TESTING is set to true by default by init)
- cpanm --force --verbose ExtUtils::ParseXS # we install the latest ExtUtils::ParseXS
Expand Down

0 comments on commit 7e18d69

Please sign in to comment.