Skip to content

Commit

Permalink
Bug 1408954 - Use latest yarn on Heroku/Travis (#2839)
Browse files Browse the repository at this point in the history
For parity with Vagrant and to save the hassle of constantly updating.
Heroku uses the version from `package.json`.
  • Loading branch information
edmorley committed Oct 17, 2017
1 parent 321c979 commit a75cff1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -62,6 +62,9 @@ matrix:
- node_modules
addons:
firefox: latest
before_install:
# Use newer yarn than that pre-installed in the Travis image.
- curl -sSfL https://yarnpkg.com/latest.tar.gz | tar -xz --strip-components=1 -C "$HOME"
install:
# `--frozen-lockfile` will catch cases where people have forgotten to update `yarn.lock`.
# `--no-bin-links` is only necessary on Windows hosts, but we include here to ensure
Expand Down Expand Up @@ -211,6 +214,8 @@ matrix:
- source ~/venv/bin/activate
- curl -sSfL https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz | tar -zxC $HOME/bin
- nvm install 8.7.0
# Use newer yarn than that pre-installed in the Travis image.
- curl -sSfL https://yarnpkg.com/latest.tar.gz | tar -xz --strip-components=1 -C "$HOME"
install:
- pip install --disable-pip-version-check --require-hashes -r requirements/common.txt -r requirements/dev.txt
- yarn install --frozen-lockfile --no-bin-links
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -7,7 +7,8 @@
},
"license": "MPL-2.0",
"engines": {
"node": "8.7.0"
"node": "8.7.0",
"yarn": "^1.2.1"
},
"dependencies": {
"ajv": "^5.2.2",
Expand Down

0 comments on commit a75cff1

Please sign in to comment.