Run flake8 from Tumbleweed
This commit is contained in:
parent
fdea133415
commit
106ef6ae69
@ -14,19 +14,12 @@ env:
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- env: TEST_SUITE=flake8
|
||||
language: python
|
||||
python: 3.6
|
||||
install:
|
||||
- pip install flake8
|
||||
script:
|
||||
- flake8
|
||||
- ./dist/ci/flake-extra
|
||||
- env: TEST_SUITE=nosetests
|
||||
language: bash
|
||||
services:
|
||||
- docker
|
||||
script:
|
||||
- docker-compose -f dist/ci/docker-compose.yml run flaker
|
||||
- for var in TRAVIS_BRANCH TRAVIS_JOB_ID TRAVIS_PULL_REQUEST; do echo "$var=${!var}"; done > travis.settings
|
||||
- docker-compose -f dist/ci/docker-compose.yml run test
|
||||
after_success:
|
||||
|
7
dist/ci/docker-compose-flaker.sh
vendored
Executable file
7
dist/ci/docker-compose-flaker.sh
vendored
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
zypper in -y python3-flake8
|
||||
run_as_tester flake8
|
||||
run_as_tester ./dist/ci/flake-extra
|
12
dist/ci/docker-compose.yml
vendored
12
dist/ci/docker-compose.yml
vendored
@ -3,6 +3,11 @@ version: "3.4"
|
||||
x-obs: &obs
|
||||
image: registry.opensuse.org/opensuse/tools/images/containers/osrt_miniobs:latest
|
||||
|
||||
x-testenv: &testenv
|
||||
image: registry.opensuse.org/opensuse/tools/images/containers_tumbleweed/osrt_testenv_tumbleweed:latest
|
||||
volumes:
|
||||
- "../..:/code"
|
||||
|
||||
services:
|
||||
db:
|
||||
<<: *obs
|
||||
@ -29,12 +34,13 @@ services:
|
||||
<<: *obs
|
||||
command: chroot --userspec=obsrun / /usr/lib/obs/server/bs_servicedispatch
|
||||
test:
|
||||
image: registry.opensuse.org/opensuse/tools/images/containers_tumbleweed/osrt_testenv_tumbleweed:latest
|
||||
<<: *testenv
|
||||
depends_on:
|
||||
- api
|
||||
volumes:
|
||||
- "../..:/code"
|
||||
command: /code/dist/ci/docker-compose-test.sh
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
flaker:
|
||||
<<: *testenv
|
||||
command: /code/dist/ci/docker-compose-flaker.sh
|
||||
|
||||
|
2
dist/ci/testenv-tumbleweed/Dockerfile
vendored
2
dist/ci/testenv-tumbleweed/Dockerfile
vendored
@ -5,7 +5,7 @@ RUN useradd tester -d /code/tests/home
|
||||
|
||||
RUN zypper in -y osc python3-nose python3-httpretty python3-pyxdg python3-PyYAML \
|
||||
python3-pika python3-mock python3-cmdln python3-lxml python3-python-dateutil python3-colorama \
|
||||
python3-influxdb python3-coverage python3-coveralls libxml2-tools curl \
|
||||
python3-influxdb python3-coverage python3-coveralls libxml2-tools curl python3-flake8 \
|
||||
vim vim-data strace git sudo patch openSUSE-release openSUSE-release-ftp
|
||||
|
||||
COPY osc-hotpatch.diff /tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user