Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cgull committed Oct 31, 2016
1 parent a01b6be commit a15de8a
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
osx_image: xcode7.1

# This does Travis CI builds on Linux and OS X, and on a tag build,
# also produces an OS X package.
os:
- linux
- osx
Expand All @@ -8,9 +8,16 @@ cache:
- apt

language: cpp

# Use the Ubuntu 14.04 build environment for Linux.
sudo: required
dist: trusty

# Currently we're using the Travis Xcode 7.1/OS X 10.10 image to
# get i386/x86_64 fat binaries.
osx_image: xcode7.1

# Linux dependencies
addons:
apt:
packages:
Expand All @@ -22,6 +29,12 @@ addons:
- tmux
- perl

# OS X dependencies. For tag builds, reinstall protobuf with
# --universal --bottle to get a fat library that will run on any
# machine. (This takes about 15 minutes on current Travis
# infrastructure.) Unfortunately, the Travis GitHub deployment module
# cannot do wildcards, so we must give the package a fixed name before
# uploading it.
before_install:
- if test osx = "${TRAVIS_OS_NAME}"; then brew update; fi
- if test osx = "${TRAVIS_OS_NAME}"; then brew reinstall protobuf; fi
Expand All @@ -33,6 +46,7 @@ before_install:
- git fetch --tags
- git tag

# 'make distcheck', and OS X package build on tag builds.
script:
- ./autogen.sh
- ./configure --enable-compile-warnings=error --enable-examples
Expand All @@ -42,10 +56,12 @@ script:
- make distcheck VERBOSE=1 V=1
- if test osx = "${TRAVIS_OS_NAME}" && test -n "${TRAVIS_TAG}"; then sh -c "cd macosx && env MACOSX_DEPLOYMENT_TARGET=10.10 ./build.sh && ln mosh-${TRAVIS_TAG}.pkg mosh.pkg && shasum -a 256 mosh.pkg"; fi

# Deploy the OS X package to a GitHub release.
deploy:
provider: releases
api_key:
secure: O+EmNHUQpqvrWNb1LYv5CXF9o35Mybi+Y48jr+nV3oJ+dLlwgmP71tDzARY0rEY18xT4DL9RBbl5Y74A4nZxvSMSih+VBUf+lgBhkAFkU5W1sRTaJdQVtJw6NcaeuDR/TvVMpJAPxLtHOZnmqplkQVDn4fpkweGaW0Suk7eSlibF3fd0dhoZ8sfDgWQpUW61C08ENBC9/ru01BqDcNuWA9EoS2aLRVCHKR5C02D2EFONlHTxu32X9qm5IcVrk+Zi5mmqyHk74A4a7QRJCDixKyt53LGXYpQh9flePmzSqZDKO5q3PSmWohoUzGLkKBcZit/mSd5aUeIzd7gk/YHNxGfZpGvLzjVDWpjdTXxALTcpVA64VFqLbb3P7N+zYQ7S9ZucwAz8XQ+wArqszQrLtU3vtz+AsO6dLRxAg0lLjNe084Gv0hFAn8u8HGNqBBZ177sTKoEmL3w0wdwSuxhk1aGIFnlKrzjFY57HvJlxSNupAeXqtU9/DNwLyzsnFc1qN4UKJ/hXdb5mtwug+DZy7E0RpJ/jJemfy7RjIAAZCowCLRFBxfRkY3HRaHeaF31mAogkc8FLXFjx2sR95t7GvK1AvJvHdmXs4OxjvgEVl9OI+mWQ9xMqcmjKwx5KuuAcBt8sLK7MJE6iRBwYBQ7eUQrJcYxRMN+w0vhznvLZwv8=
# Save build artifacts.
skip_cleanup: true
file: macosx/mosh.pkg
on:
Expand Down

0 comments on commit a15de8a

Please sign in to comment.