-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (38 loc) · 903 Bytes
/
.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
language: node_js
node_js:
- node
# - lts/*
# - 10
# - 9
# - 8
# - 7
os:
- linux
# - osx
# - windows
sudo: false
notifications:
email: false
cache:
npm: true
jobs:
include:
- stage: test
script:
- npm run test
after_success:
# submit coverage report
- npx nyc report --reporter=text-lcov | npx coveralls
- stage: release
script:
# restructure the package, then list the files that will be released
- rm index.js # remove files in project root
- rm -rf docs tasks test # remove directories
- mv src/* . # move code to the project root
- rm -rf src # remove previous code directory
- npm pack --dry-run # list the files
deploy:
skip_cleanup: true
provider: script
script:
- npx semantic-release