mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 19:54:42 +00:00
travis: build on osx too
This commit is contained in:
parent
58532ed076
commit
7230330740
16
.travis.yml
16
.travis.yml
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
@ -17,17 +21,21 @@ env:
|
|||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
exclude:
|
||||||
|
- os: osx
|
||||||
|
compiler: gcc
|
||||||
include:
|
include:
|
||||||
- compiler: i586-mingw32msvc-gcc
|
- compiler: i586-mingw32msvc-gcc
|
||||||
env: OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON -DUSE_SSH=OFF"
|
env: OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON -DUSE_SSH=OFF"
|
||||||
|
os: linux
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
env: COVERITY=1
|
env: COVERITY=1
|
||||||
|
os: linux
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: COVERITY=1
|
- env: COVERITY=1
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get -qq update
|
- ./script/install-deps-${TRAVIS_OS_NAME}.sh
|
||||||
- sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server
|
|
||||||
|
|
||||||
# Run the Build script and tests
|
# Run the Build script and tests
|
||||||
script:
|
script:
|
||||||
@ -35,8 +43,8 @@ script:
|
|||||||
|
|
||||||
# Run Tests
|
# Run Tests
|
||||||
after_success:
|
after_success:
|
||||||
- sudo apt-get -qq install valgrind
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install valgrind; fi
|
||||||
- valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi
|
||||||
|
|
||||||
# Only watch the development branch
|
# Only watch the development branch
|
||||||
branches:
|
branches:
|
||||||
|
6
script/install-deps-linux.sh
Executable file
6
script/install-deps-linux.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
sudo apt-get -qq update &&
|
||||||
|
sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server
|
5
script/install-deps-osx.sh
Executable file
5
script/install-deps-osx.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
brew install libssh2 cmake
|
Loading…
Reference in New Issue
Block a user