forked from CodeGenieApp/serverless-express
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 967 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
language: node_js
node_js:
- 6
- 8
# - node # runs tests against latest version of Node.js for future-proofing
before_install:
- echo 'Installing example dependencies...'
- npm run install-example-dependencies
- echo 'Example dependencies installed!'
# NOTE: forcing Travis to use `npm install` instead of `npm ci`
# which was removing our examples' node_modules
install:
- npm install
jobs:
include:
- stage: test
script:
- pwd
- npm test
- stage: lint
script:
- npm run lint
- stage: deploy
script: skip
node_js: 8 # semantic-release requires Node >= 8.3
# NOTE: Pull Request builds do not run deploy
deploy:
provider: script
on:
branch: master
skip_cleanup: true
script:
- npm run release
cache:
directories:
- node_modules
- examples/basic-starter/node_modules
notifications:
email:
on_failure: change