Skip to content

Commit

Permalink
scripts/travis: use travis repository checkout
Browse files Browse the repository at this point in the history
Otherwise pull request builds wouldn't actually build the pull request.
  • Loading branch information
thomastrapp committed Jul 23, 2019
1 parent 22acf4a commit 8ee3472
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ script: scripts/travis/build.sh
deploy:
provider: releases
file:
- "/home/travis/hext-emscripten/hext-emscripten.js"
- "/home/travis/hext-emscripten/hext-emscripten.html"
- "/home/travis/hext-emscripten/hext-emscripten.wasm"
- "hext-emscripten.js"
- "hext-emscripten.html"
- "hext-emscripten.wasm"
skip_cleanup: true
draft: true
overwrite: true
Expand Down
7 changes: 4 additions & 3 deletions scripts/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
set -x

REPOS_DIR=$(readlink -f .)

sudo apt-get update -yy
sudo apt-get install -yy \
wget git python2.7 python build-essential libxml2 \
Expand All @@ -18,9 +20,8 @@ git pull
source ./emsdk_env.sh

# setup hext-emscripten
cd ~
git clone https://github.com/html-extract/hext-emscripten.git
cd hext-emscripten
cd "$REPOS_DIR"
make
make test
readlink -f hext-emscripten.*

0 comments on commit 8ee3472

Please sign in to comment.