-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
34 lines (34 loc) · 985 Bytes
/
.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
dist: bionic
language: ruby
rvm:
— 3.2.2
env:
matrix:
- API_ROOT=$API_ENDPOINT
global:
- CF_USER=$DEPLOY_USERNAME
- CF_ORG=$DEPLOY_ORG
- CF_PASS=$DEPLOY_PASSWORD
- CF_SPACE=$SPACE
services:
- postgresql
addons:
postgresql: '11'
install: bundle install --jobs=3 --retry=3
before_script:
- sudo apt-get -qq update
script:
- bundle exec rake db:setup
- bundle exec rake
before_deploy:
- echo "install cloudfoundry cli"
- wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
- echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
- sudo apt-get -qq update
- sudo apt-get install cf7-cli
deploy:
- provider: script
script: bash CF/deploy-app.sh -u $CF_USER -o $CF_ORG -p $CF_PASS -s $CF_SPACE
on:
all_branches: true
condition: $SPACE =~ ^(ppon-development|ppon-testing|ppon-pre-production|ppon-production)$