Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Travis Windows Migration #449

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 20 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@ dist: trusty
os:
- osx
- linux
- windows

env:
- NODE_ENV=dev
- NODE_ENV=dev
- NODE_ENV=prod
language: node_js
node_js:
- 8
cache:
yarn: true
directories:
- node_modules
- app/node_modules
- "$HOME/.electron"
- "$HOME/.cache"
- 8
global:
- YARN_GPG=no

addons:
# chrome: stable
Expand All @@ -30,12 +27,9 @@ addons:
- xorriso
- desktop-file-utils


before_install:

before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080;
fi
fi
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 5
Expand All @@ -54,15 +48,18 @@ script:
# separate tests for safe + auth as together throws error due to native libs
- export {no_proxy,NO_PROXY}="127.0.0.1,localhost"
- sleep 15

- yarn run package-only
# travis retry the full string to ensure repeat tests dont crash due to first try processess hanging around...
- if [[ "$NODE_ENV" != "prod" ]]; then travis_retry eval " pkill -f electron || pkill -f Peruse || yarn run test-exts-e2e-network";
- if [[ "$NODE_ENV" != "prod" && "$TRAVIS_OS_NAME" != "windows" ]]; then travis_retry eval " pkill -f electron || pkill -f Peruse || yarn run test-exts-e2e-network";
fi
- travis_retry eval " pkill -f electron || pkill -f SAFE Browser || yarn run test-e2e-prod"
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then travis_retry eval " pkill -f electron || pkill -f SAFE Browser || yarn run test-e2e-prod";
fi
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then travis_retry eval " pkill -f electron || pkill -f SAFE Browser || yarn run test-exts-e2e-prod";
fi
- sleep 5
- travis_retry eval " pkill -f electron || pkill -f SAFE Browser || yarn run test-exts-e2e-prod"

after_success:
- echo"testing this"
after_success:
- ls release
- export RELEASE="$(ls release)";
- echo "deploying ${RELEASE} to GitHub releases as tagged with ${TRAVIS_TAG}"
Expand All @@ -71,6 +68,8 @@ after_success:
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then zip -r -q ${RELEASE}.zip ${RELEASE};
fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then 7z a ${RELEASE}.zip ${RELEASE};
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then zip -d *.zip *.DS_Store && zip -d *.zip __MACOSX/\*;
fi
- cd ..
Expand All @@ -88,20 +87,20 @@ after_failure:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then system_profiler SPDisplaysDataType | grep Resolution
fi


before_deploy:

- export RELEASE_ZIP="$(ls release/*.zip)";
- echo "deploying ${RELEASE_ZIP} to GitHub releases as tagged with ${TRAVIS_TAG}"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum release/*.zip >> release/$RELEASE.txt; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shasum -a 256 release/*.zip >> release/$RELEASE.txt; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then certutil -hashfile release/*.zip SHA256 >> release/$RELEASE.txt; fi
- export SHA_256_SUM="$(ls release/*.txt)";


deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_ACCESS_TOKEN
api_key:
secure: koxiDMX+Hl5fNd5TliLzxKI0H0eIs0elJVs686cfFNiyqnOsBS6wimxC2YK62wk/eXaHZ7gvi1Bfy6GuRnP2fNeLTL3IZ9O9HOcUP2X/jQ12fn5wkewr6DjQx3xlN+/BGSq9IAROMq5ol0moKFBFsu4rX28ovIl2Ft6TIJio8SflM7zZFI4WJa8NNGRBkkr0Dz+MB7fuMWrI3w0paj7BeHoz5ETsmW122plpAgaMQvmpB5k+ZhpCQYE0BwEEdXPAjYLOd6MQl99b0A+bg5ZC4/aJHC6UnCMdtgnzIGSrsNOdLCR8tz6tGv4rlf2TnxH9hKTKqz1N2GmQ4MSBukQpikb6DLcQbbOhjVSPwdWWU8y/O840Y68styYdTddrXJXRnr8sBtykxje1SeB3NaTsaIlSeJu8BfTgZXjJwI46kb3kSQsKHVTDdKfn3MeXEOQpxlZ4EHYEX/ZGc3Wk/uBeGpBMqiN0svdXxZTRaxl43jiJquGsI/3Kp5Q5XPlDp/cVPpCZJjQgw8qeS3fn14axnk373IJF9biSEVdfmfml5UjGX0MwMCip0OgFWvoGlo9VqMnnLYG2ltOI85XdMnZV2DuDPSUw7ODanYhnJFTr4035+TjxpXruO7wg6cuH6YPEUJR+I7pPeSUEX40RNvYsSKW07ZTLBLCkYArTcgRSiQ8=
file:
- "${RELEASE_ZIP}"
- "${SHA_256_SUM}"
Expand Down