Skip to content

Commit

Permalink
feat(CI): migrate from Appveyor to Travis for Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shriram2301 committed Dec 20, 2018
1 parent 252afa4 commit dcc8078
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 131 deletions.
40 changes: 20 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@ 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
addons:
# chrome: stable
apt:
Expand All @@ -30,12 +24,12 @@ addons:
- xorriso
- desktop-file-utils


before_install:
install:
- travis_retry yarn --network-timeout 600000

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,19 @@ 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:

- ls release
- export RELEASE="$(ls release)";
- echo "deploying ${RELEASE} to GitHub releases as tagged with ${TRAVIS_TAG}"
Expand All @@ -71,6 +69,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,24 +88,24 @@ 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}"
draft: true
tag_name: $TRAVIS_TAG
on:
tags: true
tags: true
111 changes: 0 additions & 111 deletions appveyor.yml

This file was deleted.

0 comments on commit dcc8078

Please sign in to comment.