Skip to content

Commit

Permalink
Merge pull request #1 from jama5262/setup-travis
Browse files Browse the repository at this point in the history
Set up Travis and coveralls
  • Loading branch information
jama5262 committed Oct 11, 2019
2 parents 988849e + 899d742 commit 8cee749
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
language: dart
dart:
- stable
install:
- gem install coveralls-lcov
before_script:
- chmod +x ./tools/travis.sh
script: ./tools/travis.sh
after_success:
- coveralls-lcov coverage/lcov.info
1 change: 1 addition & 0 deletions pubspec.yaml
Expand Up @@ -13,3 +13,4 @@ environment:
dev_dependencies:
pedantic: ^1.7.0
test: ^1.6.0
test_coverage: ^0.3.0+1
18 changes: 18 additions & 0 deletions tools/travis.sh
@@ -0,0 +1,18 @@
# Run pub get to fetch packages.
pub get

# Verify that the libraries are error and warning-free.
echo "Running dartanalyzer..."
dartanalyzer lib test example

# Verify that dartfmt has been run.
echo "Checking dartfmt..."
if [[ $(dartfmt -n --set-exit-if-changed lib test example) ]]; then
echo "Failed dartfmt check"
exit 1

fi

# Run the tests.
echo "Running tests..."
pub run test_coverage --no-badge

0 comments on commit 8cee749

Please sign in to comment.