From fe3d89f62856435b225e2b009258cdca70dbe773 Mon Sep 17 00:00:00 2001 From: wing328 Date: Thu, 19 May 2016 19:19:13 +0800 Subject: [PATCH] add CI for typescript fetch --- .../typescript-fetch/builds/default/pom.xml | 46 +++++++++++++++ .../builds/es6-target/pom.xml | 46 +++++++++++++++ .../builds/with-npm-version/pom.xml | 46 +++++++++++++++ .../tests/default/package.json | 1 + .../typescript-fetch/tests/default/pom.xml | 59 +++++++++++++++++++ 5 files changed, 198 insertions(+) create mode 100644 samples/client/petstore/typescript-fetch/builds/default/pom.xml create mode 100644 samples/client/petstore/typescript-fetch/builds/es6-target/pom.xml create mode 100644 samples/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml create mode 100644 samples/client/petstore/typescript-fetch/tests/default/pom.xml diff --git a/samples/client/petstore/typescript-fetch/builds/default/pom.xml b/samples/client/petstore/typescript-fetch/builds/default/pom.xml new file mode 100644 index 00000000000..e5f84ff0da7 --- /dev/null +++ b/samples/client/petstore/typescript-fetch/builds/default/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.wordnik + TypeScriptAngularBuildPestoreClientTests + pom + 1.0-SNAPSHOT + Typescript Angular Build Swagger Petstore Client + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + npm-install + integration-test + + exec + + + npm + + install + + + + + + + + diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/pom.xml b/samples/client/petstore/typescript-fetch/builds/es6-target/pom.xml new file mode 100644 index 00000000000..7cbe81bd18e --- /dev/null +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.wordnik + TypeScriptAngularBuildES6PestoreClientTests + pom + 1.0-SNAPSHOT + Typescript Angular Build ES6 Swagger Petstore Client + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + npm-install + integration-test + + exec + + + npm + + install + + + + + + + + diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml b/samples/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml new file mode 100644 index 00000000000..b5c8d742e79 --- /dev/null +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.wordnik + TypeScriptAngularBuildWithNPMVersionPestoreClientTests + pom + 1.0-SNAPSHOT + Typescript Angular Build With NPM Version Swagger Petstore Client + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + npm-install + integration-test + + exec + + + npm + + install + + + + + + + + diff --git a/samples/client/petstore/typescript-fetch/tests/default/package.json b/samples/client/petstore/typescript-fetch/tests/default/package.json index 7653b45f9a1..07a38691ae1 100644 --- a/samples/client/petstore/typescript-fetch/tests/default/package.json +++ b/samples/client/petstore/typescript-fetch/tests/default/package.json @@ -13,6 +13,7 @@ }, "scripts": { "prepublish": "./scripts/prepublish.sh", + "pretest": "npm install mocha", "test": "mocha" }, "name": "typescript-fetch-test", diff --git a/samples/client/petstore/typescript-fetch/tests/default/pom.xml b/samples/client/petstore/typescript-fetch/tests/default/pom.xml new file mode 100644 index 00000000000..8ed9f6fa0ff --- /dev/null +++ b/samples/client/petstore/typescript-fetch/tests/default/pom.xml @@ -0,0 +1,59 @@ + + 4.0.0 + com.wordnik + TypeScriptFetchPestoreClientTests + pom + 1.0-SNAPSHOT + Typescript Fetch default Swagger Petstore Client + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + npm-install + pre-integration-test + + exec + + + npm + + install + + + + + npm-test + integration-test + + exec + + + npm + + test + + + + + + + +