Skip to content

Commit 983a50d

Browse files
authored
Merge pull request #3 from gspencergoog/cirrus_switch
Switch to using Cirrus instead of Travis, and add a check for publishability. This consisted of copying the setup from the flutter/plugins repo and renaming PLUGIN_SHARDING to BUILD_SHARDING. Moves packages/palette_generator/example/image_colors up one directory level to packages/palette_generator/example, since there's only the one example, and the plugin_tools and pub only seem to allow one example. That's really too bad, but I don't feel like fighting it at the moment. Fixed a formatting error (that was probably due to dartfmt changing), and an analyzer error (due to an updated analyzer).
2 parents fe7ca46 + 4cf9b0e commit 983a50d

File tree

71 files changed

+193
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+193
-184
lines changed

.cirrus.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
task:
2+
container:
3+
image: cirrusci/flutter:latest
4+
cpu: 4
5+
memory: 8G
6+
upgrade_script:
7+
- flutter channel master
8+
- flutter upgrade
9+
- git fetch origin master
10+
activate_script: pub global activate flutter_plugin_tools
11+
matrix:
12+
- name: publishable
13+
script: ./script/check_publish.sh
14+
- name: test+format
15+
install_script:
16+
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
17+
- sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main"
18+
- sudo apt-get update
19+
- sudo apt-get install -y --allow-unauthenticated clang-format-5.0
20+
format_script: ./script/incremental_build.sh format --travis --clang-format=clang-format-5.0
21+
test_script: ./script/incremental_build.sh test
22+
- name: analyze
23+
script: ./script/incremental_build.sh analyze
24+
- name: build-apks+java-test
25+
env:
26+
matrix:
27+
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
28+
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
29+
script:
30+
- ./script/incremental_build.sh build-examples --apk
31+
- ./script/incremental_build.sh java-test # must come after apk build
32+
33+
task:
34+
name: build-ipas
35+
osx_instance:
36+
image: high-sierra-xcode-9.4
37+
env:
38+
PATH: $PATH:/usr/local/bin
39+
matrix:
40+
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
41+
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
42+
setup_script:
43+
- brew update
44+
- brew install libimobiledevice
45+
- brew install ideviceinstaller
46+
- brew install ios-deploy
47+
- pod repo update
48+
- git clone https://github.com/flutter/flutter.git
49+
- git fetch origin master
50+
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
51+
- flutter doctor
52+
- pub global activate flutter_plugin_tools
53+
build_script:
54+
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
55+
- ./script/incremental_build.sh build-examples --ipa

.travis.yml

Lines changed: 0 additions & 112 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 8 additions & 2 deletions

README.md

Lines changed: 1 addition & 2 deletions

packages/palette_generator/README.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)