Skip to content

Commit

Permalink
invenio: version 3.3.0
Browse files Browse the repository at this point in the history
* Upgrades invenio to version 3.3.0.
* Uses Github action for tests.

Invenio-oaiserver is not functional in this version:
- inveniosoftware/invenio-oaiserver#178
- inveniosoftware/invenio-oaiserver#185
- inveniosoftware/invenio-oaiserver#186

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
  • Loading branch information
rerowep and rerowep committed Oct 7, 2020
1 parent e25b581 commit ea80cc3
Show file tree
Hide file tree
Showing 10 changed files with 684 additions and 665 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/continuous-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: build
on: [push, pull_request, workflow_dispatch]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
dependencies: ['locked', 'deploy']
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Docker compose up
run: docker-compose up -d

- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Install Poetry
uses: dschep/install-poetry-action@v1.2
with:
version: 1.0.10

- name: Use Cache
uses: actions/cache@v2
with:
path: |
~/.cache/pip
~/.cache/pypoetry/virtualenvs
~/.npm
key: ${{ runner.os }}-pip-venv-${{ hashFiles('**/poetry.lock') }}

- name: Bootstrap locked
if: ${{ matrix.dependencies == 'locked' }}
run: |
poetry run bootstrap --ci
- name: Bootstrap deploy
if: ${{ matrix.dependencies == 'deploy' }}
run: |
poetry run bootstrap --ci --deploy E2E=yes
# - name: Update pip and coveralls
# run: |
# poetry run pip install --upgrade pip
# poetry run pip install --upgrade coveralls
#
# - name: Run Test
# if: ${{ matrix.tests == '' }}
# run: poetry run run-tests
#
# - name: Upload Coverage ${{ matrix.tests }}
# if: ${{ matrix.dependencies == 'locked' }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_FLAG_NAME: test
# COVERALLS_PARALLEL: true
# run: poetry run coveralls

- name: Finished Coverage ${{ matrix.tests }}
if: ${{ matrix.dependencies == 'locked' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL_FINISHED: true
run: |
poetry run coveralls --finish
92 changes: 0 additions & 92 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Start the a background worker:

.. code-block:: console
$ celery worker -A invenio_app.celery -l INFO
$ celery -A invenio_app.celery worker -l INFO
Start a Python shell:

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ services:
file: docker-services.yml
service: app
restart: "always"
command: "poetry run celery worker -A rero_ebooks.celery --loglevel=INFO"
command: "poetry run celery -A rero_ebooks.celery worker --loglevel=INFO"
image: rero-ebooks-worker
links:
- cache
Expand All @@ -92,7 +92,7 @@ services:
file: docker-services.yml
service: app
restart: "always"
command: "poetry run celery beat -A rero_ebooks.celery --loglevel=INFO"
command: "poetry run celery -A rero_ebooks.celery beat --loglevel=INFO"
image: rero-ebooks-beat
links:
- cache
Expand Down
Loading

0 comments on commit ea80cc3

Please sign in to comment.