-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (44 loc) · 1.02 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
addons:
sonarcloud:
organization: '$SONAR_ORGANIZATION'
token:
secure: '$SONAR_TOKEN'
github_token:
secure: '$GITHUB_ACCESS_TOKEN'
branches:
- master
- /[build|chore|ci|docs|feat|fix|perf|refactor|revert|spike|style|test]\/.*/
jdk:
- oraclejdk8
language: node_js
node_js:
- 10
- 9
- 8
os:
- linux
- osx
notifications:
webhooks: https://app.fossa.io/hooks/travisci
git:
depth: 1
install: npm install
before_script:
- npm dedupe
script:
- npm run test:config
- npm test
after_script:
- npm run posttest:ci:coverage:codacy
- test $TRAVIS_PULL_REQUEST != false
&& sonar-scanner -Dproject.settings=./.github/config/sonar-project.properties -Dsonar.organization=$SONAR_ORGANIZATION -Dsonar.login=$SONAR_TOKEN -X
jobs:
include:
# Define the release stage that runs semantic-release
- stage: release
node_js: lts/*
deploy:
provider: script
skip_cleanup: true
script:
- npx travis-deploy-once "npx semantic-release"