From fe55c4f075b626f15146528124b797eb0ce5960d Mon Sep 17 00:00:00 2001 From: Nicolas Hodicq <> Date: Fri, 19 Oct 2018 00:54:12 +0200 Subject: [PATCH 1/4] init --- .gitignore | 2 +- .travis.yml | 7 ++++ README.md | 112 ++++++++++++++++++++++++++++++++++++++++++++++++- new-version.sh | 26 ++++++++---- 4 files changed, 136 insertions(+), 11 deletions(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 451eab6..aadcc7e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .idea flutter -flutterdiff \ No newline at end of file +flutterdiff/README.md \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..13d9eaa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +os: osx + +branches: + only: + - master + +script: sh ./new-version.sh \ No newline at end of file diff --git a/README.md b/README.md index 3025b77..c746bf5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Flutter Cli diff This repository exposes an Flutter CLI app generated with -`flutter create flutterdiff --no-pub --org nartawak -i objc -a java` with each version of Flutter CLI. +`flutter create flutterdiff` with each version of Flutter CLI. A dedicated branch per version makes changes very easy to watch. For example: @@ -17,4 +17,112 @@ Note that this is inspired by [Angular Cli diff](https://github.com/cexbrayat/an Version|Compare view|Stats ----|----|---- - NEWLINE +v1.1.4|[v1.1.3...v1.1.4](https://github.com/nartawak/flutter-cli-diff/compare/v1.1.3...v1.1.4)| 1 file changed, 1 insertion(+),1 deletion(-) +v1.1.3|[v1.1.2...v1.1.3](https://github.com/nartawak/flutter-cli-diff/compare/v1.1.2...v1.1.3)| 1 file changed, 1 insertion(+),1 deletion(-) +v1.1.2|[v1.1.1...v1.1.2](https://github.com/nartawak/flutter-cli-diff/compare/v1.1.1...v1.1.2)| 1 file changed, 1 insertion(+),1 deletion(-) +v1.1.1|[v1.1.0...v1.1.1](https://github.com/nartawak/flutter-cli-diff/compare/v1.1.0...v1.1.1)| 1 file changed, 1 insertion(+),1 deletion(-) +v1.1.0|[v1.0.0...v1.1.0](https://github.com/nartawak/flutter-cli-diff/compare/v1.0.0...v1.1.0)| 1 file changed, 1 insertion(+),1 deletion(-) +v1.0.0|[v0.11.13...v1.0.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.13...v1.0.0)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.13|[v0.11.12...v0.11.13](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.12...v0.11.13)| 1 file changed, 1insertion(+), 1 deletion(-) +v0.11.12|[v0.11.11...v0.11.12](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.11...v0.11.12)| 1 file changed, 1insertion(+), 1 deletion(-) +v0.11.11|[v0.11.10...v0.11.11](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.10...v0.11.11)| 1 file changed, 1insertion(+), 1 deletion(-) +v0.11.10|[v0.11.9...v0.11.10](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.9...v0.11.10)| 1 file changed, 1insertion(+), 1 deletion(-) +v0.11.9|[v0.11.8...v0.11.9](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.8...v0.11.9)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.8|[v0.11.7...v0.11.8](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.7...v0.11.8)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.7|[v0.11.6...v0.11.7](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.6...v0.11.7)| 2 files changed, 1 insertio+), 28 deletions(-) +v0.11.6|[v0.11.5...v0.11.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.5...v0.11.6)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.5|[v0.11.4...v0.11.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.4...v0.11.5)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.4|[v0.11.3...v0.11.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.3...v0.11.4)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.3|[v0.11.2...v0.11.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.2...v0.11.3)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.2|[v0.11.1...v0.11.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.1...v0.11.2)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.11.1|[v0.11.0...v0.11.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.11.0...v0.11.1)| 6 files changed, 88insertions(+), 257 deletions(-) +v0.11.0|[v0.10.2...v0.11.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.10.2...v0.11.0)| 1 file changed, 1 insertion+), 1 deletion(-) +v0.10.2|[v0.10.1...v0.10.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.10.1...v0.10.2)| 3 files changed, 3insertions(+), 3 deletions(-) +v0.10.1|[v0.10.0...v0.10.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.10.0...v0.10.1)| 51 files changed, 1160 insertions(+), 63 deletions(-) +v0.10.0|[v0.9.6...v0.10.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.9.6...v0.10.0)| 54 files changed, 62 insertions(+), 1406 deletions(-) +v0.9.6|[v0.9.5...v0.9.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.9.5...v0.9.6)| 2 files changed, 7 insertions(+), 7 deletions(-) +v0.9.5|[v0.9.4...v0.9.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.9.4...v0.9.5)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.9.4|[v0.9.3...v0.9.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.9.3...v0.9.4)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.9.3|[v0.9.2...v0.9.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.9.2...v0.9.3)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.9.2|[v0.9.1...v0.9.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.9.1...v0.9.2)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.9.1|[v0.9.0...v0.9.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.9.0...v0.9.1)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.9.0|[v0.8.7...v0.9.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.7...v0.9.0)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.8.7|[v0.8.6...v0.8.7](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.6...v0.8.7)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.8.6|[v0.8.5...v0.8.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.5...v0.8.6)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.8.5|[v0.8.4...v0.8.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.4...v0.8.5)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.8.4|[v0.8.3...v0.8.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.3...v0.8.4)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.8.3|[v0.8.2...v0.8.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.2...v0.8.3)| 4 files changed, 66 insertions(+), 59 deletions(-) +v0.8.2|[v0.8.1...v0.8.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.1...v0.8.2)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.8.1|[v0.8.0...v0.8.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.8.0...v0.8.1)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.8.0|[v0.7.5...v0.8.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.7.5...v0.8.0)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.7.5|[v0.7.4...v0.7.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.7.4...v0.7.5)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.7.4|[v0.7.3...v0.7.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.7.3...v0.7.4)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.7.3|[v0.7.2...v0.7.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.7.2...v0.7.3)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.7.2|[v0.7.1...v0.7.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.7.1...v0.7.2)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.7.1|[v0.7.0...v0.7.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.7.0...v0.7.1)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.7.0|[v0.6.2...v0.7.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.6.2...v0.7.0)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.6.2|[v0.6.1...v0.6.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.6.1...v0.6.2)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.6.1|[v0.6.0...v0.6.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.6.0...v0.6.1)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.6.0|[v0.5.8...v0.6.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.8...v0.6.0)| 3 files changed, 13 insertions(+), 10 deletions(-) +v0.5.8|[v0.5.7...v0.5.8](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.7...v0.5.8)| 4 files changed, 50 insertions(+), 52 deletions(-) +v0.5.7|[v0.5.6...v0.5.7](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.6...v0.5.7)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.5.6|[v0.5.5...v0.5.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.5...v0.5.6)| 2 files changed, 20 insertions(+), 6 deletions(-) +v0.5.5|[v0.5.4...v0.5.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.4...v0.5.5)| 2 files changed, 17 insertions(+), 17 deletions(-) +v0.5.4|[v0.5.3...v0.5.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.3...v0.5.4)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.5.3|[v0.5.2...v0.5.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.2...v0.5.3)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.5.2|[v0.5.1...v0.5.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.1...v0.5.2)| 8 files changed, 30 insertions(+), 12 deletions(-) +v0.5.1|[v0.5.0...v0.5.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.5.0...v0.5.1)| 2 files changed, 2 insertions(+), 2 deletions(-) +v0.5.0|[v0.4.4...v0.5.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.4.4...v0.5.0)| 6 files changed, 7 insertions(+), 7 deletions(-) +v0.4.4|[v0.4.3...v0.4.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.4.3...v0.4.4)| 2 files changed, 3 insertions(+), 3 deletions(-) +v0.4.3|[v0.4.2...v0.4.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.4.2...v0.4.3)| 3 files changed, 19 insertions(+), 39 deletions(-) +v0.4.2|[v0.4.1...v0.4.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.4.1...v0.4.2)| 3 files changed, 1 insertion(+), 7 deletions(-) +v0.4.1|[v0.4.0...v0.4.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.4.0...v0.4.1)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.4.0|[v0.3.6...v0.4.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.3.6...v0.4.0)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.3.6|[v0.3.5...v0.3.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.3.5...v0.3.6)| 2 files changed, 3 insertions(+), 3 deletions(-) +v0.3.5|[v0.3.4...v0.3.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.3.4...v0.3.5)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.3.4|[v0.3.3...v0.3.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.3.3...v0.3.4)| 2 files changed, 2 insertions(+), 2 deletions(-) +v0.3.3|[v0.3.2...v0.3.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.3.2...v0.3.3)| 2 files changed, 2 insertions(+), 2 deletions(-) +v0.3.2|[v0.3.1...v0.3.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.3.1...v0.3.2)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.3.1|[v0.3.0...v0.3.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.3.0...v0.3.1)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.3.0|[v0.2.11...v0.3.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.11...v0.3.0)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.2.11|[v0.2.10...v0.2.11](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.10...v0.2.11)| 4 files changed, 11 insertions(+), 11 deletions(-) +v0.2.10|[v0.2.9...v0.2.10](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.9...v0.2.10)| 4 files changed, 4 insertions(+), 2 deletions(-) +v0.2.9|[v0.2.8...v0.2.9](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.8...v0.2.9)| 2 files changed, 4 insertions(+), 4 deletions(-) +v0.2.8|[v0.2.7...v0.2.8](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.7...v0.2.8)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.2.7|[v0.2.6...v0.2.7](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.6...v0.2.7)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.2.6|[v0.2.5...v0.2.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.5...v0.2.6)| 2 files changed, 5 insertions(+), 1 deletion(-) +v0.2.5|[v0.2.4...v0.2.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.4...v0.2.5)| 3 files changed, 4 insertions(+), 11 deletions(-) +v0.2.4|[v0.2.3...v0.2.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.3...v0.2.4)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.2.3|[v0.2.2...v0.2.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.2...v0.2.3)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.2.2|[v0.2.1...v0.2.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.1...v0.2.2)| 2 files changed, 7 insertions(+), 7 deletions(-) +v0.2.1|[v0.2.0...v0.2.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.2.0...v0.2.1)| 2 files changed, 3 insertions(+), 3 deletions(-) +v0.2.0|[v0.1.9...v0.2.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.9...v0.2.0)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.1.9|[v0.1.8...v0.1.9](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.8...v0.1.9)| 2 files changed, 2 insertions(+), 2 deletions(-) +v0.1.8|[v0.1.7...v0.1.8](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.7...v0.1.8)| 2 files changed, 2 insertions(+), 1 deletion(-) +v0.1.7|[v0.1.6...v0.1.7](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.6...v0.1.7)| 3 files changed, 2 insertions(+), 14 deletions(-) +v0.1.6|[v0.1.5...v0.1.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.5...v0.1.6)| 2 files changed, 2 insertions(+), 2 deletions(-) +v0.1.5|[v0.1.4...v0.1.5](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.4...v0.1.5)| 3 files changed, 399 insertions(+), 2 deletions(-) +v0.1.4|[v0.1.3...v0.1.4](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.3...v0.1.4)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.1.3|[v0.1.2...v0.1.3](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.2...v0.1.3)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.1.2|[v0.1.1...v0.1.2](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.1...v0.1.2)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.1.1|[v0.1.0...v0.1.1](https://github.com/nartawak/flutter-cli-diff/compare/v0.1.0...v0.1.1)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.1.0|[v0.0.24...v0.1.0](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.24...v0.1.0)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.0.24|[v0.0.23...v0.0.24](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.23...v0.0.24)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.0.23|[v0.0.22...v0.0.23](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.22...v0.0.23)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.0.22|[v0.0.21...v0.0.22](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.21...v0.0.22)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.0.21|[v0.0.20...v0.0.21](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.20...v0.0.21)| 13 files changed, 33 insertions(+), 27 deletions(-) +v0.0.20|[v0.0.19...v0.0.20](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.19...v0.0.20)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.0.19|[v0.0.18...v0.0.19](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.18...v0.0.19)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.0.18|[v0.0.17...v0.0.18](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.17...v0.0.18)| 6 files changed, 28 insertions(+), 10 deletions(-) +v0.0.17|[v0.0.16...v0.0.17](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.16...v0.0.17)| 1 file changed, 6 insertions(+), 2 deletions(-) +v0.0.16|[v0.0.15...v0.0.16](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.15...v0.0.16)| 5 files changed, 26 insertions(+), 5 deletions(-) +v0.0.15|[v0.0.14...v0.0.15](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.14...v0.0.15)| 1 file changed, 3 insertions(+), 11 deletions(-) +v0.0.14|[v0.0.13...v0.0.14](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.13...v0.0.14)| 10 files changed, 84 insertions(+), 15 deletions(-) +v0.0.13|[v0.0.12...v0.0.13](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.12...v0.0.13)| 1 file changed, 1 insertion(+), 1 deletion(-) +v0.0.12|[v0.0.11...v0.0.12](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.11...v0.0.12)| 12 files changed, 344 insertions(+), 99 deletions(-) +v0.0.11|[v0.0.10...v0.0.11](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.10...v0.0.11)| 2 files changed, 5 insertions(+), 2 deletions(-) +v0.0.10|[v0.0.9...v0.0.10](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.9...v0.0.10)| 1 file changed, 31 insertions(+), 5 deletions(-) +v0.0.9|[v0.0.8...v0.0.9](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.8...v0.0.9)| 1 file changed, 31 insertions(+), 5 deletions(-) +v0.0.8|[v0.0.7...v0.0.8](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.7...v0.0.8)| 1 file changed, 31 insertions(+), 5 deletions(-) +v0.0.7|[v0.0.6...v0.0.7](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.6...v0.0.7)| 5 files changed, 16 insertions(+), 40 deletions(-) +v0.0.6|[v0.0.10...v0.0.6](https://github.com/nartawak/flutter-cli-diff/compare/v0.0.10...v0.0.6)| 44 files changed, 1218 insertions diff --git a/new-version.sh b/new-version.sh index fc4931d..29a8aba 100644 --- a/new-version.sh +++ b/new-version.sh @@ -6,13 +6,23 @@ currentDir="$(pwd)" #FlutterDir flutterDir="$currentDir/flutter" -# Clone Flutter repository -rm -Rf "$flutterDir" -git clone git@github.com:flutter/flutter.git +# Clone Flutter repository if not already cloned +if [[ -d $flutterDir ]]; then + echo "Flutter is already cloned" + cd "$flutterDir" + git fetch --all -p + cd "$currentDir" +else + git clone git@github.com:flutter/flutter.git +fi # Move to the flutter directory and get all tags (format is vx.x.x) cd "$flutterDir" -versions=("$(git tag -l)") +versions=() +for crt_tag in $(git tag -l --sort=v:refname) +do + versions=( "${versions[@]}" "$crt_tag" ) +done cd "$currentDir" lastVersion="v0.0.10" @@ -58,7 +68,7 @@ for version in "${versions[@]}"; do cd "$currentDir" # Generate Flutter base project with default langage value - ./flutter/bin/flutter create flutterdiff --no-pub --org nartawak -i objc -a java + ./flutter/bin/flutter create flutterdiff git add flutterdiff git commit -am "version ${version}" @@ -66,11 +76,11 @@ for version in "${versions[@]}"; do git push origin ${version} -f git checkout master - diffUrl="[${lastVersion}...${version}](https://github.com/cexbrayat/angular-cli-diff/compare/${lastVersion}...${version})" + diffUrl="[${lastVersion}...${version}](https://github.com/nartawak/flutter-cli-diff/compare/${lastVersion}...${version})" # insert a row in the version table of the README sed -i "" "/^${version}|/ d" README.md sed -i '' 's/----|----|----/----|----|----\ - NEWLINE/g' README.md +NEWLINE/g' README.md sed -i "" "s@NEWLINE@${version}|${diffUrl}|${diffStat}@" README.md # commit git commit -a --amend --no-edit @@ -80,4 +90,4 @@ for version in "${versions[@]}"; do done git checkout master -#git push origin master -f +git push origin master -f From 26c2008130d52348b9a7b8bd775681274007b6c1 Mon Sep 17 00:00:00 2001 From: Nicolas Hodicq <> Date: Mon, 22 Oct 2018 13:46:23 +0200 Subject: [PATCH 2/4] Test Travis-Ci (+1 squashed commit) Squashed commits: [5932724] Test Travis-Ci --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 13d9eaa..1fc1bc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,5 @@ branches: only: - master -script: sh ./new-version.sh \ No newline at end of file +script: + - sh ./new-version.sh From 0df153419ed2f454138b6af0a31835fa0e854ef3 Mon Sep 17 00:00:00 2001 From: Nicolas Hodicq <> Date: Sat, 29 Dec 2018 14:43:49 +0100 Subject: [PATCH 3/4] Clone Flutter with HTTPS --- new-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-version.sh b/new-version.sh index 29a8aba..da9a929 100644 --- a/new-version.sh +++ b/new-version.sh @@ -13,7 +13,7 @@ if [[ -d $flutterDir ]]; then git fetch --all -p cd "$currentDir" else - git clone git@github.com:flutter/flutter.git + git clone https://github.com/flutter/flutter.git fi # Move to the flutter directory and get all tags (format is vx.x.x) From 281a8cfbbad8ff37b597d258ac4a97e63ff13930 Mon Sep 17 00:00:00 2001 From: Nicolas Hodicq <> Date: Sat, 29 Dec 2018 15:25:16 +0100 Subject: [PATCH 4/4] Add travis configuration for accessing remote origin --- .travis.yml | 9 ++- new-version.sh | 189 ++++++++++++++++++++++--------------------- travis-git-config.sh | 19 +++++ 3 files changed, 122 insertions(+), 95 deletions(-) create mode 100755 travis-git-config.sh diff --git a/.travis.yml b/.travis.yml index 1fc1bc3..d2c822f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,9 @@ os: osx - +language: bash branches: only: - - master - + - master +before_script: + - sh ./travis-git-config.sh script: - - sh ./new-version.sh + - sh ./new-version.sh \ No newline at end of file diff --git a/new-version.sh b/new-version.sh index da9a929..3d374e9 100644 --- a/new-version.sh +++ b/new-version.sh @@ -1,93 +1,100 @@ #!/usr/bin/env bash -# Keep the current directory -currentDir="$(pwd)" - -#FlutterDir -flutterDir="$currentDir/flutter" - -# Clone Flutter repository if not already cloned -if [[ -d $flutterDir ]]; then - echo "Flutter is already cloned" - cd "$flutterDir" - git fetch --all -p - cd "$currentDir" -else - git clone https://github.com/flutter/flutter.git -fi - -# Move to the flutter directory and get all tags (format is vx.x.x) -cd "$flutterDir" -versions=() -for crt_tag in $(git tag -l --sort=v:refname) -do - versions=( "${versions[@]}" "$crt_tag" ) -done -cd "$currentDir" - -lastVersion="v0.0.10" -rebaseNeeded=false - -for version in "${versions[@]}"; do - - if [ `git branch --list ${version}` ] || [ `git branch --list --remote origin/${version}` ] - then - echo "${version} already generated." - git checkout ${version} - - if [ ${rebaseNeeded} = true ] - then - git rebase --onto ${lastVersion} head~ ${version} -X theirs - diffStat=`git --no-pager diff head~ --shortstat` - #git push origin ${version} -f - diffUrl="[${lastVersion}...${version}](https://github.com/nartawak/flutter-cli-diff/compare/${lastVersion}...${version})" - git checkout master - # rewrite stats in README after rebase - sed -i "" "/^${version}|/ d" README.md - sed -i '' 's/----|----|----/----|----|----\ - NEWLINE/g' README.md - sed -i "" "s@NEWLINE@${version}|${diffUrl}|${diffStat}@" README.md - git commit -a --amend --no-edit - git checkout ${version} - fi - - lastVersion=${version} - continue - fi - - echo "Generate ${version}" - rebaseNeeded=true - git checkout -b ${version} - - # delete app - rm -rf flutterdiff - - # Install flutter version - cd "$flutterDir" - git checkout ${version} - cd "$currentDir" - - # Generate Flutter base project with default langage value - ./flutter/bin/flutter create flutterdiff - - git add flutterdiff - git commit -am "version ${version}" - diffStat=`git --no-pager diff head~ --shortstat` - git push origin ${version} -f - - git checkout master - diffUrl="[${lastVersion}...${version}](https://github.com/nartawak/flutter-cli-diff/compare/${lastVersion}...${version})" - # insert a row in the version table of the README - sed -i "" "/^${version}|/ d" README.md - sed -i '' 's/----|----|----/----|----|----\ -NEWLINE/g' README.md - sed -i "" "s@NEWLINE@${version}|${diffUrl}|${diffStat}@" README.md - # commit - git commit -a --amend --no-edit - git checkout ${version} - lastVersion=${version} - -done - -git checkout master -git push origin master -f +echo 'Git remotes' +git remote -v + +echo 'Check branches from origin' +git branch --list --remote + + +## Keep the current directory +#currentDir="$(pwd)" +# +##FlutterDir +#flutterDir="$currentDir/flutter" +# +## Clone Flutter repository if not already cloned +#if [[ -d $flutterDir ]]; then +# echo "Flutter is already cloned" +# cd "$flutterDir" +# git fetch --all -p +# cd "$currentDir" +#else +# git clone https://github.com/flutter/flutter.git +#fi +# +## Move to the flutter directory and get all tags (format is vx.x.x) +#cd "$flutterDir" +#versions=() +#for crt_tag in $(git tag -l --sort=v:refname) +#do +# versions=( "${versions[@]}" "$crt_tag" ) +#done +#cd "$currentDir" +# +#lastVersion="v0.0.10" +#rebaseNeeded=false +# +#for version in "${versions[@]}"; do +# +# if [ `git branch --list ${version}` ] || [ `git branch --list --remote origin/${version}` ] +# then +# echo "${version} already generated." +# git checkout ${version} +# +# if [ ${rebaseNeeded} = true ] +# then +# git rebase --onto ${lastVersion} head~ ${version} -X theirs +# diffStat=`git --no-pager diff head~ --shortstat` +# #git push origin ${version} -f +# diffUrl="[${lastVersion}...${version}](https://github.com/nartawak/flutter-cli-diff/compare/${lastVersion}...${version})" +# git checkout master +# # rewrite stats in README after rebase +# sed -i "" "/^${version}|/ d" README.md +# sed -i '' 's/----|----|----/----|----|----\ +# NEWLINE/g' README.md +# sed -i "" "s@NEWLINE@${version}|${diffUrl}|${diffStat}@" README.md +# git commit -a --amend --no-edit +# git checkout ${version} +# fi +# +# lastVersion=${version} +# continue +# fi +# +# echo "Generate ${version}" +# rebaseNeeded=true +# git checkout -b ${version} +# +# # delete app +# rm -rf flutterdiff +# +# # Install flutter version +# cd "$flutterDir" +# git checkout ${version} +# cd "$currentDir" +# +# # Generate Flutter base project with default langage value +# ./flutter/bin/flutter create flutterdiff +# +# git add flutterdiff +# git commit -am "version ${version}" +# diffStat=`git --no-pager diff head~ --shortstat` +# git push origin ${version} -f +# +# git checkout master +# diffUrl="[${lastVersion}...${version}](https://github.com/nartawak/flutter-cli-diff/compare/${lastVersion}...${version})" +# # insert a row in the version table of the README +# sed -i "" "/^${version}|/ d" README.md +# sed -i '' 's/----|----|----/----|----|----\ +#NEWLINE/g' README.md +# sed -i "" "s@NEWLINE@${version}|${diffUrl}|${diffStat}@" README.md +# # commit +# git commit -a --amend --no-edit +# git checkout ${version} +# lastVersion=${version} +# +#done +# +#git checkout master +#git push origin master -f diff --git a/travis-git-config.sh b/travis-git-config.sh new file mode 100755 index 0000000..5092fa1 --- /dev/null +++ b/travis-git-config.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +if [ -z "${GITHUB_TOKEN}" ]; then + + echo 'GITHUB_TOKEN is not defined, you have to set this environment variable' + exit 1 + +else + echo 'Add git configuration remote' + + git config --global user.email "travis@travis-ci.org" + git config --global user.name "Travis CI" + + git remote set-url origin https://${GITHUB_TOKEN}@github.com/nartawak/flutter-cli-diff.git > /dev/null 2>&1 + + echo 'Git remote :' + git remote -v +fi +