提交 5cfb81a5 编写于 作者: A Adam Barth

Improve Travis reliability

Previously, we were using too many parallel instances of $CXX, which caused
crashes. Now we use -j 2, which seems to work. Also, use fewer processes during
testing.
上级 1fcc5071
language: dart
language: cpp
sudo: required
before_install:
- ./travis/before_install.sh
......
......@@ -29,7 +29,7 @@ def to_gn_args(args):
gn_args = {}
gn_args["is_debug"] = args.debug
gn_args["is_clang"] = args.target_os not in ['android']
gn_args["is_clang"] = args.clang and args.target_os not in ['android']
if args.target_os == 'android':
gn_args["target_os"] = "android"
......@@ -79,6 +79,9 @@ def main():
parser.add_argument('--goma', default=True, action='store_true')
parser.add_argument('--no-goma', dest='goma', action='store_false')
parser.add_argument('--clang', default=True, action='store_true')
parser.add_argument('--no-clang', dest='clang', action='store_false')
args = parser.parse_args()
command = ['gn', 'gen', '--check']
......
......@@ -3,5 +3,5 @@ set -ex
# Linux Debug
./sky/tools/gn --debug
ninja -j 8 -C out/Debug
./sky/tools/test_sky --debug
ninja -j 2 -C out/Debug
./sky/tools/test_sky --debug --child-processes=1
......@@ -5,4 +5,4 @@ solutions = [{
"managed" : False,
"safesync_url": "",
}]
target_os = ['linux']
target_os = ['linux', 'android']
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册