mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 07:08:10 +08:00
[pigeon] Got the tests running in CI. (#198)
This commit is contained in:
24
.cirrus.yml
24
.cirrus.yml
@ -53,3 +53,27 @@ task:
|
||||
build_script:
|
||||
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
|
||||
- ./script/incremental_build.sh build-examples --ipa
|
||||
|
||||
task:
|
||||
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
|
||||
name: local_tests
|
||||
osx_instance:
|
||||
image: high-sierra-xcode-9.4.1
|
||||
env:
|
||||
PATH: $PATH:/usr/local/bin
|
||||
setup_script:
|
||||
- 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
|
||||
- mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
|
||||
- export PATH=`pwd`/homebrew/bin:$PATH
|
||||
- brew install java
|
||||
- brew install clang-format
|
||||
build_script:
|
||||
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
|
||||
- export PATH=`pwd`/homebrew/bin:$PATH
|
||||
- export PATH=`pwd`/homebrew/opt/openjdk/bin:$PATH
|
||||
- ./script/local_tests.sh
|
||||
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter.app</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>App</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>8.0</string>
|
||||
</dict>
|
||||
</plist>
|
@ -0,0 +1,2 @@
|
||||
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
|
||||
#include "Generated.xcconfig"
|
@ -0,0 +1,2 @@
|
||||
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
|
||||
#include "Generated.xcconfig"
|
@ -6,7 +6,7 @@
|
||||
###############################################################################
|
||||
|
||||
# exit when any command fails
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
###############################################################################
|
||||
# Variables
|
||||
@ -124,7 +124,7 @@ clang-format -i platform_tests/ios_unit_tests/ios/Runner/messages.h
|
||||
clang-format -i platform_tests/ios_unit_tests/ios/Runner/messages.m
|
||||
pushd $PWD
|
||||
cd platform_tests/ios_unit_tests
|
||||
flutter build ios
|
||||
flutter build ios --simulator
|
||||
cd ios
|
||||
xcodebuild \
|
||||
-workspace Runner.xcworkspace \
|
||||
|
22
script/local_tests.sh
Executable file
22
script/local_tests.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
||||
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
||||
TEST_SCRIPT_NAME="run_tests.sh"
|
||||
|
||||
source "$SCRIPT_DIR/common.sh"
|
||||
|
||||
check_changed_packages
|
||||
|
||||
for PACKAGE in $CHANGED_PACKAGE_LIST; do
|
||||
PACKAGE_PATH=./packages/$PACKAGE
|
||||
TEST_SCRIPT=$PACKAGE_PATH/$TEST_SCRIPT_NAME
|
||||
if [ -e $TEST_SCRIPT ]; then
|
||||
pushd $PWD
|
||||
cd $PACKAGE_PATH
|
||||
ls
|
||||
./$TEST_SCRIPT_NAME
|
||||
popd
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user