mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Merge pull request #4410 from hashicorp/b-ui-update-vagrant
UI: update vagrant
This commit is contained in:
@@ -288,7 +288,6 @@ test-ui: ## Run Nomad UI test suite
|
||||
@cd ui && npm rebuild node-sass
|
||||
@cd ui && yarn install
|
||||
@echo "--> Running ember tests"
|
||||
@cd ui && phantomjs --version
|
||||
@cd ui && npm test
|
||||
|
||||
.PHONY: ember-dist
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Install NVM for simple node.js version management
|
||||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
|
||||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||
|
||||
# This enables NVM without a logout/login
|
||||
export NVM_DIR="/home/vagrant/.nvm"
|
||||
@@ -9,10 +9,15 @@ export NVM_DIR="/home/vagrant/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
# Install Node, Ember CLI, and Phantom for UI development
|
||||
nvm install 6.11.0
|
||||
nvm alias default 6.11.0
|
||||
npm install -g ember-cli phantomjs-prebuilt
|
||||
nvm install 8.11.2
|
||||
nvm alias default 8.11.2
|
||||
npm install -g ember-cli
|
||||
|
||||
# Install Yarn for front-end dependency management
|
||||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.24.6
|
||||
export PATH="$HOME/.yarn/bin:\$PATH"
|
||||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
|
||||
|
||||
# Install Chrome for running tests (in headless mode)
|
||||
wget -qO- - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
||||
sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y google-chrome-stable
|
||||
|
||||
Reference in New Issue
Block a user