Skip to content

Commit 3ce3169

Browse files
committed
Move coverage to actions
1 parent 8ec32f1 commit 3ce3169

2 files changed

Lines changed: 23 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,34 @@ on: [push]
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
java: [1.8, 11]
1013
steps:
1114
- name: Checkout sources
1215
uses: actions/checkout@v2
1316

14-
- name: Set up JDK 1.8
17+
- name: Set up JDK
1518
uses: actions/setup-java@v1
1619
with:
17-
java-version: 1.8
20+
java-version: ${{ matrix.java }}
1821

19-
- name: Build with Maven
22+
- name: Build
2023
run: mvn -B package
24+
25+
coverage:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout sources
29+
uses: actions/checkout@v2
30+
31+
- name: Set up JDK
32+
uses: actions/setup-java@v1
33+
with:
34+
java-version: 1.8
35+
36+
- name: Build with coverage
37+
run: mvn -B -Pcoverage clean test jacoco:report-aggregate
38+
39+
- name: Publish coverage
40+
uses: codecov/codecov-action@v1

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,3 @@ matrix:
2222
script:
2323
- 'if [ $TEST = java ]; then mvn test -Dsurefire.useFile=false; fi'
2424
- 'if [ $TEST = android ]; then mvn install -DskipTests && cd commonmark-android-test && travis_retry ./.travis.sh; fi'
25-
26-
after_success: |
27-
if [ $TRAVIS_JDK_VERSION = oraclejdk8 ] && [ $TEST = java ]; then
28-
# Calculate test coverage
29-
mvn clean test jacoco:report-aggregate -Pcoverage
30-
bash <(curl -s https://codecov.io/bash)
31-
fi

0 commit comments

Comments
 (0)