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

Commit

Permalink
Enhance CI (#25)
Browse files Browse the repository at this point in the history
* Enhance .travis.yml

* Update

* Update

* Update

* Update

* Update

* Add cache

* Added skip script
  • Loading branch information
Honza Bittner committed Mar 3, 2018
1 parent 4119979 commit a689fd3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
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

0 comments on commit a689fd3

Please sign in to comment.