-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (47 loc) · 1.41 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
49
50
51
52
language: node_js
node_js:
- '9'
sudo: required
# Cache npm inbetween builds to improve build time
# Documentaion - https://docs.travis-ci.com/user/caching/
cache:
yarn: true
directories:
- node_modules # NPM packages
# registering to user postgresql database
services:
- postgresql
#creates the database
before_install:
- psql -c 'create database pwadb;' -U postgres --set AUTOCOMMIT=off
# Deploy
# Bluemix
deploy:
- provider: cloudfoundry
username: ${IBM_CLOUD_USER}
#########################
## Add BLUEMIX_PASSWORD environment variable to your Travis project's settings
## https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
#########################
password: ${IBM_CLOUD_PASSWORD}
organization: ${IBM_CLOUD_USER}
space: production
region: eu-gb
api: https://api.eu-gb.bluemix.net
skip_cleanup: true
on:
branch: master
- provider: cloudfoundry
username: ${IBM_CLOUD_USER}
#########################
## Add BLUEMIX_PASSWORD environment variable to your Travis project's settings
## https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
#########################
password: ${IBM_CLOUD_PASSWORD}
organization: ${IBM_CLOUD_USER}
space: staging
region: eu-gb
api: https://api.eu-gb.bluemix.net
skip_cleanup: true
on:
branch: staging