File tree Expand file tree Collapse file tree 6 files changed +61
-10
lines changed Expand file tree Collapse file tree 6 files changed +61
-10
lines changed Original file line number Diff line number Diff line change 8
8
- " 1.10"
9
9
10
10
before_install :
11
- - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then sudo apt-get install -y curl libcurl3 libcurl3-gnutls libcurl4-gnutls-dev; fi
12
11
- $GOPATH/src/github.com/git-time-metric/gtm/script/git2go-init.sh
13
- - cd $GOPATH/src/github.com/libgit2/git2go
14
- - make install-static
12
+ - $GOPATH/src/github.com/git-time-metric/gtm/script/build-libgit2-${TRAVIS_OS_NAME}.sh
15
13
- go get github.com/mattn/goveralls
16
14
17
15
before_deploy :
18
16
- go build -v --tags static -ldflags "-X main.Version=${TRAVIS_TAG}"
19
17
- tar -zcf gtm.${TRAVIS_TAG}.${TRAVIS_OS_NAME}.tar.gz gtm
20
18
21
19
script :
22
- - cd $TRAVIS_BUILD_DIR
23
20
- go get -d ./...
24
21
- $HOME/gopath/bin/goveralls -v -flags=--tags=static -service=travis-ci
25
22
Original file line number Diff line number Diff line change 17
17
18
18
install-git2go :
19
19
./script/git2go-init.sh
20
- cd ${GOPATH} /src/github.com/libgit2/git2go && make install-static
20
+ ./script/build-libgit2-osx.sh
21
21
22
22
install :
23
23
go install --tags static ${LDFLAGS}
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
+
2
3
set -ex
3
4
4
5
export PATH=/c/msys64/mingw64/bin:/c/msys64/usr/bin:/c/Go/bin:/c/gopath/go/bin:$PATH
@@ -20,6 +21,7 @@ cmake -DTHREADSAFE=ON \
20
21
-DUSE_BUNDLED_ZLIB=ON \
21
22
-DUSE_HTTPS=OFF \
22
23
-DUSE_SSH=OFF \
24
+ -DCURL=OFF \
23
25
-G " MSYS Makefiles" \
24
26
.. &&
25
27
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
+ pushd ${PWD}
6
+
7
+ cd ${GOPATH} /src/github.com/libgit2/git2go/vendor/libgit2 &&
8
+ mkdir -p install/lib &&
9
+ mkdir -p build &&
10
+ cd build &&
11
+ cmake -DTHREADSAFE=ON \
12
+ -DBUILD_CLAR=OFF \
13
+ -DBUILD_SHARED_LIBS=OFF \
14
+ -DCMAKE_C_FLAGS=-fPIC \
15
+ -DUSE_SSH=OFF \
16
+ -DCURL=OFF \
17
+ -DUSE_HTTPS=OFF \
18
+ -DUSE_BUNDLED_ZLIB=ON \
19
+ -DCMAKE_BUILD_TYPE=" RelWithDebInfo" \
20
+ -DCMAKE_INSTALL_PREFIX=../install \
21
+ .. &&
22
+
23
+ cmake --build .
24
+
25
+ popd
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
+ pushd ${PWD}
6
+
7
+ cd ${GOPATH} /src/github.com/libgit2/git2go/vendor/libgit2 &&
8
+ mkdir -p install/lib &&
9
+ mkdir -p build &&
10
+ cd build &&
11
+ cmake -DTHREADSAFE=ON \
12
+ -DBUILD_CLAR=OFF \
13
+ -DBUILD_SHARED_LIBS=OFF \
14
+ -DCMAKE_C_FLAGS=-fPIC \
15
+ -DUSE_SSH=OFF \
16
+ -DCURL=OFF \
17
+ -DUSE_HTTPS=OFF \
18
+ -DUSE_BUNDLED_ZLIB=ON \
19
+ -DCMAKE_BUILD_TYPE=" RelWithDebInfo" \
20
+ -DCMAKE_INSTALL_PREFIX=../install \
21
+ .. &&
22
+
23
+ cmake --build .
24
+
25
+ popd
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
+
2
3
set -ex
3
4
5
+ pushd ${PWD}
6
+
4
7
COMMIT_HASH=v27
5
8
PROJPATH=" $GOPATH /src/github.com/libgit2/git2go"
6
9
[ ! -f " $GOPATH /src/github.com/libgit2/git2go/.git/config" ] && git clone https://github.com/libgit2/git2go.git $PROJPATH
7
10
cd $PROJPATH
8
11
git checkout -qf $COMMIT_HASH
9
12
git submodule update --init
10
- # sed -i -- 's/ZLIB_FOUND/FALSE/g' $PROJPATH/vendor/libgit2/CMakeLists.txt
11
- # sed -i -- 's/OPENSSL_FOUND/FALSE/g' $PROJPATH/vendor/libgit2/CMakeLists.txt
12
- sed -i -- ' s/USE_SSH.*"Link with libssh to enable SSH support".*ON/USE_SSH "Link with libssh to enable SSH support" OFF/g' $PROJPATH /vendor/libgit2/CMakeLists.txt
13
+
14
+ popd
You can’t perform that action at this time.
0 commit comments