Skip to content

Commit

Permalink
TE: Add script for screenshot display
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Mar 27, 2018
1 parent 84046ff commit c974eca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -67,3 +67,4 @@ after_failure:
- sudo cat /var/log/php-fpm.log
- sudo ls -l /var/log/apache2
- sudo cat /var/log/apache2/other_vhosts_access.log
- bash ./travis-scripts/base64-screenshots # As we cannot upload file, we display the base64 encoded content of the screenshots
9 changes: 9 additions & 0 deletions travis-scripts/base64-screenshots
@@ -0,0 +1,9 @@
#!/bin/bash

FILES=$TRAVIS_BUILD_DIR/tests/Selenium/errorShots/*
for f in $FILES
do
echo "--- Displaying content of $f ...\n"

echo "data:image/png;base64,$(base64 -w 0 $f)"
done

0 comments on commit c974eca

Please sign in to comment.