Skip to content

Commit de7128b

Browse files
authored
Merge branch 'master' into patch-1
2 parents d1b424c + 83804da commit de7128b

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

user/deployment/pypi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ deploy:
5151
5252
If you tag a commit locally, remember to run `git push --tags` to ensure that your tags are uploaded to GitHub.
5353

54-
## Deploying specific braches
54+
## Deploying specific branches
5555

5656
You can explicitly specify the branch to release from with the **on** option:
5757

user/for-beginners.md

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

4444
> Note: Travis only runs a build on the commits you push after adding the repository to Travis.
4545

46-
Wait for Travis CI to run a build on your fork of the `travis-broken-example` repository, check the [build status](https://travis-ci.org/repositories) and notice that the build fails. (Travis CI sends you an email when this happens)
46+
Wait for Travis CI to run a build on your fork of the `travis-broken-example` repository, check the [build status](https://travis-ci.org) and notice that the build fails. (Travis CI sends you an email when this happens)
4747

4848
6. Fix the code by making sure that `2=1+1` in `Test.php`, commit and push to GitHub. This time, the build does not fail.
4949

user/languages/javascript-with-nodejs.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,16 @@ Travis CI uses [npm](http://npmjs.org/) to install your project dependencies:
8383
npm install
8484
```
8585

86-
> Note that there are no npm packages installed by default in the Travis CI environment , your dependencies are downloaded and installed every build.
86+
> Note that there are no npm packages installed by default in the Travis CI environment, your dependencies are downloaded and installed during each build.
87+
88+
#### Using a specific npm version
89+
90+
Add the following to the [`before_install` phase](/user/customizing-the-build/#The-Build-Lifecycle) of `.travis.yml`:
91+
92+
```yaml
93+
before_install:
94+
- npm i -g npm@version-number
95+
```
8796

8897
#### Caching with `npm`
8998

@@ -113,6 +122,17 @@ Note that `yarn` requires Node.js version 4 or later.
113122
If the job does not meet this requirement, `npm install` is used
114123
instead.
115124

125+
126+
#### Using a specific yarn version
127+
128+
Add the following to the [`before_install` phase](/user/customizing-the-build/#The-Build-Lifecycle) of `.travis.yml`:
129+
130+
```yaml
131+
before_install:
132+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version version-number
133+
- export PATH="$HOME/.yarn/bin:$PATH"
134+
```
135+
116136
#### Caching with `yarn`
117137

118138
You can cache `$HOME/.cache/yarn` with:

0 commit comments

Comments
 (0)