Only install specific yarn when NODE_INSTALLER=yarn
This commit is contained in:
Родитель
6f434db2aa
Коммит
0648c1903e
|
@ -16,8 +16,7 @@ branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- /^v\d+\.\d+\.\d+/
|
- /^v\d+\.\d+\.\d+/
|
||||||
before_install:
|
before_install: if [[ "$NODE_INSTALLER" = "yarn" ]]; then curl -L https://yarnpkg.com/install.sh | bash -s -- --version 0.23.3; fi
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.23.3
|
|
||||||
script: ci/script.sh
|
script: ci/script.sh
|
||||||
after_success: ci/coverage.sh
|
after_success: ci/coverage.sh
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
@ -4,6 +4,5 @@ if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
|
||||||
sudo docker build -f ci/Dockerfile . -t electron-forge-ci
|
sudo docker build -f ci/Dockerfile . -t electron-forge-ci
|
||||||
sudo docker run -it electron-forge-ci ci/docker.sh $NODE_INSTALLER
|
sudo docker run -it electron-forge-ci ci/docker.sh $NODE_INSTALLER
|
||||||
else
|
else
|
||||||
if [[ "$NODE_INSTALLER" = "yarn" ]]; then npm i -g yarn; fi
|
|
||||||
npm run test-coverage -- --installer=$NODE_INSTALLER
|
npm run test-coverage -- --installer=$NODE_INSTALLER
|
||||||
fi
|
fi
|
||||||
|
|
Загрузка…
Ссылка в новой задаче