-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcircle.yml
More file actions
54 lines (50 loc) · 1.31 KB
/
circle.yml
File metadata and controls
54 lines (50 loc) · 1.31 KB
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
general:
branches:
ignore:
- gh-pages
machine:
environment:
PATH: $PATH:~/bin
DISABLE_NOTIFIER: true
PAGES_BRANCH: gh-pages
GULP_DESTINATION: $CIRCLE_ARTIFACTS
BUNDLE_PATH: ~/.bundle
post:
- mkdir -p ~/bin
node:
version: "v6.1.0"
ruby:
version: "ruby-2.2.5"
dependencies:
override:
- bash ./ci-install-hugo.sh
- npm install -g gulp
- npm install
- gem install bundler
- cd api && bundle install
- git config user.name "barricade-machine"
- git config user.email "engineering@barricade.io"
cache_directories:
- ~/bin
test:
override:
- hugo -v
- hugo -t barricade -d $CIRCLE_ARTIFACTS
- cd api && bundle exec middleman build --clean --build_dir $CIRCLE_ARTIFACTS/api
- gulp
- ls -ltr $CIRCLE_ARTIFACTS
- cat $CIRCLE_ARTIFACTS/src/index.json
- cp CNAME $CIRCLE_ARTIFACTS/
- cp humans.txt $CIRCLE_ARTIFACTS/
- cp circle.yml $CIRCLE_ARTIFACTS/
deployment:
master:
branch: master
commands:
- git reset --hard HEAD
- git checkout -f $PAGES_BRANCH
- find . -not -path "./.git*" -delete
- cp -r $CIRCLE_ARTIFACTS/* .
- git add -A
- git commit --allow-empty -am "Build $CIRCLE_BUILD_NUM of $CIRCLE_SHA1 for $CIRCLE_USERNAME on `date`"
- git push -f origin $PAGES_BRANCH