diff options
author | Max Wittig <max.wittig95@gmail.com> | 2019-07-21 19:51:20 +0200 |
---|---|---|
committer | Max Wittig <max.wittig95@gmail.com> | 2019-07-21 20:20:15 +0200 |
commit | 3b523f4c39ba4b3eacc9e76fcb22de7b426d2f45 (patch) | |
tree | 3d34a0f2da92476980ea1583d5165fa0cbae14fd | |
parent | 8ff8af0d02327125fbfe1cfabe0a09f231e64788 (diff) | |
download | gitlab-3b523f4c39ba4b3eacc9e76fcb22de7b426d2f45.tar.gz |
test: minor test fixes
-rw-r--r-- | .travis.yml | 14 | ||||
-rwxr-xr-x | tools/build_test_env.sh | 7 | ||||
-rw-r--r-- | tox.ini | 2 |
3 files changed, 12 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index 18ded19..be7fdf4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,6 @@ sudo: required services: - docker language: python -env: - #- TOX_ENV=py_func_v4 - - TOX_ENV=cli_func_v4 -install: - - pip install tox -script: - - tox -e $TOX_ENV git: depth: false @@ -39,6 +32,13 @@ jobs: script: - pip3 install tox - tox -e cli_func_v4 + #- stage: test + # name: py_func_v4 + # dist: bionic + # python: 3.7 + # script: + # - pip3 install tox + # - tox -e py_func_v4 - stage: test name: docs dist: bionic diff --git a/tools/build_test_env.sh b/tools/build_test_env.sh index 624f879..da2136b 100755 --- a/tools/build_test_env.sh +++ b/tools/build_test_env.sh @@ -76,6 +76,7 @@ cleanup() { trap 'exit 1' HUP INT TERM } +try docker pull registry.gitlab.com/python-gitlab/python-gitlab:test >/dev/null try docker run --name gitlab-test --detach --publish 8080:80 \ --publish 2222:22 registry.gitlab.com/python-gitlab/python-gitlab:test >/dev/null @@ -99,7 +100,7 @@ if [ -z "$NOVENV" ]; then . "$VENV"/bin/activate || fatal "failed to activate Python virtual environment" log "Installing dependencies into virtualenv..." - try pip install -rrequirements.txt + try pip install -r requirements.txt log "Installing into virtualenv..." try pip install -e . @@ -126,7 +127,7 @@ TOKEN=$($(dirname $0)/generate_token.py) cat > $CONFIG << EOF [global] default = local -timeout = 10 +timeout = 30 [local] url = http://localhost:8080 @@ -138,6 +139,6 @@ log "Config file content ($CONFIG):" log <$CONFIG log "Pausing to give GitLab some time to finish starting up..." -sleep 60 +sleep 200 log "Test environment initialized." @@ -1,7 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -envlist = py36,py35,py34,py27,pep8,black +envlist = py38,py37,py36,py35,py34,py27,pep8,black [testenv] setenv = VIRTUAL_ENV={envdir} |