forked from cloudfoundry-community/swift-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
48 lines (42 loc) · 1.89 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: ruby
dist: trusty
sudo: required
rvm:
- "2.4"
gemfile:
- cf.Gemfile
before_install:
# Install Cloud Foundry command line
- set -e
- gem install bundler
- bundle install
- bundle exec rake
- curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
- ibmcloud login -a https://$BLUEMIX_ENDPOINT --apikey $BLUEMIX_APIKEY -s applications-ci -o $BLUEMIX_USER -r $BLUEMIX_REGION
# Clone test repos
- git clone https://github.com/IBM-Cloud/Kitura-Starter
- git clone -b bluemix-estado https://github.com/IBM-Cloud/swift-helloworld.git
- git clone https://$GHE_USER:$GHE_TOKEN@github.ibm.com/IBM-Swift/credentials-buildpack-test.git
script:
- ./ci/execute_script.sh
before_deploy:
- export RELEASE_PKG_FILE=$(ls *.zip)
- echo "Deploying $RELEASE_PKG_FILE under GitHub releases..."
- export VERSION=$(cat VERSION)
- echo "Removing previous release assets..."
- ./ci/remove_previous_assets.sh $VERSION
deploy:
provider: releases
api_key:
secure: fXDpIpSWo9Q2bldTgk39pophOFcF1sSverLlMls3aApXeqSF1GzW0Uyj4ZmlpzSmV9+7wfOtveKsNhgvfway87nAMA7o3a+0LkoVqm5jralFtbJ+LiflP8qtA85b9UtPr0gJ89wp9fRQPnbkOCevJW8njI8xz1JRLfqLyOj+DA+HJziaG3BN4rDHDcWSV8oZuQcK63NH1GB63hzGlzEtPPgPQpVEv4869xbX7iBSJFIbrMVvJ08I25BEknefGroU//qmSbCZ2AcFL9jJiqgbvIuoUbEQcdzPdp+0cv3C65oLVJcqUDAOfFMsNTZiou5OtNpaErWHoqvtf8r0HHHLfsaWZtJ6IFz2XQ3g+0k52JOLhtANk591pHZiH5xlN6o671W1ajexmHCC7ibJC+Qo4oRCyqJDdHz+SW7TujInVtAVTEVu7inQ8YCnCzACuy5Oms50/5PVkJ+wF/2aQ+9xR6SfF5KDlPzRO7Sqc5Z4alYVx4pFJz28qoP6xP+s1PlipgjkLXQUnbHGvSjoPbGRwELn2RVTbxeIu1IWD33u8H9SskU2kdtKvc47MFLoTIKhfUBjfjrdCqA6Jw8xR/uZAGDwNhoS4Gi7gZ/tdWCjL3HWw0DLzazIqcUomN9doSYyh71FweZt6hUYvy+tOz+6X/DenWrrmbVNdZoM4c88rrU=
file_glob: true
file: "${RELEASE_PKG_FILE}"
prerelease: true
skip_cleanup: true
overwrite: true
tag_name: $VERSION
name: $VERSION
target_commitish: $TRAVIS_BRANCH
on:
repo: IBM-Swift/swift-buildpack
branch: deploy-release