@@ -5,38 +5,39 @@ node_js:
5
5
sudo : false
6
6
7
7
before_install :
8
- - mkdir serverless-template
9
- - cd serverless-template
8
+ - cd test
9
+ - mkdir sample-template
10
+ - cd sample-template
10
11
- npm init --yes
12
+ - serverless create --template aws-nodejs
11
13
12
14
install :
13
15
- npm install --save-dev serverless-offline
14
16
-
npm install -g [email protected]
15
17
- npm install aws-sdk
16
18
- npm install --save dynamodb-doc-client-wrapper
17
- - npm install --save serverless-dynamodb-local
18
- - cd serverless-dynamodb-local
19
+ - cd ..
20
+ - cd ..
19
21
- npm link
20
- - cd node_modules/dynamodb-localhost
22
+ - cd test/sample-template/node_modules
21
23
- npm link serverless-dynamodb-local
22
24
- cd ..
25
+ - sed -i '18 a plugins:' serverless.yml
26
+ - sed -i '19 a - serverless-offline' serverless.yml
27
+ - sed -i '20 a - serverless-dynamodb-local' serverless.yml
23
28
- cd ..
24
29
- cd ..
25
- - serverless create --template aws-nodejs
26
30
- npm install --save-dev mocha
27
31
- npm install --save-dev should
28
32
- npm install --save expect
29
33
- npm install --save request
30
34
- npm install --save chai
31
35
- travis_retry npm install
32
- - ls
36
+ - cd test/sample-template
33
37
34
38
before_script :
35
- - sed -i '18 a plugins:' serverless.yml
36
- - sed -i '19 a - serverless-offline' serverless.yml
37
- - sed -i '20 a - serverless-dynamodb-local' serverless.yml
38
39
- sls dynamodb install
39
- - sls dynamodb start
40
+ - sls dynamodb start --migrate
40
41
41
42
script :
42
43
- npm test
0 commit comments