Skip to content

Commit

Permalink
CI: Install Hermes (disabled until process stall is fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 4, 2019
1 parent 6a2aab6 commit 7394535
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
language: node_js
node_js:
- 10
- 11
- 12
dist: trusty
sudo: false
before_install:
Expand All @@ -12,6 +11,7 @@ env:
# Shells
- ESHOST_TARGET=chakra
- ESHOST_TARGET=engine262
# - ESHOST_TARGET=hermes
- ESHOST_TARGET=jsshell
- ESHOST_TARGET=node
# Browsers
Expand All @@ -23,6 +23,7 @@ install: |
export ESHOST_SKIP_CH=1
export ESHOST_SKIP_D8=1
export ESHOST_SKIP_ENGINE262=1
export ESHOST_SKIP_HERMES=1
export ESHOST_SKIP_JSC=1
export ESHOST_SKIP_JSSHELL=1
export ESHOST_SKIP_NODE=1
Expand All @@ -48,6 +49,15 @@ install: |
cd $TRAVIS_BUILD_DIR;
}
function install_hermes {
export TMP=$(mktemp);
wget https://github.com/facebook/hermes/releases/download/v0.2.1/hermes-cli-linux-v0.2.1.tar.gz -O $TMP;
tar -xvf $TMP;
rm $TMP;
unset TMP;
export PATH=$PATH:$(pwd)/hermes;
}
if [[ "$ESHOST_TARGET" == "node" ]]; then
unset ESHOST_SKIP_NODE;
elif [[ "$ESHOST_TARGET" == "engine262" ]]; then
Expand All @@ -57,6 +67,10 @@ install: |
install_firefox;
export PATH=$(pwd)/firefox:$PATH;
unset ESHOST_SKIP_FIREFOX;
elif [[ "$ESHOST_TARGET" == "hermes" ]]; then
install_hermes;
export PATH=$PATH:$(pwd)/hermes;
unset ESHOST_SKIP_HERMES;
elif [[ "$ESHOST_TARGET" == "jsshell" ]]; then
export TMP=$(mktemp);
wget https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/jsshell-linux-x86_64.zip -O $TMP;
Expand Down
4 changes: 0 additions & 4 deletions lib/supported-hosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@ const supportedHostsMap = Object.assign({
// safari: 'safari',
}, hostAgents);


const supportedHosts = Object.keys(supportedHostsMap);

// console.log(supportedHostsMap);
// console.log(supportedHosts);

module.exports = {
supportedHostsMap,
supportedHosts,
Expand Down
6 changes: 4 additions & 2 deletions test/runify.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ const webdriverServer = 'http://localhost:4444/wd/hub';

const hosts = [
['ch', { hostPath: 'ch' }],
['hermes', { hostPath: 'hermes' }],
// Disabled until we can determine the cause of the process stall
// ['hermes', { hostPath: 'hermes' }],
['d8', { hostPath: 'd8' }],
['engine262', { hostPath: 'engine262' }],
// Disabled until engine262 stdout bug is fixed.
// ['engine262', { hostPath: 'engine262' }],
['jsshell', { hostPath: 'js' }],
['jsc', { hostPath: 'jsc' }],
['node', { hostPath: 'node' }],
Expand Down

0 comments on commit 7394535

Please sign in to comment.