-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
38 lines (35 loc) · 1.35 KB
/
shippable.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
language: node_js
node_js:
- '12.8.0'
env:
global:
- secure: IvZX+RxijqQxbkwxMX07FzWFfRmFKM+N4s5UF0b2inM59cVVjKmQZdVUR6Qqea7j28ga70p8sEdLnDXuaHsv9zYC6LyJA30mEoXH8zmvtSNuEbIbGKQkgbHKz8hwnSPwQB0jG5p+MBy9Gg+DsRiqxKyfys4bEjK2G7mb1WSCBR9E4cpdX/WWmj3nEyaoa8iot41ln/U6IU0jF5XSv21B4upr/LWC6vsKtxHARi9/UxKoiq/PgUW1Ym/Uaom7HlTrkUXIG5ng6oyqiB0Z8Rg67q87udEAN3aev5N/orOF6/cGucubfXOSYSc/qHLFiN5cg5IdxrTb6DEOcibbZ2E5XQ==
- TEST_RESULTS_DIR="$SHIPPABLE_REPO_DIR/shippable/testresults"
- CODE_COVERAGE_DIR=${SHIPPABLE_REPO_DIR}/shippable/codecoverage
build:
ci:
- npm ci
- npm run lint
- npm run build
- mkdir -p "${TEST_RESULTS_DIR}"
- mkdir -p "${CODE_COVERAGE_DIR}"
- >
JEST_JUNIT_OUTPUT="${TEST_RESULTS_DIR}/tests.xml" npm run test:ci
-- --coverageDirectory "${CODE_COVERAGE_DIR}"
# Setting the TRAVIS_BUILD_DIR required due to these two issues.
# - https://github.com/codecov/codecov-node/issues/142
# - https://github.com/Shippable/support/issues/4906
- TRAVIS_BUILD_DIR="${SHIPPABLE_BUILD_DIR}" npm run ci:codecov
integrations:
notifications:
- integrationName: email
type: email
recipients:
- '--last_committer'
- '--last_author'
sendConsoleLogs: true
on_success: change
on_failure: always
on_cancel: never
on_start: never
on_pull_request: always