Skip to content

Commit

Permalink
🔧 : add ci-tu profile
Browse files Browse the repository at this point in the history
this profile is used on CI to speed-up unit tests execution
  • Loading branch information
juwit committed Jul 3, 2020
1 parent f109f5e commit d94d368
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# fetching master refs when building other branches helps sonar computing PRs
- git fetch origin +refs/heads/master:refs/remotes/origin/master
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- mvn org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report sonar:sonar
- mvn org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report sonar:sonar -DexcludedGroups=e2e -P ci-tu
- stage: test
name: "Visual Non Regression Tests"
if: env(PERCY_TOKEN) AND ( type = pull_request OR branch = master )
Expand Down
30 changes: 30 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,34 @@

</build>

<profiles>
<profile>
<!-- skiping npm install / build when running unit tests -->
<id>ci-tu</id>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<executions>
<execution>
<id>install node and npm</id>
<phase>none</phase>
</execution>
<execution>
<id>npm install</id>
<phase>none</phase>
</execution>
<execution>
<id>vue build</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit d94d368

Please sign in to comment.