Skip to content

Commit 86b122f

Browse files
committed
minimal ci
1 parent 8d01f26 commit 86b122f

24 files changed

Lines changed: 566 additions & 197 deletions

.travis.yml

Lines changed: 164 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -3,132 +3,189 @@ sudo: false
33
node_js:
44
- '5.4.1'
55

6+
addons:
7+
# firefox: "38.0"
8+
apt:
9+
sources:
10+
# needed to install g++ that is used by npms's native modules
11+
- ubuntu-toolchain-r-test
12+
packages:
13+
- g++-4.8
14+
615
branches:
716
except:
817
- g3_v2_0
918

1019
cache:
1120
directories:
12-
- $HOME/.pub-cache
13-
- $HOME/.chrome/chromium
21+
- ./node_modules
22+
- ./.chrome/chromium
23+
# - $HOME/.pub-cache
1424

15-
before_cache:
16-
# Undo the pollution of the typescript_next build before the cache is primed for future use
17-
- if [[ "$MODE" == "typescript_next" ]]; then npm install typescript; fi
25+
26+
#before_cache:
27+
# # Undo the pollution of the typescript_next build before the cache is primed for future use
28+
# - if [[ "$MODE" == "typescript_next" ]]; then npm install typescript; fi
1829

1930
env:
2031
global:
21-
# Use newer verison of GCC to that is required to compile native npm modules for Node v4+ on Ubuntu Precise
22-
# more info: https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
23-
- CXX=g++-4.8
24-
- KARMA_DART_BROWSERS=DartiumWithWebPlatform
25-
# No sandbox mode is needed for Chromium in Travis, it crashes otherwise: https://sites.google.com/a/chromium.org/chromedriver/help/chrome-doesn-t-start
26-
- KARMA_JS_BROWSERS=ChromeNoSandbox
27-
- E2E_BROWSERS=ChromeOnTravis
28-
- LOGS_DIR=/tmp/angular-build/logs
29-
- SAUCE_USERNAME=angular-ci
30-
- SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
31-
- BROWSER_STACK_USERNAME=angularteam1
32-
- BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB
33-
- ARCH=linux-x64
34-
- DART_DEV_VERSION=latest
35-
- DART_STABLE_VERSION=latest
36-
- DART_CHANNEL=stable
37-
- DART_VERSION=$DART_STABLE_VERSION
38-
# Token for tsd to increase github rate limit
39-
# See https://github.com/DefinitelyTyped/tsd#tsdrc
40-
# This does not use http://docs.travis-ci.com/user/environment-variables/#Secure-Variables
41-
# because those are not visible for pull requests, and those should also be reliable.
42-
# This SSO token belongs to github account angular-github-ratelimit-token which has no access
43-
# (password is in Valentine)
44-
- TSDRC='{"token":"ef474500309daea53d5991b3079159a29520a40b"}'
45-
# GITHUB_TOKEN_ANGULAR
46-
- secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
32+
# - KARMA_JS_BROWSERS=ChromeNoSandbox
33+
# - E2E_BROWSERS=ChromeOnTravis
34+
# - LOGS_DIR=/tmp/angular-build/logs
35+
# - ARCH=linux-x64
36+
4737
matrix:
4838
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
49-
- MODE=dart
50-
- MODE=dart DART_CHANNEL=dev
51-
- MODE=saucelabs_required
52-
- MODE=browserstack_required
53-
- MODE=saucelabs_optional
54-
- MODE=browserstack_optional
55-
- MODE=dart_ddc
56-
- MODE=js
57-
- MODE=router
58-
- MODE=build_only
59-
- MODE=typescript_next
60-
- MODE=lint
61-
62-
matrix:
63-
allow_failures:
64-
- env: "MODE=saucelabs_optional"
65-
- env: "MODE=browserstack_optional"
39+
- CI_MODE=js
40+
- CI_MODE=build_only
41+
- CI_MODE=saucelabs_required
42+
- CI_MODE=browserstack_required
6643

67-
addons:
68-
firefox: "38.0"
69-
apt:
70-
sources:
71-
- ubuntu-toolchain-r-test
72-
packages:
73-
- g++-4.8
44+
#matrix:
45+
# allow_failures:
46+
# - env: "MODE=saucelabs_optional"
47+
# - env: "MODE=browserstack_optional"
7448

75-
before_install:
76-
- node tools/analytics/build-analytics start ci job
77-
- node tools/analytics/build-analytics start ci before_install
78-
- echo ${TSDRC} > .tsdrc
79-
- export CHROME_BIN=$HOME/.chrome/chromium/chrome-linux/chrome
80-
- export DISPLAY=:99.0
81-
- export GIT_SHA=$(git rev-parse HEAD)
82-
- ./scripts/ci/init_android.sh
83-
- sh -e /etc/init.d/xvfb start
84-
# Use a separate SauseLabs account for upstream/master builds in order for Sauce to create a badge representing the status of just upstream/master
85-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && SAUCE_USERNAME="angular2-ci" && SAUCE_ACCESS_KEY="693ebc16208a-0b5b-1614-8d66-a2662f4e" || true'
86-
- node tools/analytics/build-analytics success ci before_install
8749

8850
install:
89-
- node tools/analytics/build-analytics start ci install
90-
# Install version of npm that we are locked against
91-
- npm install -g npm@3.5.3
92-
# Install version of Chromium that we are locked against
93-
- ./scripts/ci/install_chromium.sh
94-
# Install version of Dart based on the matrix build variables
95-
- ./scripts/ci/install_dart.sh ${DART_CHANNEL} ${DART_VERSION} ${ARCH}
96-
# Print the size of caches to ease debugging
97-
- du -sh ./node_modules || true
98-
# Install npm dependecies
99-
# check-node-modules will exit(1) if we don't need to install
100-
# we need to manually kick off the postinstall script if check-node-modules exit(0)s
101-
- node tools/npm/check-node-modules --purge && npm install || npm run postinstall
102-
- node tools/analytics/build-analytics success ci install
51+
- ./scripts/ci-lite/install.sh
10352

10453
before_script:
105-
- node tools/analytics/build-analytics start ci before_script
106-
- mkdir -p $LOGS_DIR
107-
- ./scripts/ci/presubmit-queue-setup.sh
108-
- node tools/analytics/build-analytics success ci before_script
54+
10955

11056
script:
111-
- node tools/analytics/build-analytics start ci script
112-
- ./scripts/ci/build_and_test.sh ${MODE}
113-
- node tools/analytics/build-analytics success ci script
57+
- ./scripts/ci-lite/build.sh && ./scripts/ci-lite/test.sh
11458

11559
after_script:
116-
- node tools/analytics/build-analytics start ci after_script
117-
- ./scripts/ci/print-logs.sh
118-
- ./scripts/ci/after-script.sh
119-
- ./scripts/publish/publish-build-artifacts.sh
120-
- node tools/analytics/build-analytics success ci after_script
121-
- tools/analytics/build-analytics $TRAVIS_TEST_RESULT ci job
122-
123-
notifications:
124-
webhooks:
125-
urls:
126-
- https://webhooks.gitter.im/e/1ef62e23078036f9cee4
127-
# trigger Buildtime Trend Service to parse Travis CI log
128-
- https://buildtimetrend.herokuapp.com/travis
129-
- http://104.197.9.155:8484/hubot/travis/activity
130-
on_success: always # options: [always|never|change] default: always
131-
on_failure: always # options: [always|never|change] default: always
132-
on_start: never # default: never
133-
slack:
134-
secure: EP4MzZ8JMyNQJ4S3cd5LEPWSMjC7ZRdzt3veelDiOeorJ6GwZfCDHncR+4BahDzQAuqyE/yNpZqaLbwRWloDi15qIUsm09vgl/1IyNky1Sqc6lEknhzIXpWSalo4/T9ZP8w870EoDvM/UO+LCV99R3wS8Nm9o99eLoWVb2HIUu0=
60+
- ./scripts/ci-lite/cleanup.sh
61+
62+
63+
#branches:
64+
# except:
65+
# - g3_v2_0
66+
#
67+
#cache:
68+
# directories:
69+
# - $HOME/.pub-cache
70+
# - $HOME/.chrome/chromium
71+
#
72+
#before_cache:
73+
# # Undo the pollution of the typescript_next build before the cache is primed for future use
74+
# - if [[ "$MODE" == "typescript_next" ]]; then npm install typescript; fi
75+
#
76+
#env:
77+
# global:
78+
# # Use newer verison of GCC to that is required to compile native npm modules for Node v4+ on Ubuntu Precise
79+
# # more info: https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
80+
# - CXX=g++-4.8
81+
# - KARMA_DART_BROWSERS=DartiumWithWebPlatform
82+
# # No sandbox mode is needed for Chromium in Travis, it crashes otherwise: https://sites.google.com/a/chromium.org/chromedriver/help/chrome-doesn-t-start
83+
# - KARMA_JS_BROWSERS=ChromeNoSandbox
84+
# - E2E_BROWSERS=ChromeOnTravis
85+
# - LOGS_DIR=/tmp/angular-build/logs
86+
# - SAUCE_USERNAME=angular-ci
87+
# - SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
88+
# - BROWSER_STACK_USERNAME=angularteam1
89+
# - BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB
90+
# - ARCH=linux-x64
91+
# - DART_DEV_VERSION=latest
92+
# - DART_STABLE_VERSION=latest
93+
# - DART_CHANNEL=stable
94+
# - DART_VERSION=$DART_STABLE_VERSION
95+
# # Token for tsd to increase github rate limit
96+
# # See https://github.com/DefinitelyTyped/tsd#tsdrc
97+
# # This does not use http://docs.travis-ci.com/user/environment-variables/#Secure-Variables
98+
# # because those are not visible for pull requests, and those should also be reliable.
99+
# # This SSO token belongs to github account angular-github-ratelimit-token which has no access
100+
# # (password is in Valentine)
101+
# - TSDRC='{"token":"ef474500309daea53d5991b3079159a29520a40b"}'
102+
# # GITHUB_TOKEN_ANGULAR
103+
# - secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
104+
# matrix:
105+
# # Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
106+
# - MODE=dart
107+
# - MODE=dart DART_CHANNEL=dev
108+
# - MODE=saucelabs_required
109+
# - MODE=browserstack_required
110+
# - MODE=saucelabs_optional
111+
# - MODE=browserstack_optional
112+
# - MODE=dart_ddc
113+
# - MODE=js
114+
# - MODE=router
115+
# - MODE=build_only
116+
# - MODE=typescript_next
117+
# - MODE=lint
118+
#
119+
#matrix:
120+
# allow_failures:
121+
# - env: "MODE=saucelabs_optional"
122+
# - env: "MODE=browserstack_optional"
123+
#
124+
#addons:
125+
# firefox: "38.0"
126+
# apt:
127+
# sources:
128+
# - ubuntu-toolchain-r-test
129+
# packages:
130+
# - g++-4.8
131+
#
132+
#before_install:
133+
# - node tools/analytics/build-analytics start ci job
134+
# - node tools/analytics/build-analytics start ci before_install
135+
# - echo ${TSDRC} > .tsdrc
136+
# - export CHROME_BIN=$HOME/.chrome/chromium/chrome-linux/chrome
137+
# - export DISPLAY=:99.0
138+
# - export GIT_SHA=$(git rev-parse HEAD)
139+
# - ./scripts/ci/init_android.sh
140+
# - sh -e /etc/init.d/xvfb start
141+
# # Use a separate SauseLabs account for upstream/master builds in order for Sauce to create a badge representing the status of just upstream/master
142+
# - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && SAUCE_USERNAME="angular2-ci" && SAUCE_ACCESS_KEY="693ebc16208a-0b5b-1614-8d66-a2662f4e" || true'
143+
# - node tools/analytics/build-analytics success ci before_install
144+
#
145+
#install:
146+
# - node tools/analytics/build-analytics start ci install
147+
# # Install version of npm that we are locked against
148+
# - npm install -g npm@3.5.3
149+
# # Install version of Chromium that we are locked against
150+
# - ./scripts/ci/install_chromium.sh
151+
# # Install version of Dart based on the matrix build variables
152+
# - ./scripts/ci/install_dart.sh ${DART_CHANNEL} ${DART_VERSION} ${ARCH}
153+
# # Print the size of caches to ease debugging
154+
# - du -sh ./node_modules || true
155+
# # Install npm dependecies
156+
# # check-node-modules will exit(1) if we don't need to install
157+
# # we need to manually kick off the postinstall script if check-node-modules exit(0)s
158+
# - node tools/npm/check-node-modules --purge && npm install || npm run postinstall
159+
# - node tools/analytics/build-analytics success ci install
160+
#
161+
#before_script:
162+
# - node tools/analytics/build-analytics start ci before_script
163+
# - mkdir -p $LOGS_DIR
164+
# - ./scripts/ci/presubmit-queue-setup.sh
165+
# - node tools/analytics/build-analytics success ci before_script
166+
#
167+
#script:
168+
# - node tools/analytics/build-analytics start ci script
169+
# - ./scripts/ci/build_and_test.sh ${MODE}
170+
# - node tools/analytics/build-analytics success ci script
171+
#
172+
#after_script:
173+
# - node tools/analytics/build-analytics start ci after_script
174+
# - ./scripts/ci/print-logs.sh
175+
# - ./scripts/ci/after-script.sh
176+
# - ./scripts/publish/publish-build-artifacts.sh
177+
# - node tools/analytics/build-analytics success ci after_script
178+
# - tools/analytics/build-analytics $TRAVIS_TEST_RESULT ci job
179+
#
180+
#notifications:
181+
# webhooks:
182+
# urls:
183+
# - https://webhooks.gitter.im/e/1ef62e23078036f9cee4
184+
# # trigger Buildtime Trend Service to parse Travis CI log
185+
# - https://buildtimetrend.herokuapp.com/travis
186+
# - http://104.197.9.155:8484/hubot/travis/activity
187+
# on_success: always # options: [always|never|change] default: always
188+
# on_failure: always # options: [always|never|change] default: always
189+
# on_start: never # default: never
190+
# slack:
191+
# secure: EP4MzZ8JMyNQJ4S3cd5LEPWSMjC7ZRdzt3veelDiOeorJ6GwZfCDHncR+4BahDzQAuqyE/yNpZqaLbwRWloDi15qIUsm09vgl/1IyNky1Sqc6lEknhzIXpWSalo4/T9ZP8w870EoDvM/UO+LCV99R3wS8Nm9o99eLoWVb2HIUu0=

browser-providers.conf.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var customLaunchers = {
3838
'SL_CHROME': {
3939
base: 'SauceLabs',
4040
browserName: 'chrome',
41-
version: '46'
41+
version: '50'
4242
},
4343
'SL_CHROMEBETA': {
4444
base: 'SauceLabs',
@@ -53,7 +53,7 @@ var customLaunchers = {
5353
'SL_FIREFOX': {
5454
base: 'SauceLabs',
5555
browserName: 'firefox',
56-
version: '42'
56+
version: '45'
5757
},
5858
'SL_FIREFOXBETA': {
5959
base: 'SauceLabs',
@@ -299,12 +299,7 @@ module.exports = {
299299
customLaunchers: customLaunchers,
300300
sauceAliases: sauceAliases,
301301
browserstackAliases: browserstackAliases
302-
}
303-
304-
if (process.env.TRAVIS) {
305-
process.env.SAUCE_ACCESS_KEY = process.env.SAUCE_ACCESS_KEY.split('').reverse().join('');
306-
process.env.BROWSER_STACK_ACCESS_KEY = process.env.BROWSER_STACK_ACCESS_KEY.split('').reverse().join('');
307-
}
302+
};
308303

309304
function buildConfiguration(type, target, required) {
310305
return Object.keys(CIconfiguration)

0 commit comments

Comments
 (0)