This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
forked from DanKottke/midas
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
48 lines (48 loc) · 2.16 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
sudo: true
language: node_js
node_js:
- "4.2.2"
services:
- postgresql
addons:
postgresql: "9.4"
before_install:
- psql -c "CREATE DATABASE midas;" -U postgres
- psql -c "CREATE USER midas WITH PASSWORD 'midas';" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE midas to midas;" -U postgres
- psql -c "ALTER SCHEMA public OWNER TO midas;" -U postgres
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
before_deploy:
- curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx
- mkdir -p ./tmp/
- mv -v cf ./tmp/cf
- ./tmp/cf api $CF_API
- ./tmp/cf login -u $CF_USERNAME -p $CF_PASSWORD -o $CF_ORGANIZATION -s dev
- ./tmp/cf -v
- go get github.com/concourse/autopilot
- ./tmp/cf install-plugin $GOPATH/bin/autopilot -f
env:
global:
- GOPATH="${HOME}/.go_workspace"
- CF_APP=openopps
- CF_API=https://api.cloud.gov
- CF_USERNAME=deploy-open-opportunities
- CF_ORGANIZATION=open-opportunities
- B_DOMAIN=18f.gov
- secure: "jNZWNeSMl4pCb6jjzlDGZ2BIOXM0BFocCFpbI0y0HFuS2sPJkaGXwPbdDwxaeE+fUWIz6RmMjTqvGZ0DL5nBYXlw1pynIG7oBOPiRwyoz6TT0DcvL/P6WChZb+SLVB2U+Uheg0mnk4mt2wSw7Qp5kb5P/nuvcvFS7aKhIQH/jOXXOF8pow9e4n7aoOC3cVQBLKTy2C6sWWei9GI0cXJZYez8/vBuhJRmzId/XfnL+oAl3CFcKii//5Mbwc4lxOoNuzDJhz/9Lb5NFG9Xs2TuTaRU98oO/+zu0HAIjYo8rBLR5VQktI15Ro0nq0R6nswr0kODbPvIhy8xByohlIeyAi6irO9J0zouvDuJhL6/sNXMEUgpsFcsfQE2BwUbW7qoPxV0nBeo5510kxMTXinICrgl0p1ef8fPta3Klqo6WD7Uf35/lzVrf4s3glkbHkZ9bndWty/V/rgeD4y0hRKCRhNrpbIdw6eysDffK9mkjX2byCEX1wW5UoqHWY9i5Gg21eL+rLXVjwKrFBDduKDyPBjSSLRkijRPj0kho4ADXlofOSo96XVIKeErpzuRGiCfCWWd4l+7UBKVwozK1UZQub1mQ/aFWyC0c1+EcRgLvRhLRWZ6MTr1pgO7QFYtICHxxQUBr6UTYXfwH6JdbH0K0/3gemkO2zLb727wqOQhmGY="
deploy:
- provider: script
script: ./tmp/cf t -s prod && ./tmp/cf zero-downtime-push $CF_APP -f manifest-prod.yml
skip_cleanup: true
on:
branch: master
- provider: script
script: ./tmp/cf t -s staging && ./tmp/cf zero-downtime-push $CF_APP -f manifest-staging.yml
skip_cleanup: true
on:
branch: staging
- provider: script
script: ./tmp/cf t -s dev && ./tmp/cf zero-downtime-push $CF_APP -f manifest-dev.yml
skip_cleanup: true
on:
branch: dev