3d0abffbc0
On Travis we now rely on built-in Yarn support and we only cache the Yarn cache, not node_modules. This creates a more stable environment as we don't install over previous node_modules state but we still won't download packages from the internet in the second run for the same yarn.lock as Yarn takes packages from its local cache if they exist there. We install a new Yarn verison manually on Jenkins; the location of the install script changed. Closes #15851
19 lines
396 B
Bash
Executable File
19 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Install nvm for this shell
|
|
source ~/.nvm/nvm.sh
|
|
|
|
# Use version of node.js found in .nvmrc
|
|
nvm install
|
|
|
|
# clean out and install yarn
|
|
rm -rf ~/.yarn
|
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.21.3
|
|
export PATH="$HOME/.yarn/bin:$PATH"
|
|
|
|
# Ensure that we have the local dependencies installed
|
|
yarn install
|
|
|
|
echo testing grunt version
|
|
yarn run grunt -- --version
|