File tree Expand file tree Collapse file tree 4 files changed +45
-46
lines changed Expand file tree Collapse file tree 4 files changed +45
-46
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,19 @@ branches:
14
14
only :
15
15
- master
16
16
17
+ jobs :
18
+ include :
19
+ # Lint runs as a main job. Workaround for https://github.com/travis-ci/travis-ci/issues/7777
20
+ - env : " MODE=e2e"
21
+ - env : " MODE=aot"
22
+ - env : " MODE=payload"
23
+ - env : " MODE=closure-compiler"
24
+ - env : " MODE=saucelabs_required"
25
+ - env : " MODE=browserstack_required"
26
+ - stage : Deploy
27
+ script : ./scripts/ci/publish-artifacts.sh
28
+ env : " MODE=release"
29
+
17
30
env :
18
31
global :
19
32
- LOGS_DIR=/tmp/angular-material2-build/logs
22
35
- BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB
23
36
- BROWSER_PROVIDER_READY_FILE=/tmp/angular-material2-build/readyfile
24
37
- BROWSER_PROVIDER_ERROR_FILE=/tmp/angular-material2-build/errorfile
25
-
26
38
matrix :
27
- # Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
28
- - MODE=lint
29
- - MODE=aot
30
- - MODE=closure-compiler
31
- - MODE=payload
32
- - MODE=e2e
33
- - MODE=saucelabs_required
34
- - MODE=browserstack_required
35
-
36
- matrix :
37
- fast_finish : true
38
- allow_failures :
39
- - env : " MODE=saucelabs_optional"
40
- - env : " MODE=browserstack_optional"
39
+ # Workaround for https://github.com/travis-ci/travis-ci/issues/7777. Running lint as main job.
40
+ - MODE=lint
41
41
42
42
before_install :
43
43
- source ./scripts/ci/env.sh
@@ -51,9 +51,6 @@ before_script:
51
51
script :
52
52
- ./scripts/ci/build-and-test.sh
53
53
54
- after_success :
55
- - ./scripts/ci/after-success.sh
56
-
57
54
cache :
58
55
directories :
59
56
- node_modules
Original file line number Diff line number Diff line change 111
111
"selenium-webdriver" : " ^3.4.0" ,
112
112
"sorcery" : " ^0.10.0" ,
113
113
"stylelint" : " ^7.10.1" ,
114
- "travis-after-modes" : " ^0.0.7" ,
115
114
"ts-node" : " ^3.0.4" ,
116
115
"tslint" : " ^5.2.0" ,
117
116
"typescript" : " ~2.2.1" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Script that runs after the testing stage of Travis passed.
4
+ # Build artifacts and docs content will be published to different repositories.
5
+
6
+ # Go to the project root directory
7
+ cd $( dirname $0 ) /../..
8
+
9
+ if [[ " $TRAVIS_PULL_REQUEST " != " false" ]]; then
10
+ echo " Build artifacts and docs content will only be deployed in Travis push builds."
11
+ exit 0;
12
+ fi
13
+
14
+ echo " Starting to publish the build artifacts and docs content..."
15
+ echo " "
16
+
17
+ # Build Material, CDK and the docs before publishing artifacts
18
+ $( npm bin) /gulp material:build-release:clean
19
+ $( npm bin) /gulp material-examples:build-release
20
+ $( npm bin) /gulp docs
21
+
22
+ # Run publishing of artifacts in parallel.
23
+ # This is possible because the output has been built before.
24
+ ./scripts/release/publish-build-artifacts.sh --no-build &
25
+ ./scripts/release/publish-docs-content.sh --no-build &
26
+
27
+ # Deploy the screenshot functions for each push build.
28
+ ./scripts/release/deploy-screenshot-functions.sh &
29
+
30
+ wait
You can’t perform that action at this time.
0 commit comments