Permalink
Browse files

[travis] Install libgit2 correctly and define our language as c

Part of .travis.sh lovingly borrowed from:
    https://raw.github.com/libgit2/pygit2/master/.travis.sh
  • Loading branch information...
1 parent 59e6d66 commit c94bd56b9682966e949fd9db979349dff70f8b8a @leto leto committed Sep 29, 2013
Showing with 36 additions and 8 deletions.
  1. +30 −0 .travis.sh
  2. +6 −8 .travis.yml
View
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# The following commands are invoked by the before_script hook
+# in .travis.yml . They install a recent release of Parrot
+# and the master branch of libgit2
+
+echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
+
+# Grab a recent Parrot VM
+wget https://github.com/parrot/parrot/archive/RELEASE_5_7_0.zip
+unzip RELEASE*
+cd parrot-RELEASE*
+pwd
+perl Configure.pl --prefix="/tmp/installed_parrot" && make install
+export PATH=/tmp/installed_parrot/bin/:$PATH
+cd ..
+
+# The code below was lovingly borrowed from:
+# https://raw.github.com/libgit2/pygit2/master/.travis.sh
+
+cd ~
+
+git clone --depth=1 -b master https://github.com/libgit2/libgit2.git
+cd libgit2/
+
+mkdir build && cd build
+cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_CLAR=OFF
+cmake --build . --target install
+
+ls -la ..
View
@@ -1,11 +1,10 @@
+language: "c"
+
before_script:
- - wget https://github.com/parrot/parrot/archive/RELEASE_5_3_0.zip
- - unzip RELEASE*
- - cd parrot-RELEASE*
- - pwd
- - perl Configure.pl --prefix="/tmp/installed_parrot" && make install
- - export PATH=/tmp/installed_parrot/bin/:$PATH
- - cd ..
+ - ./.travis.sh
+
+env:
+ - LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib:/tmp/installed_parrot/lib
# This sets up the Rosella submodule
before_install:
@@ -23,4 +22,3 @@ notifications:
email:
on_success: change
on_failure: always
-#env:

0 comments on commit c94bd56

Please sign in to comment.