Skip to content

Commit b0086f3

Browse files
nulltokenyorah
authored andcommitted
Refactor Travis build script
1 parent df84243 commit b0086f3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.travis.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33

44
language: c
55

6-
# Make sure CMake is installed
6+
# Make sure CMake and Mono are installed
77
install:
88
- sudo apt-get install cmake mono-devel mono-gmcs
99

1010
# Build libgit2, LibGit2Sharp and run the tests
1111
script:
1212
- git submodule update --init
13-
- mkdir cmake-build
14-
- LIBGIT2SHA=`cat ./LibGit2Sharp/libgit2_hash.txt`
15-
- SHORTSHA=${LIBGIT2SHA:0:7}
16-
- cd cmake-build
17-
- cmake -DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./libgit2-bin -DSONAME_APPEND=$SHORTSHA ../libgit2
18-
- export LD_LIBRARY_PATH=$PWD/libgit2-bin/lib
19-
- cmake --build . --target install
20-
- cd ..
21-
- xbuild CI-build.msbuild /t:Deploy
13+
- ./build.libgit2sharp.sh
2214

2315
# Only watch the development branch
2416
branches:

0 commit comments

Comments
 (0)