7 Commits

Author SHA1 Message Date
Logan Hanks
784849c2ca Bazelify the PolyGerrit dev server
Formerly, developers were directed to install Go and a specific
library dependency on their workstation. We can pull this all into bazel
using bazelbuild/rules_go and bazelbuild/bazel-gazelle.

Now, instead of running a script from a specific directory, the dev
server can be started with a simple "bazel run" command. Or, continue
using the script, which automatically releases the bazel lock before
starting the server.

Change-Id: I9dbda32a8c8698b3f43d02b2133d3cecbffaf1c3
2018-09-21 09:26:43 +02:00
Dan McGregor
feaee26c2d Don't hardcode /bin/bash
Some platforms either don't have bash installed as /bin/bash. Use
the environment to find it in the PATH.

Change-Id: Ie1a6d64146927c83af07d0e2ca7f573c7504f8ef
2017-03-03 08:12:45 -06:00
Viktar Donich
8f5b9aa08a Use test_components when running run-server.sh
Makes test components (iron-test-helpers, etc) available for tests at
http://localhost:8081/elements/foo/bar_test.html

Also, once server was started and bower_components folder was rebuilt,
enables wct cli:
wct -l chrome -p ./polygerrit-ui/app/elements/foo_test.html

Change-Id: I743d07ee4ba158bf57e1e1214f67f98ba22beb2b
2017-01-24 14:00:42 -08:00
David Ostrovsky
fdbfcad77d Remove Buck based build
Bug: Issue 5302
Change-Id: I6e860446ef30ff0ad1c7c49fc0e39d39d921820b
2017-01-23 12:44:58 +00:00
Viktar Donich
5eb59e374e Serve fonts from Gerrit instead of Google Fonts.
Bug: Issue 3985
Change-Id: I107921c7e1fbc02e3b279f4d834c16447dffde51
2016-04-01 13:11:02 -04:00
Urs Wolfer
0f537c7bbc Add support for running (single) tests with 'run-server.sh'
- include 'web-component-tester' bower dependency as test-dependency
- remove special handling for serving folder 'bower_components'
- add support for passing parameters from 'run-server.sh' to 'server.go'

Change-Id: Ia74b3013e07b6304a4df568b081254909749efc5
2016-03-30 20:01:33 +02:00
Dave Borowitz
3aeefe3341 Add quick script to run server.go
Build and extract bower_components to the local directory from
buck-out. This is easier than modifying server.go to serve from a zip
file.

Running `bower install` before server.go was the last remaining usage
of bower.json, so we can just remove it.

Change-Id: Ic4717a3a1652ad08e1cef871c0a207c2c382aa35
2015-12-03 13:49:40 -05:00