Skip to content

Commit

Permalink
replace build shell script with a little makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sassman committed Nov 25, 2018
1 parent 8be0128 commit b17e5e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 34 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ dart:
- stable
install:
- gem install coveralls-lcov
script: ./tools/build.sh
script: make
after_success:
- coveralls-lcov --repo-token $COVERALLS_TOKEN coverage/lcov.info
env:
- DARTANALYZER_FLAGS=--fatal-warnings
- coveralls-lcov --repo-token $COVERALLS_TOKEN coverage/lcov.info
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
build: lib/*dart test/*dart bin/*dart
dartanalyzer lib/ bin/
dartfmt -w lib/ test/ bin/
DARTANALYZER_FLAGS=--fatal-warnings

build: lib/*dart test/*dart bin/*dart deps
dartanalyzer ${DARTANALYZER_FLAGS} lib/ bin/
dartfmt -n --set-exit-if-changed lib/ test/ bin/
pub run test_coverage

deps: pubspec.yaml
pub get

reformatting:
dartfmt -w lib/ test/ bin/

build-local: reformatting build
genhtml -o coverage coverage/lcov.info
open coverage/index.html
open coverage/index.html

publish:
pub publish
26 changes: 0 additions & 26 deletions tools/build.sh

This file was deleted.

0 comments on commit b17e5e6

Please sign in to comment.