Skip to content

Commit 7319a49

Browse files
authored
Merge branch 'master' into ha-matrix-dim-inheritance
2 parents 24bbe96 + acdce2e commit 7319a49

File tree

6 files changed

+26
-22
lines changed

6 files changed

+26
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
master# About this repository [![Build Status](https://travis-ci.org/travis-ci/docs-travis-ci-com.svg?branch=master)](https://travis-ci.org/travis-ci/docs-travis-ci-com)
1+
# About this repository [![Build Status](https://travis-ci.org/travis-ci/docs-travis-ci-com.svg?branch=master)](https://travis-ci.org/travis-ci/docs-travis-ci-com)
22

33
This is the documentation site for Travis CI! (<http://docs.travis-ci.com/>)
44

_layouts/en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<main id="main" class="main" data-swiftype-index='true'>
1616
{% unless page.no_header %}
17-
<aside class="improve-page"><a href="{{ 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+
<aside class="improve-page"><a href="{{ 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>
1818
<h1 class="title">{{ page.title }}</h1>
1919
{% endunless %}
2020
{{ content }}

user/customizing-the-build.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ When deploying files to a provider, prevent Travis CI from resetting your
140140
working directory and deleting all changes made during the build ( `git stash
141141
--all`) by adding `skip_cleanup` to your `.travis.yml`:
142142

143-
```yml
143+
```yaml
144144
deploy:
145145
skip_cleanup: true
146146
```
147147

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**.
149149

150150
If there are any steps you'd like to run after the deployment, you can use the `after_deploy` phase.
151151

@@ -159,7 +159,7 @@ One of the key features of Travis CI is the ease of running your test suite agai
159159

160160
If your dependencies need native libraries to be available, you can use **passwordless sudo to install them**:
161161

162-
```yml
162+
```yaml
163163
before_install:
164164
- sudo apt-get update -qq
165165
- 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
178178

179179
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:
180180

181-
```yml
181+
```yaml
182182
before_install:
183183
- rvm install 2.1.5
184184
```
@@ -190,10 +190,10 @@ You can also use other installation methods such as `apt-get`.
190190
It is very common for test suites or build scripts to hang.
191191
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:
192192

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
196193
- 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
197197

198198
Some common reasons why builds might hang:
199199

@@ -267,7 +267,7 @@ You can disable the download of LFS objects when cloning ([`git lfs smudge
267267
--skip`](https://github.com/git-lfs/git-lfs/blob/master/docs/man/git-lfs-smudge.1.ronn))
268268
by setting the following in `.travis.yml`:
269269

270-
``` yml
270+
```yaml
271271
git:
272272
lfs_skip_smudge: true
273273
```
@@ -280,7 +280,7 @@ Travis CI uses the `.travis.yml` file from the branch containing the git commit
280280

281281
Specify which branches to build using a safelist, or blocklist branches that you do not want to be built:
282282

283-
```yml
283+
```yaml
284284
# blocklist
285285
branches:
286286
except:
@@ -300,10 +300,12 @@ If you use both a safelist and a blocklist, the safelist takes precedence. By de
300300

301301
To build _all_ branches:
302302

303-
branches:
304-
only:
305-
- gh-pages
306-
- /.*/
303+
```yaml
304+
branches:
305+
only:
306+
- gh-pages
307+
- /.*/
308+
```
307309

308310
> Note that for historical reasons `.travis.yml` needs to be present *on all active branches* of your project.
309311

@@ -376,7 +378,7 @@ parameters, you can specify only those and omit the varying parts.
376378

377379
Suppose you have:
378380

379-
```yml
381+
```yaml
380382
language: ruby
381383
rvm:
382384
- 1.9.3
@@ -396,7 +398,7 @@ gemfile:
396398
This results in a 3×3×4 build matrix. To exclude all jobs which have `rvm` value `2.0.0` *and*
397399
`gemfile` value `Gemfile`, you can write:
398400

399-
```yml
401+
```yaml
400402
matrix:
401403
exclude:
402404
- rvm: 2.0.0
@@ -405,7 +407,7 @@ matrix:
405407

406408
Which is equivalent to:
407409

408-
```yml
410+
```yaml
409411
matrix:
410412
exclude:
411413
- rvm: 2.0.0
@@ -580,7 +582,7 @@ The `-v` flag makes the shell print all lines in the script before executing the
580582

581583
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`:
582584

583-
```
585+
```yaml
584586
script: ./scripts/run-tests.sh
585587
```
586588

user/deployment/heroku.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ You can either use a shorthand for the [default buildpacks](https://devcenter.he
163163
Travis CI supports different mechanisms for deploying to Heroku:
164164

165165
- **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.
167166
- **git:** Does a `git push` over HTTPS.
168167
- **git-ssh:** Does a `git push` over SSH. This will generate a new key on every deployment.
169168
- **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:
177176
strategy: git
178177
```
179178

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.
181182

182183
#### Using `.gitignore` on `git` strategy
183184

user/for-beginners.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ You need to sign up for a [GitHub account](https://github.com/) if you do not al
2323

2424
```yaml
2525
language: php
26+
dist: trusty
2627
php:
2728
- 5.5
2829
- 5.4

user/languages/javascript-with-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If you already use Gulp to manage your tests, install it and run the default
6969

7070
```yaml
7171
before_script:
72-
- npm install -g gulp
72+
- npm install -g gulp-cli
7373
script: gulp
7474
```
7575

0 commit comments

Comments
 (0)