forked from UpHabit/bull_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (51 loc) · 1.09 KB
/
.travis.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
language: node_js
sudo: required
node_js:
- 10
env:
global:
- KUBECTL_VERSION=v1.11.0
branches:
only:
- master
- develop
- /^release\/.+/
- /^ci\/.+/
services:
- redis-server
- docker
before_script:
- yarn install --pure-lockfile
- yarn run build
cache:
directories:
- node_modules
- $HOME/.local
script:
- shellcheck -x $(git ls-files | grep '[.]sh$')
- ./node_modules/.bin/madge -c .
- yarn run test
- yarn run lint
before_deploy:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin:$HOME/bin
- >
yarn global add
semantic-release
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
@semantic-release/github
@semantic-release/npm
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
- provider: script
skip_cleanup: true
'on':
branch: master
script: npx semantic-release
- provider: script
skip_cleanup: true
'on':
branch: ci/semantic-release
script: npx semantic-release --branch ci/semantic-release --dry-run