famedlysdk/.gitlab-ci.yml

51 lines
908 B
YAML
Raw Normal View History

2019-06-09 10:16:48 +00:00
stages:
2019-06-09 12:33:25 +00:00
- coverage
2019-06-09 12:27:00 +00:00
- builddocs
2019-06-09 18:30:50 +00:00
- deploy
2019-06-09 10:16:48 +00:00
variables:
2019-06-09 13:43:08 +00:00
LC_ALL: C.UTF-8
2019-06-09 10:16:48 +00:00
LANG: "en_US.UTF-8"
2019-06-09 13:43:08 +00:00
JEKYLL_ENV: production
2019-06-09 10:16:48 +00:00
coverage:
2019-06-09 12:33:25 +00:00
image: cirrusci/flutter
2019-06-09 10:16:48 +00:00
stage: coverage
coverage: '/^\s+lines.+: (\d+.\d*%)/'
dependencies: []
script:
2019-10-04 09:44:32 +00:00
- flutter pub get
- flutter pub run test
2019-06-09 12:33:25 +00:00
code_analyze:
image: cirrusci/flutter
stage: coverage
dependencies: []
script:
- flutter analyze
2019-06-09 12:27:00 +00:00
builddocs:
stage: builddocs
2019-06-09 12:19:49 +00:00
image: cirrusci/flutter
script:
2019-06-09 18:26:54 +00:00
- dartdoc --exclude "dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui"
2019-06-09 12:27:00 +00:00
artifacts:
paths:
2019-06-09 12:34:28 +00:00
- doc/api/
2019-06-09 13:17:31 +00:00
only:
- master
2019-06-09 12:34:28 +00:00
2019-06-09 18:30:50 +00:00
pages:
stage: deploy
2019-06-09 12:19:49 +00:00
image: ruby:2.3
script:
2019-06-09 17:34:42 +00:00
- mv doc/api/* ./
2019-06-09 13:43:08 +00:00
- bundle install
2019-06-09 12:34:28 +00:00
- bundle exec jekyll build -d public
2019-06-09 12:27:00 +00:00
dependencies:
2019-06-09 13:17:31 +00:00
- builddocs
artifacts:
paths:
- public
2019-06-09 13:17:31 +00:00
only:
- master