Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c94bd56

Browse files
committed
[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
1 parent 59e6d66 commit c94bd56

2 files changed

Lines changed: 36 additions & 8 deletions

File tree

.travis.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
# The following commands are invoked by the before_script hook
4+
# in .travis.yml . They install a recent release of Parrot
5+
# and the master branch of libgit2
6+
7+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
8+
9+
# Grab a recent Parrot VM
10+
wget https://github.com/parrot/parrot/archive/RELEASE_5_7_0.zip
11+
unzip RELEASE*
12+
cd parrot-RELEASE*
13+
pwd
14+
perl Configure.pl --prefix="/tmp/installed_parrot" && make install
15+
export PATH=/tmp/installed_parrot/bin/:$PATH
16+
cd ..
17+
18+
# The code below was lovingly borrowed from:
19+
# https://raw.github.com/libgit2/pygit2/master/.travis.sh
20+
21+
cd ~
22+
23+
git clone --depth=1 -b master https://github.com/libgit2/libgit2.git
24+
cd libgit2/
25+
26+
mkdir build && cd build
27+
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_CLAR=OFF
28+
cmake --build . --target install
29+
30+
ls -la ..

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
language: "c"
2+
13
before_script:
2-
- wget https://github.com/parrot/parrot/archive/RELEASE_5_3_0.zip
3-
- unzip RELEASE*
4-
- cd parrot-RELEASE*
5-
- pwd
6-
- perl Configure.pl --prefix="/tmp/installed_parrot" && make install
7-
- export PATH=/tmp/installed_parrot/bin/:$PATH
8-
- cd ..
4+
- ./.travis.sh
5+
6+
env:
7+
- LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib:/tmp/installed_parrot/lib
98

109
# This sets up the Rosella submodule
1110
before_install:
@@ -23,4 +22,3 @@ notifications:
2322
email:
2423
on_success: change
2524
on_failure: always
26-
#env:

0 commit comments

Comments
 (0)