-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (61 loc) · 2.44 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
########################
### VARIABLES NEEDED ###
########################
# SOLUTION_NAME The name without file-ending
# DEPLOY_BUILD Which build you want to pack and push to nuget('Debug' or 'Release')
# MONOGAME Set it if you like to build a MonoGame project
# ('latest' or a specific version number of a release on their GitHub
# page like 'v3.7.1'), else unset it (or set it to 'false')
# NUGET Whether or not to deploy the result as a nuget-package (true if set)
# If you don't want to deploy, unset it (or set it to 'false')
#
### Deploy
# NUGET_API_KEY Your key from nuget.org
# NUGET_PROJECT_FILENAME The name without file-ending
# NUGET_PROJECT_PATH The path to your project (starting at git-repo-root; which is /)
#
# GITHUB_API_KEY Your key from your GitHub repository (to push the release-zip),
# if you want it to be published, else unset it (or set it to 'false')
# Has to be a personal API-key (Your GitHub-user-image -> Settings ->
# Developer settings -> Personal access tokens). Has to have the 'repo'
# permission (top level).
# BUILD_TARGET The directory your build is saved in (to get it zipped for a
# GitHub release)
#
####################
### GENERAL INFO ###
####################
# - git/depth: false is needed for minver
# - The 'deploy' step in Travis isn't the same process as the rest. So you have to re-source
# the functions into that process. More than that it isn't a full sh process like with the
# script-phase. So you cannot even source from there directly. That's why the source
# command is IN the deploy.sh script.
language: csharp
solution: $SOLUTION_NAME.sln
git:
depth: false
install:
- git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis
- source travis/functions.sh
- tr_setProjectSubdir .NET
- source $TRAVIS/install.sh
before_script:
- source $TRAVIS/before_script.sh
script:
- source $TRAVIS/script.sh
before_deploy:
- zip -r $DEPLOY_BUILD.$VERSION.zip $BUILD_TARGET/*
deploy:
- provider: script
skip_cleanup: true
script: ./$TRAVIS/deploy.sh
on:
branch: master
- provider: releases
skip_cleanup: true
overwrite: true
api_key: $GITHUB_API_KEY
file: $DEPLOY_BUILD.$VERSION.zip
on:
tags: true
branch: master