Skip to content

Commit 2d5fcac

Browse files
author
rtschu
committed
added upload of screenshot on step failure
1 parent 7557476 commit 2d5fcac

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,15 @@ jobs:
6666
- php -S localhost:8000 >/dev/null 2>&1 &
6767
- cd ..
6868
- sleep 10 # Wait for behat to start
69+
- touch errorbackend.html
6970
- php moodle/admin/tool/behat/cli/run.php --tags="@block_evasys_sync"
7071

72+
deploy:
73+
provider: releases
74+
api_key: $GITHUB_TOKEN
75+
file: "errorbackend.html"
76+
skip_cleanup: true
77+
7178
# Default 'test' stage: Unit tests and behat tests against full matrix.
7279
script:
7380
- moodle-plugin-ci phpunit --coverage-clover

tests/behat/behat_block_evasys_sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class behat_block_evasys_sync extends behat_base {
4747
private $generator;
4848
public static $coursedata = array();
4949
public static $evalsfkeyassoc = array();
50-
public const ERRORSAVEPATH = "/var/www/public/moodle/errorbackend.html";
50+
public const ERRORSAVEPATH = __DIR__ . "/../../../../../errorbackend.html";
5151

5252
/**
5353
* Store Page content on failure

0 commit comments

Comments
 (0)