forked from dart-lang/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (79 loc) · 2.77 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
language: dart
sudo: required
dist: trusty
dart:
- dev
cache:
directories:
- $HOME/.npm
- $HOME/.nvm
- $HOME/.pub-cache/hosted
- pkg/dev_compiler/node_modules
addons:
firefox: latest
before_install:
# g++4.8.1 setup
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
# clang 3.4 setup
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo apt-get update -qq
# g++4.8.1 install
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
# clang 3.4 install
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
- if [ "$CXX" ]; then $CXX --version ; fi
# Chrome install
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- wget https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- /usr/bin/google-chrome --version
- export CHROME_BIN=/usr/bin/google-chrome
- /usr/bin/google-chrome-unstable --version
- export CHROME_CANARY_BIN=/usr/bin/google-chrome-unstable
# Install Depot Tools
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- export PATH=`pwd`/depot_tools:"$PATH"
# Checkout everything if we're building the SDK
- cd ..
- 'gclient config --spec=''solutions = [ { "name": "sdk", "url": "[email protected]:dart-lang/sdk.git", "deps_file": "DEPS", "managed": False } ]'''
- gclient sync
- cd sdk
# If a C++ compiler is set, build the SDK - else use the preinstalled SDK instead.
- if [ "$CXX" ]; then ./tools/build.py -m release create_sdk ; fi
- if [ "$CXX" ]; then export PATH=`pwd`/out/ReleaseX64/dart-sdk/bin:"$PATH" ; fi
- dart --version
# DDC setup
- cd pkg/dev_compiler
- pub global activate dart_coveralls
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
# Empty to suppress default pub get behavior
before_script:
# Node modules used by DDC
- nvm install 5.5.0
- npm install
script:
# Run DDC tests
- if [[ -z "$TEST" ]]; then ./tool/presubmit.sh ; fi
- if [[ "$TEST" == coverage ]]; then ./tool/build_sdk.sh && ./tool/coverage.sh ; fi
- if [[ "$TEST" == node ]]; then ./tool/node_test.sh ; fi
env:
- ANALYZER=master
- ANALYZER=master DDC_BROWSERS=Firefox
- ANALYZER=master DDC_BROWSERS=ChromeCanaryTravis
- ANALYZER=master CXX=g++
- ANALYZER=master CXX=clang++
- TEST=coverage
matrix:
allow_failures:
- env: TEST=node
- env: ANALYZER=master DDC_BROWSERS=Firefox
- env: ANALYZER=master CXX=g++
notifications:
email:
recipients:
on_failure: change