Skip to content

Commit

Permalink
Travis auto rehost
Browse files Browse the repository at this point in the history
  • Loading branch information
Jofairden committed Feb 22, 2017
1 parent 3aebbd4 commit 4af525e
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

token.txt
# User-specific files
*.suo
*.user
Expand Down
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: generic

notifications:
email: false

branches:
only:
- master

# Environment variables
env:
global:
- MODNAME: BouncyCoins
- Deploy: no

script:
- pwd
- ls
- git tag
- cd $TRAVIS_BUILD_DIR
- ls
- export version=`curl http://javid.ddns.net/tModLoader/tools/latestmodversionsimple.php?modname=$MODNAME`
- echo "Mod Browser version is $version"
- export gitVersion=`git describe --abbrev=0 --tags`
- echo "git version is $gitVersion"
- if [[ "$version" = "$gitVersion" ]]; then echo "Version does match, no need to push release"; Deploy=no; else echo "Version does not match, need to push release"; git config --global user.email "[email protected]"; git config --global user.name "Travis CI"; git tag $version -a -m "TravisCI Autogenerated Release"; git push --quiet https://[email protected]/Jofairden/BouncyCoins $version > /dev/null 2>&1; Deploy=yes; fi
- echo $Deploy

before_deploy:
- wget -O $MODNAME.tmod http://javid.ddns.net/tModLoader/download.php?Down=mods/$MODNAME.tmod
- ls

# should only deploy if the script doesn't fail, meaning we have a new .tmod file to publish
deploy:
provider: releases
api_key: $GH_REPO_TOKEN
file: "$MODNAME.tmod"
skip_cleanup: true
on:
tags: false
condition: "$Deploy = yes"
7 changes: 5 additions & 2 deletions build.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
author = Jofairden
version = 0.2
displayName = Bouncy Coins
buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*, *.sln, *.psd, \*.psd, *\*.psd, resources\*, modrelease\*, *.git, *.gitignore, *.git*
buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*, *.sln, *.psd, \*.psd, *\*.psd, resources\*, modrelease\*, *.git, *.gitignore, *.git*, .travis.yml
includePDB = true
homepage = http://forums.terraria.org/index.php?threads/.50249/
languageVersion = 6
languageVersion = 6
hideCode = false
hideResources = false
includeSource = true
Binary file removed modrelease/v0.1.1/BouncyCoins.tmod
Binary file not shown.
Binary file removed modrelease/v0.1.1/BouncyCoins.zip
Binary file not shown.
Binary file removed modrelease/v0.1.2/BouncyCoins.tmod
Binary file not shown.
Binary file removed modrelease/v0.1.2/BouncyCoins.zip
Binary file not shown.
Binary file removed modrelease/v0.1/BouncyCoins.tmod
Binary file not shown.
Binary file removed modrelease/v0.1/BouncyCoins.v0.1.zip
Binary file not shown.

0 comments on commit 4af525e

Please sign in to comment.