Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 34df3e6

Browse files
committed
Fix Rustup installation on Windows
1 parent 4533d7e commit 34df3e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ language: node_js
1212

1313
node_js:
1414
# - 10.2 # Lock to the version shipped with VSCode 1.31+
15-
# ... except we need to work around https://github.com/nodejs/node/issues/20498
15+
# ...except we need to work around https://github.com/nodejs/node/issues/20498
1616
# and include the newer version which unbreaks our testing flow
1717
- 10.5
1818

1919
services:
2020
- xvfb # Required for VSCode extension tests
2121

2222
before_install:
23-
- curl https://sh.rustup.rs -sSf -m 60 | sh -s -- --no-modify-path -y -v --default-toolchain stable
24-
- source $HOME/.cargo/env
23+
- curl https://sh.rustup.rs -sSf -m 60 | sh -s -- -y -v --default-toolchain stable
24+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then HOME="/c/Users/travis"; fi
25+
- export PATH="$HOME/.cargo/bin:$PATH"
2526

2627
script:
2728
- npm run compile

0 commit comments

Comments
 (0)