adding widget-tests to drone
This commit is contained in:
parent
a2394440af
commit
238bc2f77c
14
.drone.yml
14
.drone.yml
|
@ -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 .
|
||||
|
|
Loading…
Reference in New Issue