From 2c4c400f8bfa23257aa8789b7b7967dd31f60508 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 9 Jun 2019 12:14:59 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ece140..4862abe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,33 @@ image: cirrusci/flutter stages: -- coverage + - coverage + - docs variables: LC_ALL: "en_US.UTF-8" LANG: "en_US.UTF-8" coverage: + image: cirrusci/flutter stage: coverage coverage: '/^\s+lines.+: (\d+.\d*%)/' dependencies: [] script: - - sudo apt-get update -qq && sudo apt-get install -qq apt-transport-https curl gnupg lcov git - - ./scripts/test.sh - - ./scripts/coverage.sh - - flutter pub pub publish --dry-run \ No newline at end of file + - sudo apt-get update -qq && sudo apt-get install -qq apt-transport-https curl gnupg lcov git + - ./scripts/test.sh + - ./scripts/coverage.sh + - flutter pub pub publish --dry-run + +docs: + stage: docs + scripts: + - image: cirrusci/flutter + script: + - dartdoc + - image: ruby:2.3 + script: + - cd docs/api/ && bundle exec jekyll build -d test + - cd docs/api/ && bundle exec jekyll build -d public + only: + - master \ No newline at end of file