|
12 | 12 |
|
13 | 13 | env: |
14 | 14 | CI: "true" |
15 | | - #CI_NAME: github |
16 | | - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |
17 | 15 |
|
18 | 16 | jobs: |
19 | 17 | build: |
|
28 | 26 | with: |
29 | 27 | java-version: 1.8 |
30 | 28 |
|
31 | | - #- name: Set url |
32 | | - # run: echo ::set-env name=CI_BUILD_URL::$(echo ${GITHUB_REPOSITORY}) |
33 | | - |
34 | | - #- name: Set branch |
35 | | - # run: echo ::set-env name=CI_BRANCH::$(echo ${GITHUB_REF}) |
36 | | - #- name: Set build number |
37 | | - # run: echo ::set-env name=CI_BUILD_NUMBER::$(echo ${GITHUB_SHA}) |
38 | | - #- name: Set pr number |
39 | | - # run: echo ::set-env name=CI_PULL_REQUEST::$(echo ${GITHUB_REF//[^0-9]/}) |
40 | | - # if: startsWith(github.ref, 'refs/pull/') |
41 | | - |
42 | | - - name: CodeClimate |
43 | | - run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter |
44 | | - - name: CodeClimate2 |
45 | | - run: chmod +x ./cc-test-reporter |
46 | | - - name: before |
47 | | - run: ./cc-test-reporter before-build |
48 | | - |
49 | 29 | - name: Build with Gradle |
50 | | - env: |
51 | | - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
52 | | - #CI_BRANCH: ${{ github.ref }} |
53 | | - #CI_PULL_REQUEST: ${{ github.pull_request.number }} |
54 | 30 | run: ./gradlew assemble check --stacktrace |
55 | 31 |
|
56 | | - - name: after |
57 | | - run: JACOCO_SOURCE_PATH=./fixture/src/main/kotlin ./cc-test-reporter format-coverage ./fixture/build/reports/jacoco/test/jacocoTestReport.xml --input-type jacoco |
58 | | - #run: ./cc-test-reporter after-build --coverage-input-type=jacoco |
59 | | - - name: after2 |
60 | | - run: ./cc-test-reporter upload-coverage |
61 | | - |
62 | 32 | - name: Set tag version |
63 | 33 | run: echo ::set-env name=CIRCLE_TAG::$(echo ${GITHUB_REF:10}) |
64 | 34 | if: startsWith(github.ref, 'refs/tags/') |
|
74 | 44 | |
75 | 45 | with: |
76 | 46 | token: ${{secrets.CODECOV_TOKEN}} |
77 | | - |
78 | | - |
79 | | - #- name: Coveralls |
80 | | - # uses: coverallsapp/[email protected] |
81 | | - # with: |
82 | | - # github-token: ${{ secrets.github_token }} |
83 | | - # path-to-lcov: ./fixture/build/reports/jacoco/test/jacocoTestReport.xml |
84 | | - |
0 commit comments