Headless test script

This commit is contained in:
Sarah Jamie Lewis 2023-01-31 16:18:52 -08:00
parent 30c10c51c4
commit 420adaaa0a
2 changed files with 7 additions and 4 deletions

View File

@ -69,14 +69,11 @@ steps:
# - flutter config --enable-linux-desktop
- sudo apt update
- sudo apt-get install --fix-missing -y xvfb
- export DISPLAY=:99
- sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- ./fetch-tor.sh
- export PATH=$PATH:$PWD/linux/Tor
- export LD_LIBRARY_PATH="$PWD/linux/Tor/"
- tor --version
- ./run-tests.sh 01_general
- cat report.json
- ./run-tests-headless.sh
- name: test-build-android
image: cirrusci/flutter:3.3.8

6
run-tests-headless.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
flutter --version
flutter pub get
export DISPLAY=:99
Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
./run-tests.sh 01_general