From e9f6416252490f350d3c32e8142c06ea90cceb35 Mon Sep 17 00:00:00 2001 From: joostlek Date: Sun, 14 Jul 2019 23:57:07 +0200 Subject: [PATCH 01/10] Add CI --- .travis.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ad19c8e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +sudo: false +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - libstdc++6 + - fonts-droid +before_script: +- git clone https://github.com/flutter/flutter.git -b beta +- ./flutter/bin/flutter doctor +script: +- ./flutter/bin/flutter test +cache: + directories: + - $HOME/.pub-cache \ No newline at end of file From 08fa7caa620d01e47c54a01e20c1ffbbcd9bb92a Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:05:01 +0200 Subject: [PATCH 02/10] Fix CI --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ad19c8e..db8cc60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ before_script: - git clone https://github.com/flutter/flutter.git -b beta - ./flutter/bin/flutter doctor script: -- ./flutter/bin/flutter test +- ./flutter/bin/flutter test example cache: directories: - $HOME/.pub-cache \ No newline at end of file From a2ac6904a132390990f0eba623de6ba3ba0f7beb Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:09:35 +0200 Subject: [PATCH 03/10] Fix test --- example/test/widget_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index 63d397c..2c2b24a 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:example/main.dart'; +import '../lib/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { From 86cfcd435bc9eaa48d8957fa76ba0db5bc8d8a85 Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:17:21 +0200 Subject: [PATCH 04/10] Add Auto-publish --- .travis.yml | 12 +++++++++++- tool/publish.sh | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 tool/publish.sh diff --git a/.travis.yml b/.travis.yml index db8cc60..f352867 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ sudo: false + addons: apt: sources: @@ -6,11 +7,20 @@ addons: packages: - libstdc++6 - fonts-droid + before_script: - git clone https://github.com/flutter/flutter.git -b beta - ./flutter/bin/flutter doctor + script: - ./flutter/bin/flutter test example + cache: directories: - - $HOME/.pub-cache \ No newline at end of file + - $HOME/.pub-cache + +deploy: + provider: script + script: ./tool/publish.sh +# on: +# branch: master \ No newline at end of file diff --git a/tool/publish.sh b/tool/publish.sh new file mode 100644 index 0000000..fa3709c --- /dev/null +++ b/tool/publish.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +mkdir -p .pub-cache + +cat < ~/.pub-cache/credentials.json +{ + "accessToken":"$accessToken", + "refreshToken":"$refreshToken", + "tokenEndpoint":"$tokenEndpoint", + "scopes":["$scopes"], + "expiration":$expiration +} +EOF + +pub publish -f \ No newline at end of file From 9cda08d9a83feea17013b1fd3d8c7c21465e88f9 Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:22:48 +0200 Subject: [PATCH 05/10] Fix auto-publish --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f352867..000f410 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,5 +22,5 @@ cache: deploy: provider: script script: ./tool/publish.sh -# on: -# branch: master \ No newline at end of file + on: + branch: test/ci \ No newline at end of file From 1109a148b353e4d70a10c675c79011e39bce8dba Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:30:12 +0200 Subject: [PATCH 06/10] Fix auto-publish --- tool/publish.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/publish.sh b/tool/publish.sh index fa3709c..527112c 100644 --- a/tool/publish.sh +++ b/tool/publish.sh @@ -10,5 +10,6 @@ cat < ~/.pub-cache/credentials.json "expiration":$expiration } EOF - +echo "kek" +pub -v pub publish -f \ No newline at end of file From 7f5f2d1dd045809ef9e53425c1f1102a1cba4ab7 Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:41:30 +0200 Subject: [PATCH 07/10] Fix executable --- tool/publish.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tool/publish.sh diff --git a/tool/publish.sh b/tool/publish.sh old mode 100644 new mode 100755 From 43b32e1c8b45314e89126ba71b674eacb3b0e185 Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:46:46 +0200 Subject: [PATCH 08/10] Fix CI --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 000f410..09007f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ sudo: false +language: dart + addons: apt: sources: From ec15c4cea20534d5cdde396e594c9e7aaea71562 Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 15 Jul 2019 00:53:17 +0200 Subject: [PATCH 09/10] Fix CI --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 09007f2..77c92e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ addons: - libstdc++6 - fonts-droid -before_script: +install: - git clone https://github.com/flutter/flutter.git -b beta - ./flutter/bin/flutter doctor From d451ad54458b66bf6a4c810341db73711cb0a891 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 15 Jul 2019 01:12:04 +0200 Subject: [PATCH 10/10] Fix branch name --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 77c92e5..5bbc33c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,4 +25,4 @@ deploy: provider: script script: ./tool/publish.sh on: - branch: test/ci \ No newline at end of file + branch: master