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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
master# About this repository [](https://travis-ci.org/travis-ci/docs-travis-ci-com)
1
+
# About this repository [](https://travis-ci.org/travis-ci/docs-travis-ci-com)
2
2
3
3
This is the documentation site for Travis CI! (<http://docs.travis-ci.com/>)
<asideclass="improve-page"><ahref="{{ site.docs_github }}edit/gh-pages/{{ page.path }}" target="_blank" title="Edit this page on GitHub" class="button-pen" data-proofer-ignore>Improve this page on GitHub</a></aside>
17
+
<asideclass="improve-page"><ahref="{{ site.docs_github }}edit/master/{{ page.path }}" target="_blank" title="Edit this page on GitHub" class="button-pen" data-proofer-ignore>Improve this page on GitHub</a></aside>
Copy file name to clipboardExpand all lines: user/customizing-the-build.md
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -140,12 +140,12 @@ When deploying files to a provider, prevent Travis CI from resetting your
140
140
working directory and deleting all changes made during the build ( `git stash
141
141
--all`) by adding `skip_cleanup` to your `.travis.yml`:
142
142
143
-
```yml
143
+
```yaml
144
144
deploy:
145
145
skip_cleanup: true
146
146
```
147
147
148
-
You can run steps before a deploy by using the `before_deploy` phase. A non-zero exit code in this command will mark the build as **errored**.
148
+
You can run steps before a deploy by using the `before_deploy` phase. A non-zero exit code in this phase will mark the build as **errored**.
149
149
150
150
If there are any steps you'd like to run after the deployment, you can use the `after_deploy` phase.
151
151
@@ -159,7 +159,7 @@ One of the key features of Travis CI is the ease of running your test suite agai
159
159
160
160
If your dependencies need native libraries to be available, you can use **passwordless sudo to install them**:
161
161
162
-
```yml
162
+
```yaml
163
163
before_install:
164
164
- sudo apt-get update -qq
165
165
- sudo apt-get install -qq [packages list]
@@ -178,7 +178,7 @@ If you need a native dependency that is not available from the official Ubuntu r
178
178
179
179
If you need to install a second programming language in your current build environment, for example installing a more recent version of Ruby than the default version present in all build environments you can do so in the `before_install` stage of the build:
180
180
181
-
```yml
181
+
```yaml
182
182
before_install:
183
183
- rvm install 2.1.5
184
184
```
@@ -190,10 +190,10 @@ You can also use other installation methods such as `apt-get`.
190
190
It is very common for test suites or build scripts to hang.
191
191
Travis CI has specific time limits for each job, and will stop the build and add an error message to the build log in the following situations:
192
192
193
-
- A job takes longer than 50 minutes on travis-ci.org
194
-
- A job takes longer than 120 minutes on travis-ci.com
195
-
- A job takes longer than 50 minutes on OSX infrastructure or travis-ci.org or travis-ci.com
196
193
- A job produces no log output for 10 minutes
194
+
- A job on travis-ci.org takes longer than 50 minutes
195
+
- A job running on OS X infrastructure takes longer than 50 minutes (applies to travis-ci.org or travis-ci.com)
196
+
- A job on Linux infrastructure on travis-ci.com takes longer than 120 minutes
197
197
198
198
Some common reasons why builds might hang:
199
199
@@ -267,7 +267,7 @@ You can disable the download of LFS objects when cloning ([`git lfs smudge
@@ -280,7 +280,7 @@ Travis CI uses the `.travis.yml` file from the branch containing the git commit
280
280
281
281
Specify which branches to build using a safelist, or blocklist branches that you do not want to be built:
282
282
283
-
```yml
283
+
```yaml
284
284
# blocklist
285
285
branches:
286
286
except:
@@ -300,10 +300,12 @@ If you use both a safelist and a blocklist, the safelist takes precedence. By de
300
300
301
301
To build _all_ branches:
302
302
303
-
branches:
304
-
only:
305
-
- gh-pages
306
-
- /.*/
303
+
```yaml
304
+
branches:
305
+
only:
306
+
- gh-pages
307
+
- /.*/
308
+
```
307
309
308
310
> Note that for historical reasons `.travis.yml` needs to be present *on all active branches* of your project.
309
311
@@ -376,7 +378,7 @@ parameters, you can specify only those and omit the varying parts.
376
378
377
379
Suppose you have:
378
380
379
-
```yml
381
+
```yaml
380
382
language: ruby
381
383
rvm:
382
384
- 1.9.3
@@ -396,7 +398,7 @@ gemfile:
396
398
This results in a 3×3×4 build matrix. To exclude all jobs which have `rvm` value `2.0.0` *and*
397
399
`gemfile` value `Gemfile`, you can write:
398
400
399
-
```yml
401
+
```yaml
400
402
matrix:
401
403
exclude:
402
404
- rvm: 2.0.0
@@ -405,7 +407,7 @@ matrix:
405
407
406
408
Which is equivalent to:
407
409
408
-
```yml
410
+
```yaml
409
411
matrix:
410
412
exclude:
411
413
- rvm: 2.0.0
@@ -580,7 +582,7 @@ The `-v` flag makes the shell print all lines in the script before executing the
580
582
581
583
Assuming the script above is stored as `scripts/run-tests.sh` in your repository, and with the right permissions too (run `chmod ugo+x scripts/run-tests.sh` before checking it in), you can call it from your `.travis.yml`:
Copy file name to clipboardExpand all lines: user/deployment/heroku.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,6 @@ You can either use a shorthand for the [default buildpacks](https://devcenter.he
163
163
Travis CI supports different mechanisms for deploying to Heroku:
164
164
165
165
- **api:** Uses Heroku's [Build API](https://devcenter.heroku.com/articles/build-and-release-using-the-api). This is the default strategy.
166
-
- **anvil:** Uses an [unofficial build server](https://github.com/ddollar/anvil), which accepts archives of the application you want to deploy.
167
166
- **git:** Does a `git push` over HTTPS.
168
167
- **git-ssh:** Does a `git push` over SSH. This will generate a new key on every deployment.
169
168
- **git-deploy-key:** Does a `git push` over SSH. It will reuse the same key on every deployment. This is only available for private projects.
@@ -177,7 +176,9 @@ deploy:
177
176
strategy: git
178
177
```
179
178
180
-
Note that the **anvil**, **git-ssh** and **git-deploy-key** strategies are considered **deprecated**. Please contact us if you have issues switching away from these.
179
+
> Note that the `git-ssh` and `git-deploy-key` strategies are **deprecated**, and will be shut
180
+
> down on June 26th, 2017.
181
+
> Please contact us if you have issues switching away from these.
0 commit comments