mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-21 13:37:29 +01:00
Add build job
This commit is contained in:
parent
3820517afd
commit
6eab955075
@ -1,64 +1,63 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# build:
|
build:
|
||||||
# docker:
|
description: "Build the application into an Android APK executable"
|
||||||
# - image: cirrusci/flutter:stable
|
|
||||||
# steps:
|
|
||||||
# - checkout
|
|
||||||
# - run: flutter doctor
|
|
||||||
# - run: flutter test
|
|
||||||
# - run: flutter -v build apk
|
|
||||||
|
|
||||||
lint:
|
|
||||||
description: "Run static analysis for Flutter"
|
|
||||||
docker:
|
docker:
|
||||||
- image: cirrusci/flutter:v1.10.7
|
- image: cirrusci/flutter:stable
|
||||||
working_directory: ~/repo
|
working_directory: ~/project
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- run:
|
||||||
keys:
|
name: Print
|
||||||
- dart-dependencies-{{ checksum "pubspec.lock" }}
|
command: flutter doctor
|
||||||
- dart-dependencies-
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: flutter pub get
|
command: flutter pub get
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: flutter packages pub run build_runner build
|
command: flutter -v build apk
|
||||||
- save_cache:
|
|
||||||
paths:
|
# - save_cache:
|
||||||
- .dart_tool
|
# paths:
|
||||||
key: dart-dependencies-{{ checksum "pubspec.lock" }}
|
# - .dart_tool
|
||||||
|
# key: dart-dependencies-{{ checksum "pubspec.lock" }}
|
||||||
|
|
||||||
|
lint:
|
||||||
|
description: "Run static analysis for the code"
|
||||||
|
requires: build
|
||||||
|
docker:
|
||||||
|
- image: cirrusci/flutter:v1.10.7
|
||||||
|
working_directory: ~/project
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
# - restore_cache:
|
||||||
|
# keys:
|
||||||
|
# - dart-dependencies-{{ checksum "pubspec.lock" }}
|
||||||
|
# - dart-dependencies-
|
||||||
- run:
|
- run:
|
||||||
name: Analyze code
|
name: Analyze code
|
||||||
command: flutter analyze lib
|
command: flutter analyze lib
|
||||||
|
|
||||||
test:
|
test:
|
||||||
description: "Run tests for Flutter"
|
description: "Run all unittests"
|
||||||
|
requires: build
|
||||||
docker:
|
docker:
|
||||||
- image: cirrusci/flutter:v1.10.7
|
- image: cirrusci/flutter:v1.10.7
|
||||||
working_directory: ~/repo
|
working_directory: ~/project
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
# - restore_cache:
|
||||||
keys:
|
# keys:
|
||||||
- dart-dependencies-{{ checksum "pubspec.lock" }}
|
# - dart-dependencies-{{ checksum "pubspec.lock" }}
|
||||||
- dart-dependencies-
|
# - dart-dependencies-
|
||||||
|
|
||||||
- run:
|
# - save_cache:
|
||||||
name: Install Dependencies
|
# paths:
|
||||||
command: flutter pub get
|
# - .dart_tool
|
||||||
|
# key: dart-dependencies-{{ checksum "pubspec.lock" }}
|
||||||
- run:
|
|
||||||
name: Build
|
|
||||||
command: flutter packages pub run build_runner build
|
|
||||||
|
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- .dart_tool
|
|
||||||
key: dart-dependencies-{{ checksum "pubspec.lock" }}
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
@ -70,5 +69,6 @@ jobs:
|
|||||||
workflows:
|
workflows:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
|
- build
|
||||||
- lint
|
- lint
|
||||||
- test
|
- test
|
Loading…
Reference in New Issue
Block a user