You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> When using custom scripts they should be executable (for example, using `chmod +x`) and contain a valid shebang line such as `/usr/bin/env sh`, `/usr/bin/env ruby`, or `/usr/bin/env python`.
53
+
> When using custom scripts, they should be executable (for example, using `chmod +x`) and contain a valid shebang line such as `/usr/bin/env sh`, `/usr/bin/env ruby`, or `/usr/bin/env python`.
54
54
55
55
You can also provide multiple steps, for instance to install both ruby and node dependencies:
56
56
@@ -94,7 +94,7 @@ script:
94
94
```
95
95
{: data-file=".travis.yml"}
96
96
97
-
When one of the build commands returns a non-zero exit code, the Travis CI build runs the subsequent commands as well, and accumulates the build result.
97
+
When one of the build commands returns a non-zero exit code, the Travis CI build runs the subsequent commands as well and accumulates the build result.
98
98
99
99
In the example above, if `bundle exec rake build` returns an exit code of 1, the following command `bundle exec rake builddoc` is still run, but the build will result in a failure.
100
100
@@ -134,7 +134,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
134
134
fi
135
135
```
136
136
137
-
Note the `set -ev` at the top. The `-e` flag causes the script to exit as soon as one command returns a non-zero exit code. This can be handy if you want whatever script you have to exit early. It also helps in complex installation scripts where one failed command wouldn't otherwise cause the installation to fail.
137
+
> Note the `set -ev` at the top. The `-e` flag causes the script to exit as soon as one command returns a non-zero exit code. This can be handy if you want whatever script you have to exit early. It also helps in complex installation scripts where one failed command wouldn't otherwise cause the installation to fail.
138
138
139
139
The `-v` flag makes the shell print all lines in the script before executing them, which helps identify which steps failed.
140
140
@@ -157,7 +157,7 @@ When overriding these steps, do not use `exit` shell built-in command.
157
157
Doing so will run the risk of terminating the build process without giving Travis a chance to
158
158
perform subsequent tasks.
159
159
160
-
Using `exit` inside a custom script which will be invoked from during a build is fine.
160
+
> Using `exit` inside a custom script which will be invoked from during a build is fine.
161
161
162
162
163
163
## Breaking the Build
@@ -175,7 +175,7 @@ However, if one of these stages times out, the build is marked as **failed**.
175
175
176
176
An optional phase in the job lifecycle is deployment.
177
177
This phase is defined by using one of our continuous deployment providers to deploy code to Heroku, Amazon, or a different supported platform.
178
-
The deploy steps are skipped if the build is broken.
178
+
The deploy steps are skipped, if the build is broken.
179
179
180
180
When deploying files to a provider, prevent Travis CI from resetting your
181
181
working directory and deleting all changes made during the build ( `git stash
@@ -189,6 +189,8 @@ deploy:
189
189
190
190
You can run commands before a deploy by using the `before_deploy` phase. A non-zero exit code in this phase will mark the build as **errored**.
191
191
192
-
If there are any steps you'd like to run after the deployment, you can use the `after_deploy` phase. Note that `after_deploy` does not affect the status of the build.
192
+
If there are any steps you'd like to run after the deployment, you can use the `after_deploy` phase.
193
193
194
-
Note that `before_deploy` and `after_deploy` are run before and after every deploy provider, so will run multiple times if there are multiple providers.
194
+
> Note that `after_deploy` does not affect the status of the build.
195
+
196
+
> Note that `before_deploy` and `after_deploy` are run before and after every deploy provider, so they will run multiple times, if there are multiple providers.
0 commit comments