From 1858e3989562acae293a51562c4aeb163f468bfc Mon Sep 17 00:00:00 2001 From: yeastplume Date: Mon, 25 Feb 2019 10:10:20 +0000 Subject: [PATCH] test windows build --- .auto-release.sh | 16 ++++++++++++++-- .travis.yml | 22 ++++++++++++++-------- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/.auto-release.sh b/.auto-release.sh index c77f8c87..60737c46 100755 --- a/.auto-release.sh +++ b/.auto-release.sh @@ -16,7 +16,19 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then md5 "grin-wallet-$tagname-$TRAVIS_JOB_ID-osx.tgz" > "grin-wallet-$tagname-$TRAVIS_JOB_ID-osx.tgz"-md5sum.txt /bin/ls -ls *-md5sum.txt | awk '{print $6,$7,$8,$9,$10}' cd - > /dev/null; - echo "tarball generated\n" + echo "osx tarball generated\n" + + # Only generate changelog on Linux platform, to avoid duplication + exit 0 +elif [[ $TRAVIS_OS_NAME == 'windows' ]]; then + + # Custome requirements on windows + cd target/release ; rm -f *.zip; zip "grin-wallet-$tagname-$TRAVIS_JOB_ID-win-x64.zip" grin + /bin/ls -ls *.zip | awk '{print $6,$7,$8,$9,$10}' + md5 "grin-wallet-$tagname-$TRAVIS_JOB_ID-win-x64.zip" > "grin-wallet-$tagname-$TRAVIS_JOB_ID-win-x64.zip"-md5sum.txt + /bin/ls -ls *-md5sum.txt | awk '{print $6,$7,$8,$9,$10}' + cd - > /dev/null; + echo "win x64 tarball generated\n" # Only generate changelog on Linux platform, to avoid duplication exit 0 @@ -27,7 +39,7 @@ else md5sum "grin-wallet-$tagname-$TRAVIS_JOB_ID-linux-amd64.tgz" > "grin-wallet-$tagname-$TRAVIS_JOB_ID-linux-amd64.tgz"-md5sum.txt /bin/ls -ls *-md5sum.txt | awk '{print $6,$7,$8,$9,$10}' cd - > /dev/null; - echo "tarball generated\n" + echo "linux tarball generated\n" fi version="$tagname" diff --git a/.travis.yml b/.travis.yml index a0d395c3..b0c8d4c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,13 +40,15 @@ env: matrix: include: - - os: linux - env: TEST_SUITE=integration - - os: linux - env: TEST_SUITE=config-libwallet-apiwallet - - os: linux - env: TEST_SUITE=refwallet-. - - os: osx +# - os: linux +# env: TEST_SUITE=integration +# - os: linux +# env: TEST_SUITE=config-libwallet-apiwallet +# - os: linux +# env: TEST_SUITE=refwallet-. +# - os: osx +# env: TEST_SUITE=release + - os: windows env: TEST_SUITE=release script: @@ -72,10 +74,14 @@ before_deploy: brew update; cargo clean && cargo build --release && ./.auto-release.sh; fi + - if [[ "$TEST_SUITE" == "release" ]] && [[ "$TRAVIS_OS_NAME" == "windows" ]]; then + cargo clean && cargo build --release && ./.auto-release.sh; + fi deploy: provider: releases - api_key: $GITHUB_TOKEN + api_key: + secure: PCNX/DheeQWCGT1XLTbE7GKSd5y+NVZ6KSn+E6USzOX4Rc50Ihpr0jvf5NqQRUnglLG/ftl9bBsaD8URnOBdd4mbo5hNm1raV57PkFQX6rkXQ8oYXgTajUxNLoDWcUgsQDqUOOAJeakFXy2Olb66uTmnfvGtkwcAzGk2ZXvI8rUGCN+7v+dyvbR9N16etfn8aN/Rm8TMQyQkbMU9xENOu6CqBknCq+jhi4FOhB6k4Kcnwhu/Z+E278zgeIHQWfGStZKk+wk7DQU3qGGoYhTGQ2E1Ew8r1jnwdgAB0nvYuXWiSu8hXO0hFJWofDro/Wj7lFXGugRTJ7jANrTsZhopR9G2lyYQIGAJJ0+KRozRDDuxQxCNlHoG95NWleDXR9/FinhW1FqZai1hsW12vQWO1+SaDqzmBF9jCIYnx7RWLfoLqzpJUsPk0Fzl5gJexQKWvE4udfi657426qV/tgWXFjqpFrekVFyun1ie5vSTx33MNnGfvmhyqsXEsorpWWiouSkIlBkckyF97CjOG76XQJ11M5ICqH/vn7z90KUR/S/N60yYFEcueoMMzz617Ag+m4Irgl0ajaEeu4senUMIOfwq/S5mlRAY3FQA9mh4MbgO3g1EtuxDvCA4RiFnLakI1U0/peOYAdjQ+S7v3B86wUBMYTbpRgeLISa1CsaSm3Y= file_glob: true file: target/release/grin-wallet-*.tgz* skip_cleanup: true