@@ -14,12 +14,12 @@ matrix:
14
14
- libstdc++6
15
15
- fonts-droid
16
16
before_script :
17
- - git clone https://github.com/flutter/flutter.git --depth 1
17
+ - git clone https://github.com/flutter/flutter.git
18
18
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
19
19
- flutter doctor
20
20
- pub global activate flutter_plugin_tools
21
21
script :
22
- - ./script/plugin_tools .sh analyze
22
+ - ./script/incremental_build .sh analyze
23
23
# Job 2) Check format and run tests
24
24
- os : linux
25
25
env :
@@ -37,17 +37,18 @@ matrix:
37
37
- fonts-droid
38
38
- clang-format-5.0
39
39
before_script :
40
- - git clone https://github.com/flutter/flutter.git --depth 1
40
+ - git clone https://github.com/flutter/flutter.git
41
41
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
42
42
- flutter doctor
43
43
- pub global activate flutter_plugin_tools
44
44
script :
45
- - ./script/plugin_tools .sh format --travis --clang-format=clang-format-5.0
46
- - ./script/plugin_tools .sh test
47
- # Job 3) Build example APKs
45
+ - ./script/incremental_build .sh format --travis --clang-format=clang-format-5.0
46
+ - ./script/incremental_build .sh test
47
+ # Job 3.1 ) Build example APKs and run Java tests, shard 1/2
48
48
- os : linux
49
49
env :
50
- - SHARD=Build-example-APKs
50
+ - SHARD="Build example apks 1/2"
51
+ - PLUGIN_SHARDING="--shardIndex 0 --shardCount 2"
51
52
jdk : oraclejdk8
52
53
sudo : false
53
54
addons :
@@ -60,50 +61,59 @@ matrix:
60
61
- libstdc++6
61
62
- fonts-droid
62
63
before_script :
63
- - wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
64
- - mkdir android-sdk
65
- - unzip -qq sdk-tools-linux-3859397.zip -d android-sdk
64
+ - ./script/before_build_apks.sh
66
65
- export ANDROID_HOME=`pwd`/android-sdk
67
- - export PATH=`pwd`/android-sdk/tools/bin:$PATH
68
- - mkdir -p /home/travis/.android # silence sdkmanager warning
69
- - echo 'count=0' > /home/travis/.android/repositories.cfg # silence sdkmanager warning
70
- - echo y | sdkmanager "tools"
71
- - echo y | sdkmanager "platform-tools"
72
- - echo y | sdkmanager "build-tools;25.0.3"
73
- - echo y | sdkmanager "platforms;android-25"
74
- - echo y | sdkmanager "extras;android;m2repository"
75
- - echo y | sdkmanager "extras;google;m2repository"
76
- - echo y | sdkmanager "patcher;v4"
77
- - sdkmanager --list
78
- - wget http://services.gradle.org/distributions/gradle-3.5-bin.zip
79
- - unzip -qq gradle-3.5-bin.zip
80
- - export GRADLE_HOME=$PWD/gradle-3.5
81
- - export PATH=$GRADLE_HOME/bin:$PATH
82
- - gradle -v
83
- - git clone https://github.com/flutter/flutter.git --depth 1
84
66
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
85
- - flutter doctor
86
- - pub global activate flutter_plugin_tools
87
67
script :
88
- - ./script/plugin_tools.sh build-examples --apk
89
- # Job 4) Build example IPAs
68
+ - ./script/incremental_build.sh build-examples --apk
69
+ - ./script/incremental_build.sh java-test # must come after apk build
70
+ # Job 3.2) Build example APKs and run Java tests, shard 2/2
71
+ - os : linux
72
+ env :
73
+ - SHARD="Build example apks 2/2"
74
+ - PLUGIN_SHARDING="--shardIndex 1 --shardCount 2"
75
+ jdk : oraclejdk8
76
+ sudo : false
77
+ addons :
78
+ apt :
79
+ # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
80
+ sources :
81
+ - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
82
+ packages :
83
+ - lib32stdc++6 # https://github.com/flutter/flutter/issues/6207
84
+ - libstdc++6
85
+ - fonts-droid
86
+ before_script :
87
+ - ./script/before_build_apks.sh
88
+ - export ANDROID_HOME=`pwd`/android-sdk
89
+ - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
90
+ script :
91
+ - ./script/incremental_build.sh build-examples --apk
92
+ - ./script/incremental_build.sh java-test # must come after apk build
93
+ # Job 4.1) Build example IPAs, shard 1/2
90
94
- os : osx
91
95
env :
92
- - SHARD=Build-example-IPAs
96
+ - SHARD="Build example ipas 1/2"
97
+ - PLUGIN_SHARDING="--shardIndex 0 --shardCount 2"
93
98
language : generic
94
- osx_image : xcode8 .3
99
+ osx_image : xcode9 .3
95
100
before_script :
96
- - pip install six
97
- - brew update
98
- - brew install --HEAD libimobiledevice
99
- - brew install ideviceinstaller
100
- - brew install ios-deploy
101
- - git clone https://github.com/flutter/flutter.git --depth 1
101
+ - ./script/before_build_ipas.sh
102
+ - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
103
+ script :
104
+ - ./script/incremental_build.sh build-examples --ipa
105
+ # Job 4.2) Build example IPAs, shard 2/2
106
+ - os : osx
107
+ env :
108
+ - SHARD="Build example ipas 2/2"
109
+ - PLUGIN_SHARDING="--shardIndex 1 --shardCount 2"
110
+ language : generic
111
+ osx_image : xcode9.3
112
+ before_script :
113
+ - ./script/before_build_ipas.sh
102
114
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
103
- - flutter doctor
104
- - pub global activate flutter_plugin_tools
105
115
script :
106
- - ./script/plugin_tools .sh build-examples --ipa
116
+ - ./script/incremental_build .sh build-examples --ipa
107
117
108
118
cache :
109
119
directories :
0 commit comments