]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
Let's build (and fail) OS X via Travis-CI.
authorBram Matthys <redacted>
Sun, 22 Apr 2018 16:58:41 +0000 (18:58 +0200)
committerBram Matthys <redacted>
Sun, 22 Apr 2018 16:58:41 +0000 (18:58 +0200)
.travis.yml
extras/build-tests/nix/select-config

index 6f3c6e915194bcc3178164ba2c17aa6b5af349ff..2f3a4dfc1c0b11e015797d322e65e5ec6fe885da 100644 (file)
@@ -1,4 +1,7 @@
 language: c
+os:
+- linux
+- osx
 compiler:
   - gcc
   - clang
index 859970c0939491629dd5ef4d7f29e3006e28dc20..1e5fd54d87461396d97c3b1a47bd1adb64a6c9dc 100755 (executable)
@@ -20,6 +20,8 @@ if [ "$OSTYPE" = "linux-gnu" ]; then
 elif [[ "$OSTYPE" == "freebsd"* ]]; then
        sudo pkg install -y libtool
        sudo pkg remove -y c-ares
+elif [[ "$OSTYPE" == "darwin"* ]]; then
+       brew update
 else
        echo "OS not correctly detected ($OSTYPE). Aborting."
        exit 1
@@ -37,6 +39,8 @@ do
                        sudo apt-get install libc-ares-dev -qq
                elif [[ "$OSTYPE" == "freebsd"* ]]; then
                        sudo pkg install -y c-ares
+               elif [[ "$OSTYPE" == "darwin"* ]]; then
+                       echo TODO: Do something useful here...
                fi
        elif [ "$1" = "system-curl" ]; then
                echo 'REMOTEINC=1' >>config.settings
@@ -46,12 +50,16 @@ do
                elif [[ "$OSTYPE" == "freebsd"* ]]; then
                        sudo pkg install -y curl
                        echo 'CURLDIR=/usr/local' >>config.settings
+               elif [[ "$OSTYPE" == "darwin"* ]]; then
+                       echo TODO: Do something useful here...
                fi
        elif [ "$1" = "local-curl" ]; then
                if [ "$OSTYPE" = "linux-gnu" ]; then
                        sudo apt-get remove libcurl4-openssl-dev libcurl3-gnutls libcurl3 -qq
                elif [[ "$OSTYPE" == "freebsd"* ]]; then
                        sudo pkg remove -y curl #NOTE: unfortunately this also removes 'git' :D
+               elif [[ "$OSTYPE" == "darwin"* ]]; then
+                       echo TODO: Do something useful here...
                fi
                echo 'REMOTEINC=1' >>config.settings
                echo "CURLDIR=`pwd`/extras/curl" >>config.settings