提交 02bac7a2 编写于 作者: H Hixie

Have Travis check the build for Dart errors.

上级 980f8744
language: cpp
language: dart
dart: stable
sudo: false
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
before_script:
- ./travis/setup.sh
script:
......
......@@ -9,5 +9,5 @@ class ColorFilter extends _ColorFilter {
// This is the only ColorFilter type we need, but use a named constructor so
// we can add more in the future.
ColorFilter.mode(Color color, TransferMode transferMode)
: super(color, transferMode) {}
: super(color, transferMode);
}
echo "Analyzing dart:ui library..."
RESULTS=`dartanalyzer --ignore-unrecognized-flags --supermixin --enable-strict-call-checks --enable_type_checks --strong --package-warnings --fatal-warnings --strong-hints --fatal-hints --lints out/Debug/gen/sky/bindings/dart_ui.dart 2>&1 | grep -v "\[error\] Native functions can only be declared in the SDK and code that is loaded through native extensions" | grep -Ev "\[hint\] The function '.+' is not used" | grep -v "\[warning\] Undefined name 'main'" | grep -Ev "[0-9]+ errors found." | grep -v "Analyzing \[out/Debug/gen/sky/bindings/dart_ui.dart\]\.\.\."`
echo "$RESULTS"
if [ -n "$RESULTS" ]; then exit 1; fi
#!/bin/bash
set -ex
# Smoke test sky_shell.
./out/sky_shell --help
PATH="$HOME/depot_tools:$PATH"
# Run the tests.
pushd sky/unit
SKY_SHELL=../../out/sky_shell ../../third_party/dart-sdk/dart-sdk/bin/pub run sky_tools:sky_test -j 1
popd
# Analyze the code.
pushd sky/packages/workbench
../../../third_party/dart-sdk/dart-sdk/bin/pub get
popd
pushd sky/packages/sky
../../tools/skyanalyzer --congratulate
popd
# Generate docs.
./sky/tools/skydoc.py
(cd ..; gclient sync)
sky/tools/gn --debug
ninja -C out/Debug generate_dart_ui
travis/analyze.sh
solutions = [{
"name" : "..",
"url" : "https://github.com/flutter/engine.git",
"deps_file" : "DEPS",
"managed" : False,
"safesync_url": "",
}]
target_os = ['linux']
#!/bin/bash
set -ex
./tools/dart/update.py
(cd; git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git)
(cd sky/unit; ../../third_party/dart-sdk/dart-sdk/bin/pub get)
(cd sky/packages/sky; ../../../third_party/dart-sdk/dart-sdk/bin/pub get)
cd ..
mv engine src
mkdir engine
mv src engine
cd engine/src
./sky/tools/download_sky_shell.py sky/unit/packages/sky_engine/REVISION out
mv travis/gclient ../.gclient
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册