forked from travisgroth/backport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
42 lines (40 loc) 路 1.02 KB
/
config.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
version: 2
jobs:
check:
docker:
- image: circleci/node:10
steps:
- checkout
- run: yarn install --frozen-lockfile
- run: yarn run build
- run: yarn run test --coverage
- run: yarn run tslint
- run: yarn run prettier --list-different
- store_test_results:
path: reports
- store_artifacts:
path: coverage/lcov-report
destination: coverage
deploy:
docker:
- image: circleci/node:10
steps:
- checkout
- run: yarn install --frozen-lockfile
- run: sudo yarn global add now --prefix /usr/local
- run: yarn build
- run: now --name backport --no-clipboard --token $NOW_TOKEN
- run: now --token $NOW_TOKEN alias $NOW_ALIAS
- run: now --token $NOW_TOKEN rm $NOW_ALIAS --safe --yes
workflows:
version: 2
check-or-deploy:
jobs:
- check:
filters:
branches:
ignore: master
- deploy:
filters:
branches:
only: master