forked from cloudify-cosmo/getcloudify.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
41 lines (38 loc) · 1.26 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
machine:
hosts:
getcloudify.org: 127.0.0.1
python:
version:
2.7.8
ruby:
version:
2.1.2
## Customize dependencies
dependencies:
override:
- sudo pip install awscli
- bundle install:
timeout: 3600
- "if [ $CIRCLE_BRANCH != \"master\" ] ; then echo \"baseurl: /$CIRCLE_BRANCH\" >> _config.yml; fi"
- jekyll build --verbose:
timeout: 3600
# - pip install LinkChecker
cache_directories:
- /home/ubuntu/.rvm/gems/ruby-2.1.2
test:
override:
- cd _site ; sudo -E python -mSimpleHTTPServer 80:
background: true
- sleep 3
# - linkchecker http://getcloudify.org/guide/ --anchors --no-status --ignore-url=guide/2.7 --ignore-url=^mailto
## Customize deployment commands
deployment:
production:
branch: master
commands:
- bundle exec s3_website push
stage:
branch: /^((?!master).)*$/
commands:
- AWS_ACCESS_KEY_ID=$STAGE_S3_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$STAGE_S3_SECRET_KEY aws s3 rm "s3://stage.getcloudify.org/$CIRCLE_BRANCH/" --recursive --region eu-west-1
- AWS_ACCESS_KEY_ID=$STAGE_S3_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$STAGE_S3_SECRET_KEY aws s3 cp _site/ "s3://stage.getcloudify.org/$CIRCLE_BRANCH/" --recursive --region eu-west-1 --acl public-read