Add Docker image and tests

This commit is contained in:
Philipp Muens 2017-09-20 09:36:06 +02:00
parent 12f8c16dde
commit 5a0aeb708b
3 changed files with 18 additions and 0 deletions

View File

@ -79,3 +79,7 @@ services:
image: python2.7
volumes:
- ./tmp/serverless-integration-test-spotinst-python:/app
webtasks-nodejs:
image: node:6.10.3
volumes:
- ./tmp/serverless-integration-test-webtasks-nodejs:/app

View File

@ -462,6 +462,19 @@ describe('Create', () => {
});
});
it('should generate scaffolding for "webtasks-nodejs" template', () => {
process.chdir(tmpDir);
create.options.template = 'webtasks-nodejs';
return create.create().then(() => {
const dirContent = fs.readdirSync(tmpDir);
expect(dirContent).to.include('package.json');
expect(dirContent).to.include('serverless.yml');
expect(dirContent).to.include('handler.js');
expect(dirContent).to.include('.gitignore');
});
});
it('should generate scaffolding for "plugin" template', () => {
process.chdir(tmpDir);
create.options.template = 'plugin';

View File

@ -24,3 +24,4 @@ integration-test aws-nodejs-ecma-script
integration-test google-nodejs
integration-test spotinst-nodejs
integration-test spotinst-python
integration-test webtasks-nodejs