Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Enhance CI #25

Merged
merged 8 commits into from
Mar 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,28 @@ dart:
- stable
- dev

before_script:
- git clone https://github.com/flutter/flutter.git flutter-repository
script: skip

script:
# logic static analysis
- cd logic && pub get && dartanalyzer lib/ --fatal-lints --fatal-warnings
# angular static analysis
- cd ../angular && pub get && dartanalyzer lib/ test/ --fatal-lints --fatal-warnings
# flutter static analysis
- cd ../flutter && ../flutter-repository/bin/flutter packages get && ../flutter-repository/bin/flutter analyze
# dart style conventions of the whole project
- cd .. && dartfmt --dry-run --set-exit-if-changed -- logic/ angular/ flutter/
jobs:
include:
- &test
before_script:
- cd logic
- pub get
script:
- dartanalyzer lib --fatal-warnings
- dartfmt --dry-run --set-exit-if-changed -- .
- <<: *test
before_script:
- cd angular
- pub get
- before_script:
- git clone https://github.com/flutter/flutter.git flutter-source
- cd flutter
- ../flutter-source/bin/flutter packages get
- ../flutter-source/bin/flutter analyze
- dartfmt --dry-run --set-exit-if-changed -- .

cache:
directories:
- $HOME/.pub-cache
2 changes: 0 additions & 2 deletions flutter/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class MyApp extends StatelessWidget {

class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);

final String title;

@override
_MyHomePageState createState() => new _MyHomePageState();
}
Expand Down