Ver código fonte

Maybe fix e2e on ci for probably two weeks until it breaks again (#2672)

* test: companion.test is no more on github actions

* ci: use github actions fold syntax

* test: something for debugging?

Co-authored-by: Renée Kooi <renee@kooi.me>
Artur Paikin 4 anos atrás
pai
commit
76bd08fadf

+ 2 - 2
bin/endtoend-build-ci

@@ -19,7 +19,7 @@ if [ -z "${CI:-}" ]; then
   echo "Hit Ctrl+C to stop or Enter if you REALLY DO want to run the full thing."
   read
 else
-  echo travis_fold:start:endtoend_build_ci
+  echo ::group::endtoend_build_ci
 fi
 
 set -o xtrace
@@ -34,7 +34,7 @@ cleanup() {
   git checkout $CURRENT_COMMIT
 
   if [ -n "${CI:-}" ]; then
-    echo travis_fold:end:endtoend_build_ci
+    echo ::endgroup::
   fi
 }
 function on_exit() {

+ 5 - 0
test/endtoend/tus-drag-drop/index.html

@@ -6,6 +6,11 @@
     <title>Uppy test page</title>
   </head>
   <body>
+    <script>onerror = function (message, source, line, col, error) {
+      document.body.appendChild(document.createTextNode(message))
+      document.body.appendChild(document.createTextNode(source))
+      document.body.appendChild(document.createTextNode(line + ':' + col))
+    }</script>
     <style>
       main {
         max-width: 700px;

+ 1 - 2
test/endtoend/tus-drag-drop/main.js

@@ -5,8 +5,7 @@ const DragDrop = require('@uppy/drag-drop')
 const Tus = require('@uppy/tus')
 const ProgressBar = require('@uppy/progress-bar')
 
-const isOnTravis = !!(process.env.TRAVIS && process.env.CI)
-const endpoint = isOnTravis ? 'http://companion.test:1080' : 'http://localhost:1080'
+const endpoint = 'http://localhost:1080'
 
 // Initialise Uppy with Drag & Drop
 const uppyDragDrop = new Uppy({