forked from aliyun/aliyun-openapi-net-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 996 Bytes
/
.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
language: csharp
sudo: true
mono: none
dotnet: 2.2
dist: xenial
branches:
only:
- master
install:
# Install Proxy
- sudo rm -rf ~/.nvm - curl -sL "https://deb.nodesource.com/setup_11.x" | sudo -E bash -
- sudo apt-get install -y nodejs
- sudo ln -s /usr/bin/nodejs /usr/bin/node
- sudo apt-get install -y npm
- sudo npm i -g n --force -g --registry=https://registry.npm.taobao.org
- sudo n latest
- sudo npm install o_o -g --registry=https://registry.npm.taobao.org
# Install dotnet codecov tool and restore
- dotnet tool install --global altcover.visualizer
- cd aliyun-net-sdk-core.Tests/ && dotnet add package AltCover && cd ../
- dotnet restore
script:
# Start Proxy
- sudo o_o &
# Dotnet test
- dotnet build
- if [ $ACCESS_KEY_ID == "" ]; then dotnet test --filter Category!=FeatureTest /p:AltCover=true; else dotnet test /p:AltCover=true; fi
after_success:
- cd aliyun-net-sdk-core.Tests/
- bash <(curl -s https://codecov.io/bash) -c -F unittest