Skip to content

Commit

Permalink
CI: Install Hermes
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 4, 2019
1 parent 6a2aab6 commit 34bdc55
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
---
language: node_js
node_js:
- 10
- 11
# - 10
- 12
dist: trusty
sudo: false
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
env:
# Shells
- ESHOST_TARGET=chakra
# # Shells
# - ESHOST_TARGET=chakra
- ESHOST_TARGET=engine262
- ESHOST_TARGET=jsshell
- ESHOST_TARGET=node
# Browsers
- ESHOST_TARGET=firefox
- ESHOST_TARGET=chrome
# - ESHOST_TARGET=remote ESHOST_REMOTE_BROWSERNAME=firefox
- ESHOST_TARGET=hermes
# - ESHOST_TARGET=jsshell
# - ESHOST_TARGET=node
# # Browsers
# - ESHOST_TARGET=firefox
# - ESHOST_TARGET=chrome
# # - ESHOST_TARGET=remote ESHOST_REMOTE_BROWSERNAME=firefox
install: |
# Shells
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 +50,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 +68,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

0 comments on commit 34bdc55

Please sign in to comment.