Skip to content

Instantly share code, notes, and snippets.

@Hecatoncheir
Created January 16, 2019 17:08
Show Gist options
  • Save Hecatoncheir/c2e29cd7298e9d1be5307bec4b824dc6 to your computer and use it in GitHub Desktop.
Save Hecatoncheir/c2e29cd7298e9d1be5307bec4b824dc6 to your computer and use it in GitHub Desktop.
stages:
- test
- deploy
unit_test:
image: brianegan/flutter_lcov:v0.5.1
stage: test
script:
- flutter test --coverage
- genhtml coverage/lcov.info --output=coverage
artifacts:
paths:
- coverage/
pages:
image: alpine
stage: deploy
dependencies:
- unit_test
script:
- mkdir public
- mv coverage/ public/coverage/
artifacts:
paths:
- public
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment