forked from fabric-design/components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
64 lines (58 loc) · 1.7 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
62
63
64
machine:
timezone:
Europe/Berlin
node:
version: 8.11.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 pull origin ${CIRCLE_BRANCH}
- git clone [email protected]:fabric-design/styleguide.git
- git config --global user.email [email protected]
- git config --global user.name "${CIRCLE_PROJECT_USERNAME}"
dependencies:
pre:
- sudo apt-get update; sudo apt-get install jq
override:
- npm install -g gulp-cli aurelia-cli
- npm install
- npm install && npm link ../:
pwd: styleguide
compile:
override:
- gulp build
- npm run package
test:
override:
- gulp lint
- gulp test
deployment:
release:
branch: [master, release]
commands:
- gulp generate-docs bump-version changelog
- git add package.json doc dist
- 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