/
circle.yml
32 lines (29 loc) · 920 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:
environment:
NODE_ENV: test
node:
version: 0.12.6
checkout:
post:
- git fetch
- git config --global user.email "buildbot@munchkins.github.io"
- git config --global user.name "buildbot"
- if [ "$CIRCLE_BRANCH" != "master" ]; then git merge --no-edit origin/development; fi
deployment:
deploy:
branch: development
commands:
- sed -i -e 's/\*\.html//' .gitignore
- sed -i -e 's/munchkins\.css//' .gitignore
- sed -i -e 's/munchkins\.js\.map//' .gitignore
- sed -i -e 's/munchkins\.js//' .gitignore
- git config branch.master.remote origin
- git config branch.master.merge refs/heads/master
- git add -A
- git commit --allow-empty -m "buildbot"
- git merge --no-edit -s ours -m "buildbot" origin/master
- git push --force origin HEAD:master
master:
branch: master
commands:
- npm run codeclimate