forked from cloudify-cosmo/docs.getcloudify.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
33 lines (29 loc) · 1022 Bytes
/
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
machine:
node:
version: 0.10.40
checkout:
post:
- >
if [ -n "$CI_PULL_REQUEST" ]; then
PR_ID=${CI_PULL_REQUEST##*/}
git fetch origin +refs/pull/$PR_ID/merge:
git checkout -qf FETCH_HEAD
fi
dependencies:
pre:
- wget https://github.com/spf13/hugo/releases/download/v0.14/hugo_0.14_linux_amd64.tar.gz -O /tmp/hugo.tar.gz
- tar -xvf /tmp/hugo.tar.gz
- mv hugo_0.14_linux_amd64/hugo_0.14_linux_amd64 hugo_0.14_linux_amd64/hugo
- 'echo -e {\\n \"content\" :\\n {\\n \"root\" : \"$PWD\"\\n }\\n} > config.json'
- git clone https://github.com/cloudify-cosmo/docs.getcloudify.org-site.git
override:
- npm install -g bower
- npm install -g grunt-cli
- cd docs.getcloudify.org-site && bower install
- cd docs.getcloudify.org-site && npm install
test:
override:
- cd docs.getcloudify.org-site && grunt build:
environment:
PATH: $PATH:$PWD/hugo_0.14_linux_amd64
CONFIG_JSON: $PWD/config.json