Skip to content

Commit 6eeb9e7

Browse files
authored
Update .travis.yml
1 parent 41d8344 commit 6eeb9e7

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,39 @@ node_js:
55
sudo: false
66

77
before_install:
8-
- mkdir serverless-template
9-
- cd serverless-template
8+
- cd test
9+
- mkdir sample-template
10+
- cd sample-template
1011
- npm init --yes
12+
- serverless create --template aws-nodejs
1113

1214
install:
1315
- npm install --save-dev serverless-offline
1416
- npm install -g [email protected]
1517
- npm install aws-sdk
1618
- npm install --save dynamodb-doc-client-wrapper
17-
- npm install --save serverless-dynamodb-local
18-
- cd serverless-dynamodb-local
19+
- cd ..
20+
- cd ..
1921
- npm link
20-
- cd node_modules/dynamodb-localhost
22+
- cd test/sample-template/node_modules
2123
- npm link serverless-dynamodb-local
2224
- 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
2328
- cd ..
2429
- cd ..
25-
- serverless create --template aws-nodejs
2630
- npm install --save-dev mocha
2731
- npm install --save-dev should
2832
- npm install --save expect
2933
- npm install --save request
3034
- npm install --save chai
3135
- travis_retry npm install
32-
- ls
36+
- cd test/sample-template
3337

3438
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
3839
- sls dynamodb install
39-
- sls dynamodb start
40+
- sls dynamodb start --migrate
4041

4142
script:
4243
- npm test

0 commit comments

Comments
 (0)