forked from redis/ioredis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 1.1 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
language: node_js
node_js:
- "6"
- "8"
- "9"
- "10"
- "11"
- "12"
services:
- redis-server
script:
- npm run lint
- npm run build
- npm run test:cov || npm run test:cov || npm run test:cov
env:
- CC_TEST_REPORTER_ID="4cee2f60edbf31acac6ddff823f0b93e2e9882c3e5c55130049e0fd878549f84"
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
after_success:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
# Trigger a push build on master/release and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- release
- /^greenkeeper.*$/
deploy:
# runs semantic-release on each
- provider: script
script: npm ci && npx semantic-release
skip_cleanup: true
on:
tags: false
all_branches: true
node: "10"