Permalink
Comparing changes
Open a pull request
- 5 commits
- 6 files changed
- 0 commit comments
- 1 contributor
Unified
Split
Showing
with
85 additions
and 5 deletions.
- +9 −0 .buildkite/bin/test-backend
- +15 −0 .buildkite/bin/test-frontend
- +2 −2 .travis.yml
- +2 −2 Dockerfile
- +2 −1 conf/test.ini
- +55 −0 conf/testext.ini
| @@ -0,0 +1,9 @@ | ||
| #!/bin/sh | ||
| set -eu | ||
| echo "--- Installing dependencies" | ||
| pip install -e .[dev,testing,YAML] | ||
| echo "+++ Running tests" | ||
| exec python setup.py test --cov |
| @@ -0,0 +1,15 @@ | ||
| #!/bin/sh | ||
| set -eu | ||
| export DEBIAN_FRONTEND=noninteractive | ||
| echo "--- Installing PhantomJS" | ||
| apt-get update | ||
| apt-get install -y phantomjs | ||
| echo "--- Installing dependencies" | ||
| npm install | ||
| echo "+++ Running tests" | ||
| exec $(npm bin)/karma start h/static/scripts/karma.config.js --single-run |
| @@ -15,8 +15,8 @@ script: | ||
| - make test | ||
| - make cover | ||
| - make lint | ||
| - hypothesis-buildext conf/development.ini chrome --base http://localhost | ||
| - hypothesis-buildext conf/development.ini firefox --base http://localhost | ||
| - hypothesis-buildext conf/testext.ini chrome --base http://localhost | ||
| - hypothesis-buildext conf/testext.ini firefox --base http://localhost | ||
| - "hypothesis-buildext conf/production.ini chrome | ||
| --base https://hypothes.is | ||
| --assets chrome-extension://notarealkey/public" | ||
| @@ -51,12 +51,12 @@ ADD gunicorn.conf.py /src/h/ | ||
| ADD bin /src/h/bin | ||
| ADD conf /src/h/conf | ||
| ADD h /src/h/h | ||
| ADD .buildkite /src/h/.buildkite | ||
| RUN pip install -r requirements.txt | ||
| # Services (for runit) | ||
| ADD ./svc /etc/service | ||
| # Startup and ports | ||
| ENTRYPOINT ["/sbin/my_init"] | ||
| CMD [] | ||
| CMD ["/sbin/my_init"] | ||
| EXPOSE 8000 | ||
| @@ -14,7 +14,8 @@ webassets.manifest: False | ||
| webassets.static_view: True | ||
| webassets.uglifyjs_bin: node_modules/.bin/uglifyjs | ||
| webassets.cleancss_bin: node_modules/.bin/cleancss | ||
| webassets.coffee_bin: node_modules/.bin/coffee | ||
| webassets.browserify_pipe_bin: bin/browserify-pipe | ||
| [loggers] | ||
| keys = root, h | ||
| @@ -0,0 +1,55 @@ | ||
| [app:main] | ||
| use: egg:h | ||
| es.host: http://localhost:9200 | ||
| h.feature.accounts: True | ||
| h.feature.api: True | ||
| h.feature.claim: True | ||
| h.feature.streamer: True | ||
| h.feature.notification: True | ||
| sqlalchemy.url: sqlite:// | ||
| webassets.base_dir: h:static | ||
| webassets.base_url: assets | ||
| webassets.coffee_no_bare: True | ||
| webassets.cache: False | ||
| webassets.debug: True | ||
| webassets.manifest: False | ||
| webassets.static_view: True | ||
| webassets.uglifyjs_bin: node_modules/.bin/uglifyjs | ||
| webassets.cleancss_bin: node_modules/.bin/cleancss | ||
| webassets.browserify_pipe_bin: bin/browserify-pipe | ||
| [loggers] | ||
| keys = root, h | ||
| [handlers] | ||
| keys = console | ||
| [formatters] | ||
| keys = generic | ||
| [logger_root] | ||
| handlers = console | ||
| [logger_h] | ||
| level = INFO | ||
| handlers = | ||
| qualname = h | ||
| [handler_console] | ||
| class = StreamHandler | ||
| args = () | ||
| formatter = generic | ||
| [formatter_generic] | ||
| format = %(asctime)s [%(process)d] [%(name)s:%(levelname)s] %(message)s |