Skip to content

Commit 0ffd7e3

Browse files
authored
Merge pull request #811 from Turbo87/ci-yarn
CI: Use recommended yarn installation method
2 parents a076646 + 84129bc commit 0ffd7e3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@ dist: trusty
44

55
cache:
66
cargo: true
7-
directories:
8-
- $HOME/.yarn-cache
7+
yarn: true
98

109
addons:
1110
chrome: stable
1211

1312
before_install:
1413
- nvm install 6.10.0
15-
- npm config set spin false
16-
- npm install -g yarn
14+
- curl -o- -L https://yarnpkg.com/install.sh | bash
15+
- export PATH=$HOME/.yarn/bin:$PATH
1716

1817
install:
1918
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
20-
- yarn
19+
- yarn install
2120
- cargo install --force diesel_cli --debug --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH
2221
- cargo install --force rustfmt
2322
- rustfmt --version
@@ -49,7 +48,7 @@ matrix:
4948
script:
5049
- cargo build
5150
- cargo test
52-
- yarn run test
51+
- yarn test
5352
- rust: nightly-2017-03-04
5453
env: CLIPPY=YESPLEASE
5554
script:

0 commit comments

Comments
 (0)