Skip to content

Commit

Permalink
Use github action for scoverage (#1490)
Browse files Browse the repository at this point in the history
And disable codecov in semaphore.
  • Loading branch information
pm47 committed Jul 21, 2020
1 parent 92a094c commit aca7499
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
11 changes: 0 additions & 11 deletions .codecov.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ jobs:
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf

- name: Build with Maven
run: mvn clean test
run: mvn compile && mvn scoverage:report

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
directory: eclair-core
6 changes: 1 addition & 5 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ execution_time_limit:
blocks:
- name: Build & Test
task:
secrets:
# This needs to have the same name as the secret entry configured on semaphore dashboard.
- name: Codecov upload token
env_vars:
# Set maven to use a local directory. This is required for
# the cache util. It must be set in all blocks.
Expand All @@ -27,6 +24,5 @@ blocks:
- sem-version java 11
- checkout
- cache restore maven
- mvn scoverage:report
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
- mvn test
- cache store maven .m2
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<plugin>
<groupId>org.scoverage</groupId>
<artifactId>scoverage-maven-plugin</artifactId>
<version>1.4.0-RC1</version>
<version>1.4.1</version>
<configuration>
<skip>${maven.test.skip}</skip>
<scalaVersion>${scala.version}</scalaVersion>
Expand Down

0 comments on commit aca7499

Please sign in to comment.