adding widget-tests to drone

This commit is contained in:
erinn 2021-03-30 12:21:54 -07:00
parent a2394440af
commit 238bc2f77c
1 changed files with 14 additions and 0 deletions

View File

@ -54,6 +54,18 @@ steps:
- mkdir deploy/android
- cp build/app/outputs/bundle/release/app-release.aab deploy/android
- name: widget-tests
image: cirrusci/flutter:dev
volumes:
- name: deps
path: /root/.pub-cache
commands:
- flutter config --enable-linux-desktop
- flutter test --coverage
- apt-get update
- apt-get install -y --no-install-recommends lcov
- genhtml coverage/lcov.info -o coverage/html
# Todo: gonna need more work on container
# https://flutter.dev/desktop
# requirements: Visual Studio 2019 (not to be confused with Visual Studio Code) with the “Desktop development with C++” workload installed, including all of its default components
@ -81,6 +93,8 @@ steps:
- chmod 400 ~/id_rsa
- export DIR=flwtch-`cat VERSION`-`cat BUILDDATE`
- mv deploy $DIR
- cp -r coverage/html $DIR/coverage-tests
- cp -r test/failures $DIR/test-failures
- cd $DIR
- find . -type f -exec sha256sum {} \; > ./../sha256s.txt
- mv ./../sha256s.txt .