From d81bed005da1eb02bdf45d943fa802e4f826eb27 Mon Sep 17 00:00:00 2001 From: Aaron Liberatore Date: Sun, 24 Sep 2017 07:28:05 -0500 Subject: [PATCH] Adds Travis Support (#53) * adds travis file * adds travis file * Exclude gh-pages branch from travis --- .travis.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..64e3757 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +branches: + except: + - gh-pages +matrix: + include: + - os: linux + dist: trusty + sudo: required + - os: osx + osx_image: xcode9 + +before_install: + + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -y ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar xzvf swift-4.0-RELEASE-ubuntu14.04.tar.gz ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=swift-4.0-RELEASE-ubuntu14.04/usr/bin:$PATH ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -y install clang libicu-dev ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC=/usr/bin/clang; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=/usr/bin/clang ; fi + +script: + - swift build + - swift test