From: Vincent Bernat Date: Sun, 19 Nov 2017 19:42:26 +0000 (+0100) Subject: travis: upload OSX build to some S3 bucket X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature%2Fupload-osx-build;p=thirdparty%2Flldpd.git travis: upload OSX build to some S3 bucket Still a WIP. --- diff --git a/.travis.yml b/.travis.yml index 4676d08c..e85abc50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,3 +25,17 @@ matrix: - os: osx compiler: clang env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml" + - os: osx + compiler: clang + if: tag =~ ^[0-9] + env: + - LLDPD_UPLOAD=1 + - LLDPD_CONFIG_ARGS="--prefix=/usr/local --localstatedir=/var --sysconfdir=/private/etc --with-embedded-libevent --without-snmp --without-xml" +deploy: + - provider: s3 + skip_cleanup: true + local_dir: upload + bucket: lldpd-releases + acl: public_read + on: + condition: "$LLDPD_UPLOAD = 1" diff --git a/tests/ci/run.sh b/tests/ci/run.sh index 2d1d192d..987fcff7 100755 --- a/tests/ci/run.sh +++ b/tests/ci/run.sh @@ -4,16 +4,20 @@ set -e [ $CC != gcc ] || CC=gcc-5 LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --enable-pie" -LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --localstatedir=/var --sysconfdir=/etc --prefix=/usr" case "$(uname -s)" in Linux) + LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --localstatedir=/var --sysconfdir=/etc --prefix=/usr" LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --enable-sanitizers" LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS LDFLAGS=-fuse-ld=gold" ;; + Darwin) + LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS CFLAGS=-mmacosx-version-min=10.9" + LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS LDFLAGS=-mmacosx-version-min=10.9" + ;; esac ./autogen.sh -./configure $LLDPD_CONFIG_ARGS CFLAGS="-O1 -g" || { +./configure $LLDPD_CONFIG_ARGS || { cat config.log exit 1 } @@ -24,6 +28,9 @@ case "$(uname -s)" in Darwin) # Create a package make -C osx pkg + otool -l osx/lldpd*/usr/local/sbin/lldpd + mkdir upload + mv *.pkg upload ;; Linux) # Integration tests