Browse Source

Update Travis configuration.

Tim Burks 9 years ago
parent
commit
46dfdbd2d1
2 changed files with 35 additions and 24 deletions
  1. 15 0
      .travis-install.sh
  2. 20 24
      .travis.yml

+ 15 - 0
.travis-install.sh

@@ -0,0 +1,15 @@
+#!/bin/sh
+
+SWIFT_BRANCH=swift-3.0.2-release
+SWIFT_VERSION=swift-3.0.2-RELEASE
+SWIFT_PLATFORM=ubuntu14.04
+SWIFT_URL=https://swift.org/builds/$SWIFT_BRANCH/$(echo "$SWIFT_PLATFORM" | tr -d .)/$SWIFT_VERSION/$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz
+
+echo $SWIFT_URL
+pwd
+
+cd
+pwd
+mkdir -p swift
+curl -fSsL $SWIFT_URL -o swift.tar.gz 
+tar -xzf swift.tar.gz --strip-components=2 --directory=swift

+ 20 - 24
.travis.yml

@@ -1,30 +1,26 @@
 # Travis CI build file for Swift gRPC.
-# (Derived from https://github.com/IBM-Swift/Kitura/blob/master/.travis.yml)
-# Swift gRPC runs on OS X and Linux (Ubuntu).
-# See the following URLs for further details on Travis CI
-# https://docs.travis-ci.com/user/customizing-the-build/
-# https://docs.travis-ci.com/user/docker/
-# https://docs.travis-ci.com/user/multi-os/
 
-# whitelist (branches that should be built)
-branches:
-  only:
-    - master
-    - develop
-    - /^issue.*$/
+dist: trusty
+sudo: false
 
-matrix:
-  include:
-    - os: linux
-      dist: trusty
-      sudo: required
-    - os: osx
-      osx_image: xcode8.2
-      sudo: required
+addons:
+  apt:
+    packages:
+    - clang-3.8 
+    - lldb-3.8 
+    - libicu-dev 
+    - libtool 
+    - libcurl4-openssl-dev 
+    - libbsd-dev 
+    - build-essential 
+    - libssl-dev 
+    - uuid-dev
+    - unzip     
+    - curl
 
-before_install:
-  - git clone https://github.com/IBM-Swift/Package-Builder.git
+install: ./.travis-install.sh
 
-script:
-  - ./Package-Builder/build-package.sh -projectDir $TRAVIS_BUILD_DIR
+script: 
+  - export PATH=$HOME/swift/bin:$PATH
+  - export LD_LIBRARY_PATH=$HOME/swift/lib
   - make test