Browse Source

Merge branch 'master' into migration_tool

Stefano Cossu 6 years ago
parent
commit
11601d8b0b
5 changed files with 19 additions and 2 deletions
  1. 9 0
      .travis.yml
  2. 4 0
      README.md
  3. 4 1
      docker/etc/application.yml
  4. 1 1
      fcrepo
  5. 1 0
      requirements.txt

+ 9 - 0
.travis.yml

@@ -0,0 +1,9 @@
+language: python
+python:
+  - "3.5"
+  - "3.6"
+install:
+  - pip install -r requirements.txt
+  - coilmq&
+script:
+- pytest tests

+ 4 - 0
README.md

@@ -1,5 +1,9 @@
 # LAKEsuperior
 
+[![build status](
+  http://img.shields.io/travis/scossu/lakesuperior/master.svg?style=flat)](
+ https://travis-ci.org/username/repo)
+
 LAKEsuperior is an alternative [Fedora Repository](http://fedorarepository.org)
 implementation.
 

+ 4 - 1
docker/etc/application.yml

@@ -87,11 +87,14 @@ messaging:
           # for this route.
           active: True
 
+          # Protocol version. One of `10`, `11` or `12`.
+          protocol: '11'
           host: 127.0.0.1
           port: 61613
+
+          # Credentials are optional.
           username:
           password:
-          protocol: '12'
           destination: '/topic/fcrepo'
 
           # Message format: at the moment the following are supported:

+ 1 - 1
fcrepo

@@ -2,4 +2,4 @@
 default_conf_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/etc.defaults"
 conf_dir=${FCREPO_CONFIG_DIR:-$default_conf_dir}
 
-gunicorn -c "${conf_dir}/gunicorn.py" server:fcrepo
+gunicorn -c "${conf_dir}/gunicorn.py" server:fcrepo --preload

+ 1 - 0
requirements.txt

@@ -11,6 +11,7 @@ gunicorn==19.7.1
 lmdb==0.93
 numpy==1.14.1
 pytest==3.2.2
+pytest-flask==0.10.0
 rdflib==4.2.2
 requests-toolbelt==0.8.0
 requests==2.18.4