forked from Kitura/Kitura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (29 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Travis CI build file for Kitura sample app.
# Kitura 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
notifications:
slack: ibmswift:RHkwcHYh4kkYVRVzm9nZk5TF
matrix:
include:
- os: linux
services: docker
sudo: required
- os: osx
osx_image: xcode7.2
sudo: required
before_install:
- echo "Operating system -> '$TRAVIS_OS_NAME'"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull ibmcom/kitura-ubuntu:latest ; fi
script:
- echo "About to build and test Kitura for branch '$TRAVIS_BRANCH'."
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run --rm -e KITURA_BRANCH=$TRAVIS_BRANCH ibmcom/kitura-ubuntu:latest ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./build_osx.sh ; fi
- echo "Build and tests completed. See above for status."