Squashed: add pypi service to testing pipeline

This commit is contained in:
Robert Kaussow
2019-02-08 11:39:47 +01:00
parent 36ba180fec
commit 65ed953a75
3 changed files with 93 additions and 2 deletions
+13 -1
View File
@@ -10,6 +10,16 @@ local PipelineTesting = {
name: "pypiserver",
image: "pypiserver/pypiserver",
pull: "always",
entrypoint: [
"pypi-server",
"-P",
".",
"-a",
".",
"-p",
"8080",
"/data/packages"
],
},
],
steps: [
@@ -26,7 +36,7 @@ local PipelineTesting = {
},
{
name: "test",
image: "golang:1.11",
image: "golang:1.11-alpine",
pull: "always",
environment: {
GO111MODULE: "on",
@@ -36,6 +46,8 @@ local PipelineTesting = {
PLUGIN_PASSWORD: "demo",
},
commands: [
"apk --no-cache add -U python3 git",
"pip3 install --no-cache-dir --upgrade pip setuptools wheel six twine",
"go test -cover ./...",
],
},
+12 -1
View File
@@ -17,8 +17,10 @@ steps:
- name: test
pull: always
image: golang:1.11
image: golang:1.11-alpine
commands:
- apk --no-cache add -U python3 git
- pip3 install --no-cache-dir --upgrade pip setuptools wheel six twine
- go test -cover ./...
environment:
GO111MODULE: on
@@ -31,6 +33,15 @@ services:
- name: pypiserver
pull: always
image: pypiserver/pypiserver
entrypoint:
- pypi-server
- -P
- .
- -a
- .
- -p
- 8080
- /data/packages
trigger:
branch:
+68
View File
@@ -0,0 +1,68 @@
[app:main]
use = egg:pypicloud
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pypi.storage = file
storage.dir = /var/lib/pypicloud/packages
# user: stevearc, pass: gunface
user.stevearc = $5$rounds=80000$yiWi67QBJLDTvbI/$d6qIG/bIoM3hp0lxH8v/vzxg8Qc4CJbxbxiUH4MlnE7
# For beaker
session.encrypt_key = replaceme
session.validate_key = replaceme
session.secure = false
###
# wsgi server configuration
###
[uwsgi]
paste = config:%p
paste-logger = %p
master = true
uid = pypicloud
gid = pypicloud
processes = 20
reload-mercy = 15
worker-reload-mercy = 15
max-requests = 1000
enable-threads = true
http = 0.0.0.0:8080
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, boto
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_boto]
level = WARN
qualname = boto
handlers =
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)s %(asctime)s [%(name)s] %(message)s