1
0
Fork 0

Add pipeline

main
Jonas Franz 3 years ago
parent f23481e4bd
commit c3533cfcfe
  1. 98
      .drone.yml
  2. 126
      pubspec.lock
  3. 1
      pubspec.yaml

@ -0,0 +1,98 @@
---
kind: pipeline
name: build
type: docker
workspace:
path: "/app"
platform:
os: linux
arch: amd64
trigger:
- push
clone:
git:
image: plugins/git:next
steps:
- name: build
pull: always
image: jonasfranz/flutter:2.10.1
commands:
- flutter packages get
- flutter build apk
- name: lint
pull: always
image: jonasfranz/flutter:2.10.1
depends_on:
- build
commands:
- flutter analyze
- flutter format --set-exit-if-changed
- name: lint
pull: always
image: jonasfranz/flutter:2.10.1
depends_on:
- build
commands:
- flutter analyze
- flutter format --set-exit-if-changed
- name: test
pull: always
image: jonasfranz/flutter:2.10.1
depends_on:
- build
commands:
- flutter test -r expanded
---
kind: pipeline
name: metrics
type: docker
depends_on:
- build
workspace:
path: "/app"
trigger:
- push
platform:
os: linux
arch: amd64
steps:
- name: generate_metrics
pull: always
image: jonasfranz/flutter:2.10.1
commands:
- flutter pub run dart_code_metrics:metrics analyze lib -r html
- name: convert_to_latex
pull: always
image: pandoc/core:2.17
depends_on:
- generate_metrics
commands:
- pandoc -s metrics/index.html -o metrics.tex
- name: pull_thesis
image: docker:git
commands:
- git clone https://git.jonasfranz.software/KoSI/thesis.git
- mkdir -p thesis/results/${DRONE_REPO_BRANCH}
- name: push_metrics
depends_on:
- convert_to_latex
- pull_thesis
image: docker:git
commands:
- cp metrics.tex thesis/results/${DRONE_REPO_BRANCH}/
- cd thesis
- git status

@ -1,6 +1,41 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
_fe_analyzer_shared:
dependency: transitive
description:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "34.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.0"
analyzer_plugin:
dependency: transitive
description:
name: analyzer_plugin
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.0"
ansicolor:
dependency: transitive
description:
name: ansicolor
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.0"
async:
dependency: transitive
description:
@ -29,6 +64,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
cli_util:
dependency: transitive
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.5"
clock:
dependency: transitive
description:
@ -43,6 +85,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
csslib:
dependency: transitive
description:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.17.1"
cupertino_icons:
dependency: "direct main"
description:
@ -50,6 +113,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
dart_code_metrics:
dependency: "direct dev"
description:
name: dart_code_metrics
url: "https://pub.dartlang.org"
source: hosted
version: "4.10.1"
dart_style:
dependency: transitive
description:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
fake_async:
dependency: transitive
description:
@ -57,6 +134,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.2"
flutter:
dependency: "direct main"
description: flutter
@ -74,6 +158,20 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
glob:
dependency: transitive
description:
name: glob
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
html:
dependency: transitive
description:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0"
lints:
dependency: transitive
description:
@ -102,6 +200,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
package_config:
dependency: transitive
description:
name: package_config
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
path:
dependency: transitive
description:
@ -109,6 +214,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
pub_semver:
dependency: transitive
description:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
sky_engine:
dependency: transitive
description: flutter
@ -170,5 +282,19 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
watcher:
dependency: transitive
description:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
yaml:
dependency: transitive
description:
name: yaml
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.16.1 <3.0.0"

@ -44,6 +44,7 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^1.0.0
dart_code_metrics: ^4.10.1
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

Loading…
Cancel
Save