forked from uswds/uswds-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
48 lines (45 loc) · 1.51 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
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:
- gulp build # Build site files
- bundle exec jekyll build # Build Jekyll website
- npm test # Run the package and test suite
post:
- ls -agolf _site/ # Ensure that build worked
deployment:
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