Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Upload Zalenium videos & dashboard to http://zalenium.bitballoon.com/…
Browse files Browse the repository at this point in the history
  • Loading branch information
elgalu committed Nov 11, 2017
1 parent 91feb04 commit f791ff0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ tmposx/
NEXT_RELEASE.md
temp.md
git_shortlog.stdout
.bitballoon
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:

- env: test=Zalenium
script:
- gem install bitballoon
- travis_retry ./test/before_install_pull
- travis_retry ./test/script_scenario_zalenium

Expand Down
22 changes: 19 additions & 3 deletions test/script_scenario_zalenium
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,26 @@ export EXPECTED_VID_COUNT="6"
export VID_FOLDER="tmp_videos/zalenium-build"

# Wait up to 40 seconds for the videos to be there
if ! timeout --foreground 40s test/wait_videos_count; then
ls -la tmp_videos/zalenium-build/ || true
die "Waited a few seconds for '${EXPECTED_VID_COUNT}' '${VID_EXT}' videos to be at ${VID_FOLDER}"
if [ "$(uname)" = 'Darwin' ]; then
./test/wait_videos_count
else
if ! timeout --foreground 40s test/wait_videos_count; then
ls -la tmp_videos/zalenium-build/ || true
die "Waited a few seconds for '${EXPECTED_VID_COUNT}' '${VID_EXT}' videos to be at ${VID_FOLDER}"
fi
fi

# Cleanup
stop_zalenium

# Upload videos to
# http://zalenium.bitballoon.com/dashboard.html
if [ "${BITBALLOON_ACCESS_TOKEN}" != "" ] && [ "${BITBALLOON_SITE_ID}" != "" ]; then
# Only update the site upon releases
if [ "${TRAVIS_TAG}" != "" ]; then
echo "{\"access_token\":\"${BITBALLOON_ACCESS_TOKEN}\",\"site_id\":\"${BITBALLOON_SITE_ID}\"}" > .bitballoon
ls -la tmp_videos/ || die "We need tmp_videos to upload to bitballoon"
bitballoon deploy tmp_videos/
#=> Site deployed: http://zalenium.bitballoon.com
fi
fi

0 comments on commit f791ff0

Please sign in to comment.