Browse Source

test/verbosepytest (#8)

test: Verbose pytest + ENTRYPOINT correction

Co-authored-by: mco-system <michael.costa@mcos.nc>
Reviewed-on: https://git.mcos.nc/scrippy/scrippy-git/pulls/8
Co-Authored-By: Michaël Costa <michael.costa@mcos.nc>
Co-Committed-By: Michaël Costa <michael.costa@mcos.nc>
pull/9/head
Michaël Costa 5 months ago
parent
commit
8969743925
3 changed files with 7 additions and 4 deletions
  1. +2
    -2
      .drone.yml
  2. +4
    -1
      tests/docker/Makefile
  3. +1
    -1
      tests/docker/gitolite.dockerfile

+ 2
- 2
.drone.yml View File

@ -12,7 +12,7 @@ steps:
- chmod 600 ./tests/ssh/scrippy.rsa
- python -m pip install pip --upgrade
- python -m pip install .[dev]
- python3 -m pytest --cov=scrippy_git --junitxml=./junit_report.xml
- python3 -m pytest -s --cov=scrippy_git --junitxml=./junit_report.xml
when:
event:
exclude:
@ -75,6 +75,6 @@ services:
---
kind: signature
hmac: f3510fae9c2c3aa14c217887ae1a9f7dd902f32754f8de72bdc4745584c78ad6
hmac: 70557e2ee24bf3cb0eab43893bd564a005517799f87953c9de856fa3728be15d
...

+ 4
- 1
tests/docker/Makefile View File

@ -1,5 +1,5 @@
.RECIPEPREFIX +=
.PHONY: run kill build delete prune stop rebuild
.PHONY: run kill build delete prune stop rebuild interactive
stop:
docker-compose down --rmi local --remove-orphans
@ -16,4 +16,7 @@ build:
run:
docker-compose up -d
interactive:
docker exec -ti gitolite /bin/bash
rebuild: | stop delete build run

+ 1
- 1
tests/docker/gitolite.dockerfile View File

@ -9,5 +9,5 @@ RUN usermod --password $(echo 0123456789 | openssl passwd -1 -stdin) git
USER git
RUN /usr/bin/gitolite setup -pk /var/lib/git/scrippy.pub
USER root
ENTRYPOINT ["./start.sh"]
ENTRYPOINT ["./start.sh", "start"]
EXPOSE 2201

Loading…
Cancel
Save