forked from taskworld/legendary-pancake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
39 lines (39 loc) · 964 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
33
34
35
36
37
38
39
machine:
pre:
- mkdir ~/.yarn-cache
node:
version:
'7'
general:
branches:
ignore:
- gh-pages
dependencies:
pre:
- curl -o- -L https://yarnpkg.com/install.sh | bash
cache_directories:
- ~/.yarn-cache
override:
- yarn
test:
override:
- npm link
- yarn link
- cd examples/homepage && yarn && yarn link legendary-pancake
- cd examples/homepage && npm run build
- cd examples/homepage && npm test
deployment:
master:
branch: master
commands:
- git config --global user.email "[email protected]"
- git config --global user.name "Rebase Cop on CircleCI"
- cd examples/homepage && npm run gh-pages
- sleep 5 && cd examples/homepage && npm run test:pagespeed
npm:
tag: /v.*/
owner: taskworld
commands:
- cd examples/homepage && npm run clean
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- npm publish