blob: d3cf40973c63f034b821021c8e7af7c326d9409e (
plain)
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
|
build:
test-and-lint:
image: quay.io/buildo/node5-npm3-chrome
environment:
- NPM_CONFIG_CACHE=/drone/.npm
- NPM_CONFIG_LOGLEVEL=warn
commands:
- npm i
- npm run lint
- npm test
update-examples:
image: quay.io/buildo/node5-npm3-chrome
commands:
- npm run build-examples
- git add examples/bundle.js
- if ! git diff-index --quiet HEAD -- examples/bundle.js; then
git config --global user.name "nemobot";
git config --global user.email "our-bots@buildo.io";
git commit -m "Update examples [skip CI]";
git push origin master;
fi
when:
branch: master
notify:
downstream:
repositories:
- buildo/react-components
token: $$NOTIFY_BRC_TOKEN
fork: true
when:
branch: master
cache:
mount:
- /drone/.npm
|