forked from vlamitin/helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (89 loc) · 2.26 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
jobs:
include:
- stage: Build
language: csharp
dist: xenial
mono: none
dotnet: 5.0
install:
- dotnet clean
- dotnet restore
- dotnet build
script:
- dotnet test --logger "trx;LogFileName=report.trx" --collect:"XPlat Code Coverage"
after_script:
- bash <(curl -s https://codecov.io/bash)
- stage: Tag
language: minimal
dist: xenial
mono: none
dotnet: 5.0
env:
- VERSION=1.0.0.$TRAVIS_BUILD_NUMBER
before_deploy:
- git config --local user.name $GIT_USERNAME
- git config --local user.email $GIT_EMAIL
- git tag $VERSION
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
- stage: Release
language: csharp
dist: xenial
mono: none
dotnet: 5.0
env:
- VERSION=1.0.0.$TRAVIS_BUILD_NUMBER
- PACKAGE_FILENAME_WITHOUT_EXTENSION=nanny_$VERSION
- PACKAGE_FILENAME=$PACKAGE_FILENAME_WITHOUT_EXTENSION.deb
script:
- make release-deb
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: $PACKAGE_FILENAME
skip_cleanup: true
- stage: Release
language: csharp
dist: xenial
mono: none
dotnet: 5.0
env:
- VERSION=1.0.0.$TRAVIS_BUILD_NUMBER
- PACKAGE_FILENAME=nanny_$VERSION.tar.gz
script:
- make release-brew
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: $PACKAGE_FILENAME
skip_cleanup: true
- stage: Publish
language: minimal
dist: xenial
env:
- VERSION=1.0.0.$TRAVIS_BUILD_NUMBER
script:
- make publish-brew
deploy:
provider: pages
token: $GITHUB_OAUTH_TOKEN
committer_from_gh: true
skip_cleanup: true
keep_history: true
local_dir: Packaging/dist/brew
repo: kolenkainc/homebrew-nanny
target_branch: master
stages:
- name: Build
- name: Tag
if: branch = master AND type != pull_request
- name: Release
if: branch = master AND type != pull_request
- name: Publish
if: branch = master AND type != pull_request
branches:
only:
- /.*/
notifications:
email: false