Browse Source

Add Travis build and test configuration.

Tim Burks 9 years ago
parent
commit
b7dcb9e04c
3 changed files with 33 additions and 0 deletions
  1. 1 0
      .swift-version
  2. 30 0
      .travis.yml
  3. 2 0
      README.md

+ 1 - 0
.swift-version

@@ -0,0 +1 @@
+3.0.2

+ 30 - 0
.travis.yml

@@ -0,0 +1,30 @@
+# 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.*$/
+
+matrix:
+  include:
+    - os: linux
+      dist: trusty
+      sudo: required
+    - os: osx
+      osx_image: xcode8.2
+      sudo: required
+
+before_install:
+  - git clone https://github.com/IBM-Swift/Package-Builder.git
+
+script:
+  - ./Package-Builder/build-package.sh -projectDir $TRAVIS_BUILD_DIR
+  - make test

+ 2 - 0
README.md

@@ -1,3 +1,5 @@
+[![Build Status](https://travis-ci.org/grpc/grpc-swift.svg?branch=master)](https://travis-ci.org/grpc/grpc-swift)
+
 # Swift gRPC 
 
 This repository contains an experimental Swift gRPC API