Skip to content

Commit 11a36a8

Browse files
authored
turn off integration test by default (microsoft#40)
1 parent 62958c1 commit 11a36a8

File tree

5 files changed

+84
-64
lines changed

5 files changed

+84
-64
lines changed

.codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage:
2+
range: "60...80"
3+
precision: 2
4+
round: down

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ before_install:
2020
- sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
2121
- sudo pip install azure-cli
2222

23-
script: "mvn cobertura:cobertura"
23+
script:
24+
- "mvn verify -P it"
25+
- "mvn cobertura:cobertura"
2426

2527
after_success:
2628
# test coverage reporting

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ install:
1818
- cmd: copy "C:\Program Files (x86)\Apache\Maven\bin\mvn.cmd" "C:\Program Files (x86)\Apache\Maven\bin\mvn.bat"
1919

2020
build_script:
21-
- mvn clean install -B -V
21+
- mvn clean install -P it -B -V

azure-functions-maven-plugin/pom.xml

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,44 @@
8888
<azure.ai.ikey>d3278c59-22d7-4697-af8c-ff0077e3b4e9</azure.ai.ikey>
8989
</properties>
9090
</profile>
91+
<profile>
92+
<id>it</id>
93+
<build>
94+
<plugins>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-invoker-plugin</artifactId>
98+
<version>1.7</version>
99+
<configuration>
100+
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
101+
<streamLogs>true</streamLogs>
102+
<pomIncludes>
103+
<pomInclude>*/pom.xml</pomInclude>
104+
</pomIncludes>
105+
<preBuildHookScript>setup</preBuildHookScript>
106+
<postBuildHookScript>cleanup</postBuildHookScript>
107+
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
108+
<settingsFile>src/it/settings.xml</settingsFile>
109+
<invokerPropertiesFile>invoker.properties</invokerPropertiesFile>
110+
<goals>
111+
<goal>clean</goal>
112+
<goal>function:deploy</goal>
113+
</goals>
114+
</configuration>
115+
<executions>
116+
<execution>
117+
<id>integration-test</id>
118+
<goals>
119+
<goal>install</goal>
120+
<goal>integration-test</goal>
121+
<goal>verify</goal>
122+
</goals>
123+
</execution>
124+
</executions>
125+
</plugin>
126+
</plugins>
127+
</build>
128+
</profile>
91129
</profiles>
92130

93131
<!-- Use local repo to host private JAR before the official package is released -->
@@ -336,37 +374,6 @@
336374
</execution>
337375
</executions>
338376
</plugin>
339-
<plugin>
340-
<groupId>org.apache.maven.plugins</groupId>
341-
<artifactId>maven-invoker-plugin</artifactId>
342-
<version>1.7</version>
343-
<configuration>
344-
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
345-
<streamLogs>true</streamLogs>
346-
<pomIncludes>
347-
<pomInclude>*/pom.xml</pomInclude>
348-
</pomIncludes>
349-
<preBuildHookScript>setup</preBuildHookScript>
350-
<postBuildHookScript>cleanup</postBuildHookScript>
351-
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
352-
<settingsFile>src/it/settings.xml</settingsFile>
353-
<invokerPropertiesFile>invoker.properties</invokerPropertiesFile>
354-
<goals>
355-
<goal>clean</goal>
356-
<goal>function:deploy</goal>
357-
</goals>
358-
</configuration>
359-
<executions>
360-
<execution>
361-
<id>integration-test</id>
362-
<goals>
363-
<goal>install</goal>
364-
<goal>integration-test</goal>
365-
<goal>verify</goal>
366-
</goals>
367-
</execution>
368-
</executions>
369-
</plugin>
370377
<plugin>
371378
<groupId>org.apache.maven.plugins</groupId>
372379
<artifactId>maven-source-plugin</artifactId>

azure-webapp-maven-plugin/pom.xml

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,44 @@
8383
<azure.ai.ikey>d3278c59-22d7-4697-af8c-ff0077e3b4e9</azure.ai.ikey>
8484
</properties>
8585
</profile>
86+
<profile>
87+
<id>it</id>
88+
<build>
89+
<plugins>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-invoker-plugin</artifactId>
93+
<version>1.7</version>
94+
<configuration>
95+
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
96+
<streamLogs>true</streamLogs>
97+
<pomIncludes>
98+
<pomInclude>*/pom.xml</pomInclude>
99+
</pomIncludes>
100+
<preBuildHookScript>setup</preBuildHookScript>
101+
<postBuildHookScript>cleanup</postBuildHookScript>
102+
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
103+
<settingsFile>src/it/settings.xml</settingsFile>
104+
<invokerPropertiesFile>invoker.properties</invokerPropertiesFile>
105+
<goals>
106+
<goal>clean</goal>
107+
<goal>azure-webapp:deploy</goal>
108+
</goals>
109+
</configuration>
110+
<executions>
111+
<execution>
112+
<id>integration-test</id>
113+
<goals>
114+
<goal>install</goal>
115+
<goal>integration-test</goal>
116+
<goal>verify</goal>
117+
</goals>
118+
</execution>
119+
</executions>
120+
</plugin>
121+
</plugins>
122+
</build>
123+
</profile>
86124
</profiles>
87125

88126
<dependencies>
@@ -270,37 +308,6 @@
270308
</execution>
271309
</executions>
272310
</plugin>
273-
<plugin>
274-
<groupId>org.apache.maven.plugins</groupId>
275-
<artifactId>maven-invoker-plugin</artifactId>
276-
<version>1.7</version>
277-
<configuration>
278-
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
279-
<streamLogs>true</streamLogs>
280-
<pomIncludes>
281-
<pomInclude>*/pom.xml</pomInclude>
282-
</pomIncludes>
283-
<preBuildHookScript>setup</preBuildHookScript>
284-
<postBuildHookScript>cleanup</postBuildHookScript>
285-
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
286-
<settingsFile>src/it/settings.xml</settingsFile>
287-
<invokerPropertiesFile>invoker.properties</invokerPropertiesFile>
288-
<goals>
289-
<goal>clean</goal>
290-
<goal>azure-webapp:deploy</goal>
291-
</goals>
292-
</configuration>
293-
<executions>
294-
<execution>
295-
<id>integration-test</id>
296-
<goals>
297-
<goal>install</goal>
298-
<goal>integration-test</goal>
299-
<goal>verify</goal>
300-
</goals>
301-
</execution>
302-
</executions>
303-
</plugin>
304311
<plugin>
305312
<groupId>org.apache.maven.plugins</groupId>
306313
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)