mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-26 23:28:08 +03:00
*: travis - use nvs on Windows
This commit is contained in:
parent
814a1f6cb3
commit
344a0336b0
1 changed files with 11 additions and 3 deletions
14
.travis.yml
14
.travis.yml
|
@ -18,9 +18,12 @@ before_install:
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.23.8
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.23.8
|
||||||
;;
|
;;
|
||||||
windows)
|
windows)
|
||||||
choco install nvm
|
# Using NVS for managing Node.js versions on Windows
|
||||||
nvm install node
|
NVS_HOME="C:\ProgramData"
|
||||||
npm install -g npm
|
git clone --single-branch https://github.com/jasongin/nvs $NVS_HOME
|
||||||
|
source $NVS_HOME/nvs.sh
|
||||||
|
nvs add latest
|
||||||
|
nvs use latest
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -28,9 +31,14 @@ install:
|
||||||
- |-
|
- |-
|
||||||
case $TRAVIS_OS_NAME in
|
case $TRAVIS_OS_NAME in
|
||||||
linux | osx)
|
linux | osx)
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
npm --prefix client ci
|
npm --prefix client ci
|
||||||
;;
|
;;
|
||||||
windows)
|
windows)
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
|
nvs --version
|
||||||
npm --prefix client ci
|
npm --prefix client ci
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue