Commit Graph

15 Commits

Author SHA1 Message Date
Monty Taylor 1aa7a72ea0 Update node to v10
Change-Id: Idd3ae6007f14d4e03c7960431819c7d44df2910b
2020-03-28 11:03:36 -05:00
Adam Coldrick 67cb1eb57c Rebuild node-sass bindings when running the webclient dev server
If a newer version of node.js is installed on the user's system than is
used in tox.ini, it is possible to run into errors when running the
sass-related parts of the build. Forcing a rebuild of the bindings
fixes this issue.

Change-Id: Ia4dc046334d4c483f0a880f158bdfa56c153a199
2019-02-03 19:42:25 +00:00
Kim Bao Long 4b62a7d86b Update the min version of tox to 2.0
The commands used by constraints need at least tox 2.0. Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I225550a0bb929c5b6b45f25ae4358749e1d7005e
2018-11-02 13:54:58 +07:00
Monty Taylor f442646269
Remove bower and add yarn support
bower is deprecated and intended to be replaced. yarn is the recommended
replacement for both things installed via npm and things installed via
bower.

Move the bower resources into package.json and add the yarn.lock file.
Zuul has support for installing yarn if a yarn.lock file is found and
using it to install things.

Change-Id: I848f22dce6196b2df9de4b9f585e857e03cdb0d7
2017-12-23 10:40:35 -06:00
Zara 541481ad6e Upgrade node in tox.ini to newest LTS (6.10.2)
This patch upgrades the version of node.js referred to in tox.ini
from 0.10.29 (released June 2014) to the newest LTS version,
6.10.2. We should be using newer components where possible.

Change-Id: I0e1279f7f1e006df5d17037eb1637d691ab9353b
2017-04-11 18:25:13 +01:00
Andreas Jaeger e2bf04a94f List system dependencies for running common tests
Add an other-requirements.txt file containing a cross-platform list
of dependencies needed for running included tox-based tests. Also
include a tox environment for convenience calling the bindep[*]
utility to list any missing system requirements.

This change is needed since the infra team will not install standard
packages in jobs anymore, projects should use other-requirements.txt
instead. The macros xvfb-install, firefox-install, chrome-install
which are used to run some jobs for this repository will be removed
soon.

This change is self-testing.

For other-requirements.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements

[*] http://docs.openstack.org/infra/bindep/

Change-Id: Ie9b17a29754fd2916095f65ddca28808fe39d8c7
2016-06-28 09:18:49 +00:00
Michael Krotscheck 9db221c84f Removed nodeenv dependency
Once #106152 lands, nodejs will be available on our trusty build nodes,
so nodeenv is no longer strictly required. However, not everyone wants
to install nodejs on their system, so we now wrap the nodeenv
invocation into a script to test whether a local node exists. Since
we can no longer assume the existence of a clean virtual environment,
we also no longer install a global version of bower and grunt, and
instead use the versions bundled with the codebase's package.json.

Change-Id: I42f4b61037b8e988708b39e951dd2cddd99313b0
2014-08-12 17:02:07 -07:00
Michael Krotscheck eda1854e9f Updated bower
Trying to see if updating bower reduces the failure rate of our
builds.

Change-Id: Ia517450e8b6990bff4703f59c9444293a20cc285
2014-07-15 14:41:46 -07:00
Nikita Konovalov 854f88fc35 Ajust tox.ini
The master tarball should not be installed to the grunt_no_api env.

Change-Id: I025ee878e130ffdc11d4816ac8d33f0c43e4f884
2014-05-13 13:49:40 +04:00
Nikita Konovalov 559717ead9 Fix API launch
'node' enviroment does not exist anymore.
replaced with 'grunt'

Added MySQL driver installation to env script. It is in
test-requirements so it will not be installed from a tarball.

Change-Id: I2eb2d28f40fb2a8c71cea1df4ebba272d6537ca3
2014-02-28 14:08:34 -08:00
Michael Krotscheck 34f06c54df Fix NPM CA Chain issue and port conflict.
This patch includes two fixes. First, it disables our functional tests
because of a bug in grunt-connect-proxy, which is fixed by an
as-yet-not-accepted patch here:

81631b20c5

Secondly, it includes a temporary fix for the recent NPM CA chain update
explained here:

http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more

The basic premise is that the node package manager no longer supports
their self-signed certificate. This is good! Unfortunately, the
released version of npm is 1.4.4, but the one packaged with nodejs
0.10.26(stable) is 1.4.3. Until nodejs updates itself, we need to
temporarily bork the ca chain to update npm.

Since we're using throwaway slaves, and it's a temporary fix, and
node is only used for builds, I feel this is an acceptable risk.

Change-Id: Ic510e55355966591affbe25ce3f831ca424b2afa
2014-02-28 14:04:01 -08:00
Jeremy Stanley e31dce1163 Remove tox locale overrides
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: Ic86dbda8064b359b23d400b842db8350f73c6ab9
Closes-Bug: #1277495
2014-02-10 03:03:22 +00:00
Nikita Konovalov 756fde458b Added no_api env
This env will run only webclient without any API management.

Change-Id: I326fbbff09adc384bad14f6c4ee6ad778a5151c3
2014-01-28 14:19:26 -08:00
Michael Krotscheck 2153ac56e5 Added storyboard API to webclient venv
This change adds the storyboard API as a dependency for the virtual
environment so we can run integration and functional tests with
a live API. It also sets up the grunt development server with a local
proxy so that we don't have to worry about implementing CORS immediately.

Change-Id: I4835649630ef69f13d73ef2a10dff860aceb1f49
2014-01-22 16:37:14 -08:00
Monty Taylor e9c34dec57 Add tox.ini file to run things via tox
I'm not kidding. This works.

Change-Id: I7caf2277eb667737a5537f13d245153133a0d203
2014-01-20 12:52:14 -08:00