forked from fabric-design/scss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
61 lines (55 loc) · 1.61 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
49
50
51
52
53
54
55
56
57
58
59
60
61
machine:
timezone:
Europe/Berlin
node:
version: 7.8.0
environment:
TARGET: $(test "${CIRCLE_BRANCH}" == "master" && echo "" || echo ${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH})
general:
artifacts:
- "styleguide/index.html"
- "styleguide/scripts"
- "styleguide/src/style/assets"
branches:
ignore:
- gh-pages
checkout:
post:
- git clone [email protected]:fabric-design/styleguide.git
- git config --global user.email circleci@circleci
- git config --global user.name "${CIRCLE_PROJECT_USERNAME}"
dependencies:
override:
- npm install -g gulp-cli aurelia-cli
- npm install
- npm install && npm link ../:
pwd: styleguide
compile:
override:
- gulp sass
test:
override:
- gulp lint-sass
- gulp build:dist
deployment:
release:
branch: master
commands:
- gulp bump-version changelog
- gulp build:dist
- git add package.json doc build CHANGELOG.md
- git commit -m "Bumped version to $(jq -r .version package.json) [skip ci]"
- git tag -f -a $(jq -r .version package.json) -m "Automatic release via CircleCI"
- git push origin $CIRCLE_BRANCH
- gulp release --branch="${CIRCLE_BRANCH}"
- au build:
pwd: styleguide
- au publish --commit ${CIRCLE_SHA1} --repo "${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH}" --target "${TARGET}":
pwd: styleguide
styleguide:
branch: /.*/
commands:
- au build:
pwd: styleguide
- au publish --commit ${CIRCLE_SHA1} --repo "${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BRANCH}" --target "${TARGET}":
pwd: styleguide