diff --git a/.gitignore b/.gitignore index f1e3d20..cb156e2 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..15be5ce --- /dev/null +++ b/.travis.yml @@ -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 "builds@travis-ci.com"; git config --global user.name "Travis CI"; git tag $version -a -m "TravisCI Autogenerated Release"; git push --quiet https://$GH_REPO_TOKEN@github.com/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" \ No newline at end of file diff --git a/build.txt b/build.txt index d83b813..8c87955 100644 --- a/build.txt +++ b/build.txt @@ -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 \ No newline at end of file +languageVersion = 6 +hideCode = false +hideResources = false +includeSource = true \ No newline at end of file diff --git a/modrelease/v0.1.1/BouncyCoins.tmod b/modrelease/v0.1.1/BouncyCoins.tmod deleted file mode 100644 index 4d75d32..0000000 Binary files a/modrelease/v0.1.1/BouncyCoins.tmod and /dev/null differ diff --git a/modrelease/v0.1.1/BouncyCoins.zip b/modrelease/v0.1.1/BouncyCoins.zip deleted file mode 100644 index 8b94960..0000000 Binary files a/modrelease/v0.1.1/BouncyCoins.zip and /dev/null differ diff --git a/modrelease/v0.1.2/BouncyCoins.tmod b/modrelease/v0.1.2/BouncyCoins.tmod deleted file mode 100644 index 57a2819..0000000 Binary files a/modrelease/v0.1.2/BouncyCoins.tmod and /dev/null differ diff --git a/modrelease/v0.1.2/BouncyCoins.zip b/modrelease/v0.1.2/BouncyCoins.zip deleted file mode 100644 index 1012477..0000000 Binary files a/modrelease/v0.1.2/BouncyCoins.zip and /dev/null differ diff --git a/modrelease/v0.1/BouncyCoins.tmod b/modrelease/v0.1/BouncyCoins.tmod deleted file mode 100644 index 4ac12b0..0000000 Binary files a/modrelease/v0.1/BouncyCoins.tmod and /dev/null differ diff --git a/modrelease/v0.1/BouncyCoins.v0.1.zip b/modrelease/v0.1/BouncyCoins.v0.1.zip deleted file mode 100644 index 441963e..0000000 Binary files a/modrelease/v0.1/BouncyCoins.v0.1.zip and /dev/null differ