nhardman-test-package
Version:
45 lines (44 loc) • 1.23 kB
YAML
language: node_js
sudo: required
branches:
only:
- master
- develop
- "/^issue.*$/"
- /^greenkeeper/.*$/
node_js:
- '6'
os:
- linux
dist: trusty
osx_image: xcode9
before_install:
- if [[ $TRAVIS_NODE_VERSION == "8" ]]; then npm install -g npm@4; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rvm get head; fi
- git clone https://github.com/IBM-Swift/Package-Builder.git
- npm i -g makeshift
- wget https://github.com/github/hub/releases/download/v2.2.9/hub-linux-386-2.2.9.tgz
- tar -xvzf hub-linux-386-2.2.9.tgz
- export PATH=${PATH}:$PWD/hub-linux-386-2.2.9/bin/
script:
- osName="linux"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then osName="osx"; fi
- export projectFolder=`pwd`
- projectName="$(basename $projectFolder)"
- export SWIFT_SNAPSHOT=swift-4.0
- source ./Package-Builder/install-swift.sh
- #if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then npm run testsdkgen; fi
- #if [[ $TRAVIS_EVENT_TYPE != "cron" ]]; then npm run coverage && npm run report-coverage; fi
jobs:
include:
- stage: Review
node_js: '6'
script: "./review.sh"
if: type = push AND branch = develop
- stage: Releases
language: ruby
script: "./release.sh"
if: type = api AND branch = master
env:
global:
- CXX=g++-4.8