Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2f6c3767
Commit
2f6c3767
authored
Nov 07, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run unit tests on Travis
parent
2ed11343
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
1 deletion
+52
-1
.travis.yml
.travis.yml
+7
-0
download_tester.py
travis/download_tester.py
+40
-0
setup.sh
travis/setup.sh
+4
-1
test.sh
travis/test.sh
+1
-0
No files found.
.travis.yml
View file @
2f6c3767
...
...
@@ -2,6 +2,13 @@ language: dart
sudo
:
false
dart
:
-
stable
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
packages
:
-
gcc-4.8
-
g++-4.8
before_script
:
-
./travis/setup.sh
script
:
...
...
travis/download_tester.py
0 → 100755
View file @
2f6c3767
#!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import
argparse
import
os
import
subprocess
import
sys
def
download
(
base_url
,
out_dir
,
name
):
url
=
'
%
s/
%
s'
%
(
base_url
,
name
)
dst
=
os
.
path
.
join
(
out_dir
,
name
)
print
'Downloading'
,
url
subprocess
.
call
([
'curl'
,
'-o'
,
dst
,
url
])
def
main
():
parser
=
argparse
.
ArgumentParser
(
description
=
'Downloads test artifacts from Google storage'
)
parser
.
add_argument
(
'revision_file'
)
parser
.
add_argument
(
'out_dir'
)
args
=
parser
.
parse_args
()
out_dir
=
args
.
out_dir
if
not
os
.
path
.
exists
(
out_dir
):
os
.
makedirs
(
out_dir
)
revision
=
None
with
open
(
args
.
revision_file
,
'r'
)
as
f
:
revision
=
f
.
read
()
base_url
=
'https://storage.googleapis.com/mojo/sky/shell/linux-x64/
%
s'
%
revision
download
(
base_url
,
out_dir
,
'sky_shell'
)
download
(
base_url
,
out_dir
,
'icudtl.dat'
)
download
(
base_url
,
out_dir
,
'sky_snapshot'
)
subprocess
.
call
([
'chmod'
,
'a+x'
,
os
.
path
.
join
(
out_dir
,
'sky_shell'
)])
subprocess
.
call
([
'chmod'
,
'a+x'
,
os
.
path
.
join
(
out_dir
,
'sky_snapshot'
)])
if
__name__
==
'__main__'
:
sys
.
exit
(
main
())
travis/setup.sh
View file @
2f6c3767
#!/bin/bash
set
-ex
pub global activate tuneup
(
cd
packages/cassowary
;
pub get
)
(
cd
packages/newton
;
pub get
)
(
cd
packages/flutter_tools
;
pub get
)
(
cd
packages/unit
;
pub get
)
pub global activate tuneup
./travis/download_tester.py packages/unit/packages/sky_engine/REVISION bin/cache/travis/out/Debug
travis/test.sh
View file @
2f6c3767
...
...
@@ -4,3 +4,4 @@ set -ex
(
cd
packages/cassowary
;
pub global run tuneup check
;
pub run
test
-j1
)
(
cd
packages/newton
;
pub global run tuneup check
;
pub run
test
-j1
)
(
cd
packages/flutter_tools
;
pub global run tuneup check
;
pub run
test
-j1
)
./dev/run_tests
--engine-dir
bin/cache/travis
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment