From c75fba471e4ec931cb29c36303dd1dd23233df31 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 23 Feb 2017 14:58:50 +0000 Subject: [PATCH] We want to automatically upload failure screenshots --- .travis.yml | 1 + travis/upload-failure-screenshots.sh | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 travis/upload-failure-screenshots.sh diff --git a/.travis.yml b/.travis.yml index e1c5c653..a28ec4c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,3 +58,4 @@ script: - phpdbg -qrr vendor/bin/phpunit --coverage-text - php artisan dusk - php artisan security:check + - travis/upload-failure-screenshots.sh diff --git a/travis/upload-failure-screenshots.sh b/travis/upload-failure-screenshots.sh new file mode 100755 index 00000000..9e833ac8 --- /dev/null +++ b/travis/upload-failure-screenshots.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +for f in tests/Browser/screenshots/*.png +do + curl -F 'upload=@$f' -F 'format=txt' http://uploads.im/api +done