1+ # #######################
2+ # ## VARIABLES NEEDED ###
3+ # #######################
4+ # SOLUTION_NAME The name without file-ending
5+ # DEPLOY_BUILD Which build you want to pack and push to nuget('Debug' or 'Release')
6+ # MONOGAME Set it if you like to build a MonoGame project
7+ # ('latest' or a specific version number of a release on their GitHub
8+ # page like 'v3.7.1'), else unset it (or set it to 'false')
9+ # NUGET Whether or not to deploy the result as a nuget-package (true if set)
10+ # If you don't want to deploy, unset it (or set it to 'false')
11+ #
12+ # ## Deploy
13+ # NUGET_API_KEY Your key from nuget.org
14+ # NUGET_PROJECT_FILENAME The name without file-ending
15+ # NUGET_PROJECT_PATH The path to your project (starting at git-repo-root; which is /)
16+ #
17+ # GITHUB_API_KEY Your key from your GitHub repository (to push the release-zip).
18+ # Has to be a personal API-key (Your GitHub-user-image -> Settings ->
19+ # Developer settings -> Personal access tokens). Has to have the 'repo'
20+ # permission (top level).
21+ # BUILD_TARGET The directory your build is saved in (to get it zipped for a
22+ # GitHub release)
23+ # TEST_NUNIT_FILE Set to path and filename of artifact containing the tests if you want
24+ # to run NUNIT tests. Unset or set to 'false' to not run tests
25+ # TEST_XUNIT_FILE Set to path and filename of artifact containing the tests if you want
26+ # to run XUNIT tests. Unset or set to 'false' to not run tests
27+ #
28+ # ###################
29+ # ## GENERAL INFO ###
30+ # ###################
31+ # - git/depth: false is needed for minver
32+ # - The 'deploy' step in Travis isn't the same process as the rest. So you have to re-source
33+ # the functions into that process. More than that it isn't a full sh process like with the
34+ # script-phase. So you cannot even source from there directly. That's why the source
35+ # command is IN the deploy.sh script.
36+
37+ language : csharp
38+ solution : $SOLUTION_NAME.sln
39+ mono : none
40+ dotnet : latest
41+ git :
42+ depth : false
43+ install :
44+ - git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis
45+ - source travis/functions.sh
46+ - tr_setProjectSubdir .NET
47+ - source $TRAVIS/install.sh
48+ before_script :
49+ - source $TRAVIS/before_script.sh
50+ script :
51+ - source $TRAVIS/script.sh
52+
53+ before_deploy : ./$TRAVIS/before_deploy.sh
54+ deploy :
55+ - provider : script
56+ skip_cleanup : true
57+ script : ./$TRAVIS/deploy.sh
58+ on :
59+ branch : master
60+ - provider : releases
61+ skip_cleanup : true
62+ overwrite : true
63+ api_key :
64+ secure : $GITHUB_API_KEY
65+ file : $DEPLOY_BUILD.$VERSION.zip
66+ on :
67+ tags : true
68+ branch : master
0 commit comments