mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
Enable OSX/macOS build for travis
Closes GH-711 Closes GH-666
This commit is contained in:
18
.travis.yml
18
.travis.yml
@@ -1,7 +1,13 @@
|
||||
language: cpp
|
||||
compiler:
|
||||
- clang
|
||||
- gcc
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
compiler: gcc
|
||||
- os: linux
|
||||
compiler: clang
|
||||
- os: osx
|
||||
osx_image: xcode7
|
||||
compiler: clang
|
||||
sudo: false
|
||||
addons:
|
||||
apt:
|
||||
@@ -25,12 +31,16 @@ addons:
|
||||
- libcppunit-dev
|
||||
before_install:
|
||||
- $CC --version
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --force cppunit gettext openssl gnutls libgcrypt gmp nettle libssh2 c-ares sqlite3 ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force cppunit gettext openssl gnutls libgcrypt gmp nettle libssh2 c-ares sqlite3 ; fi
|
||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
|
||||
- $CC --version
|
||||
before_script:
|
||||
- autoreconf -i
|
||||
- automake
|
||||
- autoconf
|
||||
- ./configure
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure --without-openssl --without-gnutls --with-appletls --disable-nls ; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then ./configure ; fi
|
||||
script:
|
||||
- make check
|
||||
|
||||
Reference in New Issue
Block a user