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
|
2020-05-17 08:01:09 +00:00
|
|
|
|
2019-06-09 10:16:48 +00:00
|
|
|
coverage:
|
2020-05-17 08:01:09 +00:00
|
|
|
tags:
|
|
|
|
- linux
|
2020-02-15 07:48:41 +00:00
|
|
|
stage: coverage
|
2020-05-17 08:01:09 +00:00
|
|
|
image: debian:testing
|
2020-02-15 07:48:41 +00:00
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- apt update
|
|
|
|
- apt install -y curl gnupg2 git
|
2020-05-06 10:13:30 +00:00
|
|
|
- curl https://storage.googleapis.com/dart-archive/channels/stable/release/2.7.2/linux_packages/dart_2.7.2-1_amd64.deb > dart.deb
|
|
|
|
- apt install -y ./dart.deb
|
2020-02-15 07:48:41 +00:00
|
|
|
- apt update
|
2020-05-15 18:40:17 +00:00
|
|
|
- apt install -y chromium lcov libolm3 sqlite3 libsqlite3-dev
|
2020-02-15 07:48:41 +00:00
|
|
|
- ln -s /usr/lib/dart/bin/pub /usr/bin/
|
|
|
|
- useradd -m test
|
|
|
|
- chown -R 'test:' '.'
|
|
|
|
- chmod +x ./prepare.sh
|
|
|
|
- chmod +x ./test.sh
|
|
|
|
- su -c ./prepare.sh test
|
|
|
|
- su -c ./test.sh test
|
2020-05-19 09:28:13 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- coverage/
|
|
|
|
|
2020-02-15 07:48:41 +00:00
|
|
|
|
|
|
|
coverage_without_olm:
|
2020-05-17 08:01:09 +00:00
|
|
|
tags:
|
|
|
|
- linux
|
2019-06-09 10:16:48 +00:00
|
|
|
stage: coverage
|
2020-05-17 08:01:09 +00:00
|
|
|
image: debian:testing
|
2019-06-09 10:16:48 +00:00
|
|
|
coverage: '/^\s+lines.+: (\d+.\d*%)/'
|
|
|
|
dependencies: []
|
2020-05-09 13:24:14 +00:00
|
|
|
script:
|
|
|
|
- apt update
|
2020-05-15 18:40:17 +00:00
|
|
|
- apt install -y curl git sqlite3 libsqlite3-dev
|
2020-05-09 13:24:14 +00:00
|
|
|
- curl https://storage.googleapis.com/dart-archive/channels/stable/release/2.7.2/linux_packages/dart_2.7.2-1_amd64.deb > dart.deb
|
|
|
|
- apt install -y ./dart.deb
|
|
|
|
- ln -s /usr/lib/dart/bin/pub /usr/bin/
|
|
|
|
- useradd -m test
|
|
|
|
- chown -R 'test:' '.'
|
|
|
|
- chmod +x ./test.sh
|
|
|
|
- pub get
|
|
|
|
- pub run test
|
2019-06-09 12:33:25 +00:00
|
|
|
|
2019-06-25 14:30:13 +00:00
|
|
|
code_analyze:
|
2020-05-17 08:01:09 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
2019-06-25 14:30:13 +00:00
|
|
|
stage: coverage
|
2020-05-17 08:01:09 +00:00
|
|
|
image: cirrusci/flutter
|
2019-06-25 14:30:13 +00:00
|
|
|
dependencies: []
|
|
|
|
script:
|
2020-05-22 10:12:18 +00:00
|
|
|
- flutter format lib/ test/ test_driver/ --set-exit-if-changed
|
2019-06-25 14:30:13 +00:00
|
|
|
- flutter analyze
|
|
|
|
|
2020-05-17 08:01:09 +00:00
|
|
|
build-api-doc:
|
|
|
|
tags:
|
|
|
|
- docker
|
2019-06-09 12:27:00 +00:00
|
|
|
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:
|
2019-06-25 14:30:13 +00:00
|
|
|
- master
|
2019-06-09 12:34:28 +00:00
|
|
|
|
2020-05-17 08:01:09 +00:00
|
|
|
build-doc:
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
stage: builddocs
|
|
|
|
image: registry.gitlab.com/larodar/mdbook-dtmo:latest
|
|
|
|
script:
|
|
|
|
- cd doc
|
|
|
|
- mdbook-dtmo build -d public
|
|
|
|
- mv public ../doc-public
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- doc-public
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-06-09 18:30:50 +00:00
|
|
|
pages:
|
2020-05-17 08:01:09 +00:00
|
|
|
tags:
|
|
|
|
- linux
|
2019-06-09 18:30:50 +00:00
|
|
|
stage: deploy
|
2020-05-17 08:01:09 +00:00
|
|
|
image: alpine:latest
|
2019-06-09 12:19:49 +00:00
|
|
|
script:
|
2020-05-17 08:01:09 +00:00
|
|
|
- mv doc/api/ ./home/api
|
|
|
|
- mv doc-public ./home/doc
|
|
|
|
- mv home public
|
2019-06-09 12:27:00 +00:00
|
|
|
dependencies:
|
2020-05-17 08:01:09 +00:00
|
|
|
- build-api-doc
|
|
|
|
- build-doc
|
2019-06-09 13:17:31 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-06-25 14:30:13 +00:00
|
|
|
- public
|
2019-06-09 13:17:31 +00:00
|
|
|
only:
|
2020-01-30 13:11:18 +00:00
|
|
|
- master
|
2020-05-17 08:01:09 +00:00
|
|
|
|