-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
42 lines (34 loc) · 1.38 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: csharp
os: linux
dist: xenial
mono: latest
dotnet: 3.1.402 # to update this value in the future, try `dotnet --list-sdks` as a start
git:
depth: false
addons:
apt:
update: true
before_install: sudo apt-get -y install tree
install:
- dotnet restore
- tree -a .
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- dotnet build RomanizationNet.sln --configuration Release --no-restore
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov RomanizationTests/RomanizationTests.csproj
after_script:
- cat RomanizationTests/coverage.info
- ./cc-test-reporter format-coverage --input-type lcov --output RomanizationTests/codeclimate.json RomanizationTests/coverage.info
- cat RomanizationTests/codeclimate.json
- ./cc-test-reporter upload-coverage --input RomanizationTests/codeclimate.json
before_deploy: echo "Installing docfx..." && wget -q "https://github.com/dotnet/docfx/releases/download/v2.56.6/docfx.zip" && unzip -q -o -d ./docfx docfx.zip
deploy:
provider: script
cleanup: false
script: chmod +x ./Scripts/deploy.sh && bash ./Scripts/deploy.sh $NUGET_API_KEY $NUGET_SOURCE $GH_API_KEY $GH_PACKAGES_SOURCE
on:
branch: main
after_deploy: chmod +x ./Scripts/updateDocs.sh && bash ./Scripts/updateDocs.sh $GH_API_KEY