From 45461ae26be8d546bce6074d83d7af5b4a5298e9 Mon Sep 17 00:00:00 2001 From: Koen Van Looveren Date: Sun, 4 Oct 2020 01:16:28 +0200 Subject: [PATCH 1/6] Test script with coverage --- .travis.yml | 8 ++++---- tools/test.sh | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 tools/test.sh diff --git a/.travis.yml b/.travis.yml index 2585467..c356128 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ addons: - libstdc++6 - fonts-droid-fallback +before_install: + - chmod +x ./tool/test.sh + sudo: required before_script: @@ -22,14 +25,11 @@ before_script: - flutter pub global activate dart_style - flutter packages get || exit -1; -after_success: - - coveralls-lcov coverage/lcov.info\ - jobs: include: - stage: quality name: "Tests" - script: flutter test --coverage || exit -1; + script: ./tools/test.sh - stage: quality name: "Analyze" script: flutter analyze || exit -1; diff --git a/tools/test.sh b/tools/test.sh new file mode 100644 index 0000000..17dc0a2 --- /dev/null +++ b/tools/test.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +flutter test --coverage || exit -1; + +coveralls-lcov /coverage/lcov.info \ No newline at end of file From 0d6bff0d145c48fe5e7eed1e5b44e588b1408205 Mon Sep 17 00:00:00 2001 From: Koen Van Looveren Date: Sun, 4 Oct 2020 01:20:04 +0200 Subject: [PATCH 2/6] Fixed incorrect path --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c356128..3c4de96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ addons: - fonts-droid-fallback before_install: - - chmod +x ./tool/test.sh + - chmod +x ./tools/test.sh sudo: required From 093728a21cfeb9f0f0cf27745392085717a4a3bf Mon Sep 17 00:00:00 2001 From: Koen Van Looveren Date: Sun, 4 Oct 2020 01:23:42 +0200 Subject: [PATCH 3/6] Use correct path to lcov file --- tools/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.sh b/tools/test.sh index 17dc0a2..a5be963 100644 --- a/tools/test.sh +++ b/tools/test.sh @@ -2,4 +2,4 @@ flutter test --coverage || exit -1; -coveralls-lcov /coverage/lcov.info \ No newline at end of file +coveralls-lcov ../coverage/lcov.info \ No newline at end of file From 1b03156a8e78ae272bac791c4b54fc6587d7cb6d Mon Sep 17 00:00:00 2001 From: Koen Van Looveren Date: Sun, 4 Oct 2020 01:30:08 +0200 Subject: [PATCH 4/6] Updated test script --- tools/test.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) mode change 100644 => 100755 tools/test.sh diff --git a/tools/test.sh b/tools/test.sh old mode 100644 new mode 100755 index a5be963..7b26478 --- a/tools/test.sh +++ b/tools/test.sh @@ -2,4 +2,20 @@ flutter test --coverage || exit -1; -coveralls-lcov ../coverage/lcov.info \ No newline at end of file +echo "LS BASE" +ls + +echo "CD .." +cd .. + +echo "LS ROOT PROJECT" + +ls +echo "CD COVERAGE" + +cd coverage + +echo "LS COVERAGE" +ls + +coveralls-lcov coverage/lcov.info \ No newline at end of file From a9cae64bc858e6f1b55c738b01d6b4beb007239e Mon Sep 17 00:00:00 2001 From: Koen Van Looveren Date: Sun, 4 Oct 2020 01:33:28 +0200 Subject: [PATCH 5/6] Updated test script --- tools/test.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tools/test.sh b/tools/test.sh index 7b26478..1c19491 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -2,20 +2,8 @@ flutter test --coverage || exit -1; -echo "LS BASE" -ls - -echo "CD .." -cd .. - -echo "LS ROOT PROJECT" - -ls -echo "CD COVERAGE" - cd coverage -echo "LS COVERAGE" ls -coveralls-lcov coverage/lcov.info \ No newline at end of file +coveralls-lcov lcov.info \ No newline at end of file From fde8ac672ad18bf78d922f23f1ba6ed4c6fe0c93 Mon Sep 17 00:00:00 2001 From: Koen Van Looveren Date: Sun, 4 Oct 2020 01:37:05 +0200 Subject: [PATCH 6/6] Updated test script --- tools/test.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/test.sh b/tools/test.sh index 1c19491..a5ec282 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -2,8 +2,4 @@ flutter test --coverage || exit -1; -cd coverage - -ls - -coveralls-lcov lcov.info \ No newline at end of file +coveralls-lcov coverage/lcov.info \ No newline at end of file