This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
100 lines (100 loc) · 3 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
jobs:
include:
- language: java
jdk: openjdk8
if: branch = master
script:
- cd credential/java/
- mvn test -B
after_success:
- bash <(curl -s https://codecov.io/bash) -cF java
- language: go
go: 1.12.x
if: branch = master
install:
- export GO111MODULE=on
script:
- cd credential/golang
- go mod tidy
- go test -race -coverprofile=coverage.txt -covermode=atomic ./service/...
after_success:
- bash <(curl -s https://codecov.io/bash) -cF go
- language: go
go: 1.13.x
if: branch = master
install:
- export GO111MODULE=on
script:
- cd credential/golang
- go mod tidy
- go test -race -coverprofile=coverage.txt -covermode=atomic ./service/...
after_success:
- bash <(curl -s https://codecov.io/bash) -cF go
- language: go
go: 1.14.x
if: branch = master
install:
- export GO111MODULE=on
script:
- cd credential/golang
- go mod tidy
- go test -race -coverprofile=coverage.txt -covermode=atomic ./service/...
after_success:
- bash <(curl -s https://codecov.io/bash) -cF go
- language: go
go: 1.15.x
if: branch = master
install:
- export GO111MODULE=on
script:
- cd credential/golang
- go mod tidy
- go test -race -coverprofile=coverage.txt -covermode=atomic ./service/...
after_success:
- bash <(curl -s https://codecov.io/bash) -cF go
- language: csharp
mono: none
dist: xenial
branches:
only:
- master
before_install:
- wget https://download.visualstudio.microsoft.com/download/pr/42f39f2f-3f24-4340-8c57-0a3133620c21/0a353696275b00cbddc9f60069867cfc/dotnet-sdk-2.2.110-linux-x64.tar.gz
- mkdir -p ~/dotnet/ && tar zxf dotnet-sdk-2.2.110-linux-x64.tar.gz -C ~/dotnet/
- sudo ln -sf ~/dotnet/dotnet /usr/bin/dotnet
- dotnet --info
install:
- cd credential/csharp/tests
- dotnet tool install --global altcover.visualizer
- dotnet restore
- dotnet build
- cd ../
script:
- dotnet test tests/ /p:AltCover=true
after_success:
- bash <(curl -s https://codecov.io/bash) -cF credential-csharp
- language: node_js
node_js: 12
if: branch = master
script:
- cd credential/ts
- npm install
- npm run test-cov
after_success:
- bash <(curl -s https://codecov.io/bash) -cF node_js
- language: python
python:
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
if: branch = master
install:
- pip install alibabacloud-tea
- pip install coverage
script:
- cd credential/python
- coverage run --source="alibabacloud_ccp_credentials" -m pytest tests/test_*
after_success:
- bash <(curl -s https://codecov.io/bash) -cF python