Skip to content

Commit c1bab3c

Browse files
authored
following up after switching to gh action (#367)
* disable az pipeline * disable ci coverage report * do test before push * remove push nuget from travis * fix coverage ignore
1 parent c8de0ca commit c1bab3c

File tree

4 files changed

+15
-134
lines changed

4 files changed

+15
-134
lines changed

.azure-pipelines.yaml

Lines changed: 0 additions & 121 deletions
This file was deleted.

.github/workflows/dotnet.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
dotnet-version: 2.2.108
1818
- run: dotnet build --configuration Release
1919
- name: test with dotnet
20-
run: dotnet test /p:CollectCoverage=true /p:Exclude="[KubernetesClient]k8s.Models.*" /p:Exclude="[KubernetesClient]k8s.Internal.*" /p:CollectCoverage=true /p:CoverletOutputFormat="cobertura"
21-
- uses: 5monkeys/cobertura-action@master
22-
with:
23-
path: tests/KubernetesClient.Tests/coverage.netcoreapp2.1.cobertura.xml
24-
repo_token: ${{ secrets.GITHUB_TOKEN }}
25-
minimum_coverage: 0
20+
run: dotnet test /p:CollectCoverage=true /p:ExcludeByFile=\"**/KubernetesClient/generated/**/*.cs\" /p:CoverletOutputFormat="cobertura"
21+
# - uses: 5monkeys/cobertura-action@master
22+
# with:
23+
# path: tests/KubernetesClient.Tests/coverage.netcoreapp2.1.cobertura.xml
24+
# repo_token: ${{ secrets.GITHUB_TOKEN }}
25+
# minimum_coverage: 0
2626

2727
on:
2828
pull_request:

.github/workflows/nuget.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
uses: actions/setup-dotnet@v1
1616
with:
1717
dotnet-version: 2.2.108
18+
- name: test with dotnet
19+
run: dotnet test
1820
- name: pack
1921
run: dotnet pack --configuration Release src/KubernetesClient -o pkg
2022
- name: push

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ script:
3636
after_script:
3737
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./integration-tests.sh; fi
3838

39-
deploy:
40-
skip_cleanup: true
41-
provider: script
42-
script: dotnet nuget push src/KubernetesClient/bin/Release/KubernetesClient.*.nupkg --api-key $NUGET_API_KEY --source $NUGET_SOURCE
43-
on:
44-
branch: master
45-
condition: '"x${NUGET_API_KEY}" != "x" && "x$NUGET_SOURCE" != "x" && "$TRAVIS_OS_NAME" == "linux"'
39+
# deploy:
40+
# skip_cleanup: true
41+
# provider: script
42+
# script: dotnet nuget push src/KubernetesClient/bin/Release/KubernetesClient.*.nupkg --api-key $NUGET_API_KEY --source $NUGET_SOURCE
43+
# on:
44+
# branch: master
45+
# condition: '"x${NUGET_API_KEY}" != "x" && "x$NUGET_SOURCE" != "x" && "$TRAVIS_OS_NAME" == "linux"'

0 commit comments

Comments
 (0)