-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to Cirrus, turn off Travis #3
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
task: | ||
container: | ||
image: cirrusci/flutter:latest | ||
cpu: 4 | ||
memory: 8G | ||
upgrade_script: | ||
- flutter channel master | ||
- flutter upgrade | ||
- git fetch origin master | ||
activate_script: pub global activate flutter_plugin_tools | ||
matrix: | ||
- name: publishable | ||
script: ./script/check_publish.sh | ||
- name: test+format | ||
install_script: | ||
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
- sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" | ||
- sudo apt-get update | ||
- sudo apt-get install -y --allow-unauthenticated clang-format-5.0 | ||
format_script: ./script/incremental_build.sh format --travis --clang-format=clang-format-5.0 | ||
test_script: ./script/incremental_build.sh test | ||
- name: analyze | ||
script: ./script/incremental_build.sh analyze | ||
- name: build-apks+java-test | ||
env: | ||
matrix: | ||
BUILD_SHARDING: "--shardIndex 0 --shardCount 2" | ||
BUILD_SHARDING: "--shardIndex 1 --shardCount 2" | ||
script: | ||
- ./script/incremental_build.sh build-examples --apk | ||
- ./script/incremental_build.sh java-test # must come after apk build | ||
|
||
task: | ||
name: build-ipas | ||
osx_instance: | ||
image: high-sierra-xcode-9.4 | ||
env: | ||
PATH: $PATH:/usr/local/bin | ||
matrix: | ||
BUILD_SHARDING: "--shardIndex 0 --shardCount 2" | ||
BUILD_SHARDING: "--shardIndex 1 --shardCount 2" | ||
setup_script: | ||
- brew update | ||
- brew install libimobiledevice | ||
- brew install ideviceinstaller | ||
- brew install ios-deploy | ||
- pod repo update | ||
- git clone https://github.com/flutter/flutter.git | ||
- git fetch origin master | ||
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH | ||
- flutter doctor | ||
- pub global activate flutter_plugin_tools | ||
build_script: | ||
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH | ||
- ./script/incremental_build.sh build-examples --ipa |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,4 +302,3 @@ class PaletteSwatch extends StatelessWidget { | |
return swatch; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# This script checks to make sure that each of the plugins *could* be published. | ||
# It doesn't actually publish anything. | ||
|
||
# So that users can run this script from anywhere and it will work as expected. | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" | ||
REPO_DIR="$(dirname "$SCRIPT_DIR")" | ||
|
||
source "$SCRIPT_DIR/common.sh" | ||
|
||
function check_publish() { | ||
local failures=() | ||
for package_name in "$@"; do | ||
local dir="$REPO_DIR/packages/$package_name" | ||
echo "Checking that $package_name can be published." | ||
if (cd "$dir" && pub publish --dry-run > /dev/null); then | ||
echo "Package $package_name is able to be published." | ||
else | ||
error "Unable to publish $package_name" | ||
failures=("${failures[@]}" "$package_name") | ||
fi | ||
done | ||
if [[ "${#failures[@]}" != 0 ]]; then | ||
error "FAIL: The following ${#failures[@]} package(s) failed the publishing check:" | ||
for failure in "${failures[@]}"; do | ||
error "$failure" | ||
done | ||
fi | ||
return "${#failures[@]}" | ||
} | ||
|
||
# Sets CHANGED_PACKAGE_LIST | ||
check_changed_packages | ||
|
||
if [[ "${#CHANGED_PACKAGE_LIST[@]}" != 0 ]]; then | ||
check_publish "${CHANGED_PACKAGE_LIST[@]}" | ||
fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update any documentation (such as contributing.md) to point to the existence of such a script? or is it forced by Cirrus?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not forced by Cirrus. I'll add a line in CONTRIBUTING.md