mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Allow customizing npm path
So jenkins can use `npm --no-color`
This commit is contained in:
5
Makefile
5
Makefile
@@ -5,6 +5,7 @@ PACKER ?= packer
|
|||||||
GRUNT ?= $(shell [ -t 0 ] && echo "grunt" || echo "grunt --no-color")
|
GRUNT ?= $(shell [ -t 0 ] && echo "grunt" || echo "grunt --no-color")
|
||||||
BROCCOLI ?= ./node_modules/.bin/broccoli
|
BROCCOLI ?= ./node_modules/.bin/broccoli
|
||||||
NODE ?= node
|
NODE ?= node
|
||||||
|
NPM_BIN ?= npm
|
||||||
DEPS_SCRIPT ?= packaging/bundle/deps.py
|
DEPS_SCRIPT ?= packaging/bundle/deps.py
|
||||||
AW_REPO_URL ?= "http://releases.ansible.com/ansible-tower"
|
AW_REPO_URL ?= "http://releases.ansible.com/ansible-tower"
|
||||||
|
|
||||||
@@ -193,7 +194,7 @@ real-requirements_dev:
|
|||||||
# Install third-party requirements needed for running unittests in jenkins
|
# Install third-party requirements needed for running unittests in jenkins
|
||||||
real-requirements_jenkins:
|
real-requirements_jenkins:
|
||||||
pip install -r requirements/requirements_jenkins.txt
|
pip install -r requirements/requirements_jenkins.txt
|
||||||
npm install csslint jshint
|
$(NPM_BIN) install csslint jshint
|
||||||
|
|
||||||
# "Install" ansible-tower package in development mode.
|
# "Install" ansible-tower package in development mode.
|
||||||
develop:
|
develop:
|
||||||
@@ -345,7 +346,7 @@ sync_ui: node_modules Brocfile.js
|
|||||||
|
|
||||||
# Update local npm install
|
# Update local npm install
|
||||||
node_modules: package.json
|
node_modules: package.json
|
||||||
npm install
|
$(NPM_BIN) install
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js
|
devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js
|
||||||
|
|||||||
Reference in New Issue
Block a user