forked from jasder/antlr
try fix travis
This commit is contained in:
parent
47d1332249
commit
292811ce81
|
@ -2,6 +2,9 @@ sudo: true
|
||||||
|
|
||||||
language: java
|
language: java
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- 14
|
||||||
|
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -rf $HOME/.m2/repository/org/antlr
|
- rm -rf $HOME/.m2/repository/org/antlr
|
||||||
cache:
|
cache:
|
||||||
|
|
|
@ -4,10 +4,15 @@ set -euo pipefail
|
||||||
|
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
|
|
||||||
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
## download and install nodejs
|
||||||
sudo apt-get install -qq nodejs
|
#curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | sudo -E bash -
|
#sudo apt-get install -qq nodejs
|
||||||
export NVM_DIR="$HOME/.nvm"
|
#
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
## download and install nvm
|
||||||
sudo nvm use 14
|
#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | sudo -E bash -
|
||||||
|
#export NVM_DIR="$HOME/.nvm"
|
||||||
|
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
#
|
||||||
|
## use v14 and check
|
||||||
|
#sudo nvm use 14
|
||||||
node --version
|
node --version
|
||||||
|
|
Loading…
Reference in New Issue