File tree Expand file tree Collapse file tree 6 files changed +59
-39
lines changed Expand file tree Collapse file tree 6 files changed +59
-39
lines changed Original file line number Diff line number Diff line change 28
28
- env : " MODE=browserstack_required"
29
29
- env : " MODE=travis_required"
30
30
- stage : Deploy
31
- script : ./scripts/ci/publish-artifacts.sh
32
- env : " MODE=release"
33
-
31
+ env : " DEPLOY_MODE=build-artifacts"
32
+ - env : " DEPLOY_MODE=docs-content"
33
+ - env : " DEPLOY_MODE=screenshot-tool"
34
+ - env : " DEPLOY_MODE=dashboard"
34
35
env :
35
36
global :
36
37
- LOGS_DIR=/tmp/angular-material2-build/logs
@@ -51,7 +52,7 @@ before_script:
51
52
- mkdir -p $LOGS_DIR
52
53
53
54
script :
54
- - ./scripts/ci/build-and-test .sh
55
+ - ./scripts/ci/travis-script .sh
55
56
56
57
cache :
57
58
directories :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Script that runs in the deploy stage after the testing stage of Travis passed.
4
+ # Build artifacts and docs content will be published to different repositories.
5
+
6
+ # The script should immediately exit if any command in the script fails.
7
+ set -e
8
+
9
+ # Go to the project root directory
10
+ cd $( dirname $0 ) /../..
11
+
12
+ echo " "
13
+ echo " Starting the deployment script. Running mode: ${DEPLOY_MODE} "
14
+ echo " "
15
+
16
+ if [[ " ${DEPLOY_MODE} " == " build-artifacts" ]]; then
17
+ ./scripts/deploy/publish-build-artifacts.sh
18
+ fi
19
+
20
+ if [[ " ${DEPLOY_MODE} " == " docs-content" ]]; then
21
+ ./scripts/deploy/publish-docs-content.sh
22
+ fi
23
+
24
+ if [[ " ${DEPLOY_MODE} " == " screenshot-tool" ]]; then
25
+ ./scripts/deploy/deploy-screenshot-functions.sh
26
+ fi
27
+
28
+ if [[ " ${DEPLOY_MODE} " == " dashboard" ]]; then
29
+ ./scripts/deploy/deploy-dashboard.sh
30
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Script that runs in every Travis CI container. The script is responsible for delegating
4
+ # to the different scripts that should run for specific Travis jobs in a build stage.
5
+
6
+ # The script should immediately exit if any command in the script fails.
7
+ set -e
8
+
9
+ # Go to project directory
10
+ cd $( dirname $0 ) /../..
11
+
12
+ if [[ -z " $TRAVIS " ]]; then
13
+ echo " This script can only run inside of Travis build jobs."
14
+ exit 1
15
+ fi
16
+
17
+ if [[ " ${MODE} " ]]; then
18
+ ./scripts/ci/travis-testing.sh
19
+ elif [[ " ${DEPLOY_MODE} " ]]; then
20
+ ./scripts/ci/travis-deploy.sh
21
+ fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Script that runs in the testing build stage of Travis and is responsible for testing
4
+ # the project in different Travis jobs of the current build stage.
5
+
3
6
# The script should immediately exit if any command in the script fails.
4
7
set -e
5
8
You can’t perform that action at this time.
0 commit comments