This repository was archived by the owner on Dec 6, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
77 additions
and
0 deletions.
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,17 @@ | ||
language: node_js | ||
node_js: | ||
- 0.10 | ||
|
||
env: | ||
matrix: | ||
- JOB=unit-stable | ||
- JOB=unit-dev | ||
|
||
before_script: | ||
- ./scripts/travis/setup.sh | ||
|
||
script: | ||
- ./scripts/travis/build.sh | ||
|
||
after_success: | ||
- ./scripts/travis/benchmark.sh |
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,23 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ -n "$DART_SDK" ]; then | ||
DARTSDK=$DART_SDK | ||
else | ||
echo "sdk=== $DARTSDK" | ||
DART=`which dart|cat` # pipe to cat to ignore the exit code | ||
DARTSDK=`which dart | sed -e 's/\/bin\/dart$/\//'` | ||
if [ -z "$DARTSDK" ]; then | ||
DARTSDK="`pwd`/dart-sdk" | ||
fi | ||
fi | ||
|
||
export DART_SDK="$DARTSDK" | ||
export DART=${DART:-"$DARTSDK/bin/dart"} | ||
export PUB=${PUB:-"$DARTSDK/bin/pub"} | ||
export DARTANALYZER=${DARTANALYZER:-"$DARTSDK/bin/dartanalyzer"} | ||
export DARTDOC=${DARTDOC:-"$DARTSDK/bin/dartdoc"} | ||
|
||
|
||
export DART_FLAGS='--enable_type_checks --enable_asserts' | ||
export PATH=$PATH:$DARTSDK/bin |
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,5 @@ | ||
#!/bin/bash | ||
set -e | ||
. ./scripts/env.sh | ||
|
||
./run-benchmarks.sh |
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,5 @@ | ||
#!/bin/bash | ||
set -e | ||
. ./scripts/env.sh | ||
|
||
./run-tests.sh |
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,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
case $( uname -s ) in | ||
Linux) | ||
DART_SDK_ZIP=dartsdk-linux-x64-release.zip | ||
;; | ||
Darwin) | ||
DART_SDK_ZIP=dartsdk-macos-x64-release.zip | ||
;; | ||
esac | ||
|
||
CHANNEL=`echo $JOB | cut -f 2 -d -` | ||
echo Fetch Dart channel: $CHANNEL | ||
|
||
echo http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk/$DART_SDK_ZIP | ||
curl http://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/latest/sdk/$DART_SDK_ZIP > $DART_SDK_ZIP | ||
echo Fetched new dart version $(unzip -p $DART_SDK_ZIP dart-sdk/version) | ||
rm -rf dart-sdk | ||
unzip $DART_SDK_ZIP > /dev/null | ||
rm $DART_SDK_ZIP | ||
|
||
echo ============================================================================= | ||
. ./scripts/env.sh | ||
$DART --version | ||
$PUB install |