add ci test for typescript angular

This commit is contained in:
wing328 2016-05-19 19:05:14 +08:00
parent 1e80455d82
commit f7ed6f040d
4 changed files with 76 additions and 2 deletions

1
.gitignore vendored
View File

@ -118,6 +118,7 @@ samples/client/petstore/python/.venv/
# ts
samples/client/petstore/typescript-node/npm/node_modules
samples/client/petstore/typescript-node/**/typings
samples/client/petstore/typescript-angular/**/typings
samples/client/petstore/typescript-fetch/**/dist/
samples/client/petstore/typescript-fetch/**/typings

13
pom.xml
View File

@ -438,6 +438,18 @@
<module>samples/server/petstore/jaxrs</module>
</modules>
</profile>
<profile>
<id>typescript-angular-client</id>
<activation>
<property>
<name>env</name>
<value>java</value>
</property>
</activation>
<modules>
<module>samples/client/petstore/typescript-angular/npm</module>
</modules>
</profile>
<profile>
<id>typescript-node-npm-client</id>
<activation>
@ -483,6 +495,7 @@
</property>
</activation>
<modules>
<module>samples/client/petstore/typescript-angular</module>
<module>samples/client/petstore/typescript-node/npm</module>
<module>samples/client/petstore/android/volley</module>
<module>samples/client/petstore/clojure</module>

View File

@ -1,6 +1,7 @@
{
"name": "petstore-typescript-node-sample",
"version": "1.0.0",
"repository": "GIT_USER_ID/GIT_REPO_ID",
"description": "Sample of generated TypeScript petstore client",
"main": "api.js",
"scripts": {
@ -8,8 +9,8 @@
"test": "tsc --target ES6 && node client.js",
"clean": "rm -Rf node_modules/ typings/ *.js"
},
"author": "Mads M. Tandrup",
"license": "Apache 2.0",
"author": "Swagger Codegen Contributors & Mads M. Tandrup",
"license": "Apache-2.0",
"dependencies": {
"request": "^2.60.0",
"angular": "^1.4.3"

View File

@ -0,0 +1,59 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.wordnik</groupId>
<artifactId>TypeScriptAngularPestoreClientTests</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>Typescript Angular Swagger Petstore Client</name>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>npm-install</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-test</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>test</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>