-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1002 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
---
language: node_js
node_js: "8.10"
cache: npm
# only run on hotfix/release/master/develop and feature/* branches
# to stick to the git flow process
# and allow a github pages site in case it gets added
branches:
only:
- master
- develop
- hotfix/.*
- release/.*
- feature/.*
- gh-pages
stages:
- unit tests
- build
- name: test deploy
if: branch = master
script:
- npm install -g serverless
jobs:
include:
- stage: unit tests
name: "Unit Tests"
script: npm run test:unittest
- name: "Test Schemas Hints"
script: npm run test:schemahints
- name: "Test Schemas"
script: npm run test:schemas
- name: "Serverless Tests"
script: npm run test:serverless
- name: "Code coverage check"
script: npm run coverage
- stage: test deploy
script:
- sls deploy --stage testing
- sls invoke -f fibonacci -s testing -d "$(cat slstest/fibonacci.event.json)"
- sls remove --stage testing