test windows build

This commit is contained in:
yeastplume 2019-02-25 10:10:20 +00:00
parent b6b3318b0d
commit 1858e39895
No known key found for this signature in database
GPG key ID: AE6E005DF6E76B95
2 changed files with 28 additions and 10 deletions

View file

@ -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 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}' /bin/ls -ls *-md5sum.txt | awk '{print $6,$7,$8,$9,$10}'
cd - > /dev/null; 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 # Only generate changelog on Linux platform, to avoid duplication
exit 0 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 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}' /bin/ls -ls *-md5sum.txt | awk '{print $6,$7,$8,$9,$10}'
cd - > /dev/null; cd - > /dev/null;
echo "tarball generated\n" echo "linux tarball generated\n"
fi fi
version="$tagname" version="$tagname"

View file

@ -40,13 +40,15 @@ env:
matrix: matrix:
include: include:
- os: linux # - os: linux
env: TEST_SUITE=integration # env: TEST_SUITE=integration
- os: linux # - os: linux
env: TEST_SUITE=config-libwallet-apiwallet # env: TEST_SUITE=config-libwallet-apiwallet
- os: linux # - os: linux
env: TEST_SUITE=refwallet-. # env: TEST_SUITE=refwallet-.
- os: osx # - os: osx
# env: TEST_SUITE=release
- os: windows
env: TEST_SUITE=release env: TEST_SUITE=release
script: script:
@ -72,10 +74,14 @@ before_deploy:
brew update; brew update;
cargo clean && cargo build --release && ./.auto-release.sh; cargo clean && cargo build --release && ./.auto-release.sh;
fi fi
- if [[ "$TEST_SUITE" == "release" ]] && [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
cargo clean && cargo build --release && ./.auto-release.sh;
fi
deploy: deploy:
provider: releases 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_glob: true
file: target/release/grin-wallet-*.tgz* file: target/release/grin-wallet-*.tgz*
skip_cleanup: true skip_cleanup: true