Browse Source

local lib et cache cabal

Sniperovitch 8 years ago
parent
commit
ae0fa7eeda
1 changed files with 23 additions and 5 deletions
  1. 23 5
      .travis.yml

+ 23 - 5
.travis.yml

@@ -1,3 +1,9 @@
+language: perl
+  - "5.18"
+  - "5.20"
+  - "5.22"
+  - "5.24"
+
 before_install:
   - sudo apt-get -qq update
   - sudo apt-get install -y liblwp-protocol-https-perl
@@ -6,10 +12,22 @@ before_install:
   - sudo apt-get install -y cabal-install
   - "cabal update"
   - "cabal install pandoc-crossref"
+  - "cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)"
   - "cpanm Moo"
   - "cpanm Pandoc"
-language: perl
-  - "5.18"
-  - "5.20"
-  - "5.22"
-  - "5.24"
+
+script:
+  - ./test_pandoc_version.sh
+  - perl -MPandoc -E 'say $Pandoc::VERSION'
+
+cache:
+ directories:
+ - $HOME/.cabal/packages
+ - $HOME/.cabal/store
+ - $HOME/.cabal/bin
+ - $HOME/.stack/bin
+ - $HOME/.stack/precompiled
+ - $HOME/.stack/programs
+ - $HOME/.stack/setup-exe-cache
+ - $HOME/.stack/snapshots
+