Skip to content

Commit

Permalink
Bump version, add updated travis config from tuxuser
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Mar 20, 2019
1 parent 0350519 commit 03f0974
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 40 deletions.
63 changes: 24 additions & 39 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,35 @@
language: csharp
mono: none
dotnet: 2.2.100
os: linux
dist: xenial

env:
global:
- PACKAGE_SUFFIX=$TRAVIS_BRANCH-$TRAVIS_OS_NAME

matrix:
include:
- os: linux
dist: xenial
env: PUBLISH_TARGET=linux-x64 BUILD_CONFIG=Release
- os: osx
osx_image: xcode9.2
env: PUBLISH_TARGET=osx.10.12-x64 BUILD_CONFIG=Release
- PUBLISH_TARGET=osx.10.12-x64
- PUBLISH_TARGET=linux-x64
- PUBLISH_TARGET=win-x64
- PUBLISH_TARGET=win-x86

script:
- dotnet --info
- dotnet restore
- dotnet test
- dotnet build -c $BUILD_CONFIG
# - dotnet publish -c $BUILD_CONFIG -r $PUBLISH_TARGET -o publish XVDTool
# - dotnet publish -c $BUILD_CONFIG -r $PUBLISH_TARGET -o publish XBFSTool
# - dotnet publish -c $BUILD_CONFIG -r $PUBLISH_TARGET -o publish DurangoKeyExtractor
- dotnet build -c Release

before_deploy:
- cd $TRAVIS_BUILD_DIR
- mkdir $PUBLISH_TARGET
- for proj in {XVDTool,XBFSTool,DurangoKeyExtractor}; do dotnet publish -c Release -r $PUBLISH_TARGET -o publish-$PUBLISH_TARGET $proj; done
- for proj in {XVDTool,XBFSTool,DurangoKeyExtractor}; do cp -R $proj/publish-$PUBLISH_TARGET/* $PUBLISH_TARGET/; done
- zip -r XVDTool-$PUBLISH_TARGET-$TRAVIS_BRANCH.zip $PUBLISH_TARGET/

# before_deploy:
# - cd XVDTool/publish
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then zip -r $TRAVIS_BUILD_DIR/XVDTool-$PACKAGE_SUFFIX.zip .; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar czvf $TRAVIS_BUILD_DIR/XVDTool-$PACKAGE_SUFFIX.tar.gz *; fi
# - cd ../..
# - cd XBFSTool/publish
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then zip -r $TRAVIS_BUILD_DIR/XBFSTool-$PACKAGE_SUFFIX.zip .; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar czvf $TRAVIS_BUILD_DIR/XBFSTool-$PACKAGE_SUFFIX.tar.gz *; fi
# - cd ../..
# - cd DurangoKeyExtractor/publish
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then zip -r $TRAVIS_BUILD_DIR/DurangoKeyExtractor-$PACKAGE_SUFFIX.zip .; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar czvf $TRAVIS_BUILD_DIR/DurangoKeyExtractor-$PACKAGE_SUFFIX.tar.gz *; fi
# - cd $TRAVIS_BUILD_DIR
#
#deploy:
# - provider: releases
# api_key:
# secure: <fill>
# file_glob: true
# file: "$TRAVIS_BUILD_DIR/*-$PACKAGE_SUFFIX.*"
# skip_cleanup: true
# on:
# tags: true
# branch: master
deploy:
- provider: releases
api_key:
secure: JPZMLDzKKF3w15jqG5wuTok3YBPqOoH8fEl50tL5oRUMM7t9Enog3zgp3UQ1o4q8PqMfCsV92o/bHUzVjGGSZ/FzgOtEIvPMmmd4X+ahG0MQ7ZpmZg9hB56FakeGUlWQTFs70ve+dc9m9j/J038k+UctLc/cIt8EiOIqPOkGMPPAdmJqu2jIYXDWuIB9lKFxwFCLXp4ixNJ+q+0TlrDOsXb1pbSctsr8x1I7wb0ctcQ20YyTZBLO0WDqE3DwhH/ePzRs4z7jX8MScZgPQisPA3Jl/hLJzw24LWHshXh7qWSrCfSBb+6MKmzxyKtSkNe36wv720JZQbL7m+DqyGb4BgBpkWsmb2OQydcU1Lc4K+nAkYQ3kihwqhfqxAKHTe6bSsHcodjb+DSKGcUNctdzL6KeRJStgM1J/TTI0CYrvYUjbRhj0BDHTNR6pGrPIeYzOZ3dPfEGZaRkAttMLcUTq2aImXx2vqFd/q4wL/6XHaD9TtiiKd+2FE7FSAhLfJA3Nx3Gg3GQrVTzNyLFn76pxVlSZf5G8xdGZh3tCyJyf7tQBGxIwT85XM4Sxg8+IC8r0pFWvpN2IOHBMKQxkTHnR+Ir1P+AgZOkIEdIJPtBLiyCCql6/m3khlsfUcLvnxc1TPuWBhts75Jocno9qbEeUQhBQr5f8fT9EUqtxzcFXS8=
file_glob: true
file: "XVDTool-$PUBLISH_TARGET-$TRAVIS_BRANCH.zip"
skip_cleanup: true
on:
tags: true
branch: master
2 changes: 1 addition & 1 deletion XVDTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void Main(string[] args)
return;
}

Console.WriteLine("xvdtool 0.4: XVD file manipulator");
Console.WriteLine("xvdtool 0.5: XVD file manipulator");

if (printHelp || (String.IsNullOrEmpty(fileList) && String.IsNullOrEmpty(folder) && !listKeys && extraArgs.Count <= 0))
{
Expand Down

0 comments on commit 03f0974

Please sign in to comment.