forked from uswds/uswds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
59 lines (56 loc) · 2.14 KB
/
circle.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
53
54
55
56
57
58
59
machine:
environment:
GOPATH: "${HOME}/.go_workspace"
node:
version: 5.1.0
dependencies:
pre:
- mkdir -p debs
- if [ ! -f debs/temp.deb ]; then wget -qO debs/temp.deb https://cli.run.pivotal.io/stable?release=debian64; fi
- sudo dpkg -i debs/temp.deb
- cf -v
- go get github.com/concourse/autopilot
- cf install-plugin $GOPATH/bin/autopilot -f
- bundle install
cache_directories:
- debs
test:
pre:
- gulp -v
- scss-lint -v
- jekyll -v
override:
- npm test # Run the package and docs test suite
- npm run build:package # Run the release process
- npm run build:website # Build Jekyll based docs website
post:
- ls -agolf dist/ # Ensure that build:package worked
- ls -agolf _site/ # Ensure that build:website worked
deployment:
new-designs:
branch: [add-new-designs]
commands:
- cf login -a https://api.cloud.gov -u gsa-wds_deployer -p $CF_GSA_WDS_PASS -o gsa-wds -s wds-staging
- cf push wds-microsite-new-design -n standards-staging-new-design -f config/cf/manifest-staging.yml -p _site
production:
branch: [master]
commands:
- cf login -a https://api.cloud.gov -u gsa-wds_deployer -p $CF_GSA_WDS_PASS -o gsa-wds -s wds-production
- cf zero-downtime-push wds-microsite -f manifest.yml -p _site
- cf map-route wds-microsite standards.usa.gov
staging:
branch: [staging]
commands:
- cf login -a https://api.cloud.gov -u gsa-wds_deployer -p $CF_GSA_WDS_PASS -o gsa-wds -s wds-staging
- cf zero-downtime-push wds-microsite -f config/cf/manifest-staging.yml -p _site
- cf map-route wds-microsite standards-staging.usa.gov
release:
branch: [release]
commands:
- cf login -a https://api.cloud.gov -u gsa-wds_deployer -p $CF_GSA_WDS_PASS -o gsa-wds -s wds-release
- cf zero-downtime-push wds-microsite -f config/cf/manifest-release.yml -p _site
user-testing:
branch: [user-testing]
commands:
- cf login -a https://api.cloud.gov -u gsa-wds_deployer -p $CF_GSA_WDS_PASS -o gsa-wds -s wds-user-testing
- cf zero-downtime-push wds-microsite -f config/cf/manifest-user-testing.yml -p _site