Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
bd35ec5f
Unverified
Commit
bd35ec5f
authored
Jan 03, 2018
by
Thom Wiggers
📐
Browse files
Try to use pip cache in tox
parent
231da521
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
bd35ec5f
...
...
@@ -10,11 +10,11 @@ variables:
# - pip: tox, coverage
# - apt: ghostscript
PY35_IMAGE
:
twiggers/python-thalia:3.5
PIP_CACHE_DIR
:
"
${CI_PROJECT_DIR}/pip-cache"
pep8
:
image
:
$PY35_IMAGE
before_script
:
-
export PIP_CACHE_DIR="pip-cache"
script
:
-
tox -e flake8
...
...
@@ -22,8 +22,6 @@ pep8:
services
:
-
postgres:latest
before_script
:
-
export PIP_CACHE_DIR="pip-cache"
-
mkdir -p pip-cache
-
git log -1
script
:
-
tox -e ${PYTHON_VERSION}-${DJANGO_VERSION}
...
...
@@ -52,6 +50,6 @@ docs:
cache
:
key
:
"
$CI_JOB_NAME"
paths
:
-
pip-cache
-
"
${PIP_CACHE_DIR}"
# vim: set sw=2 ts=2 et :
tox.ini
View file @
bd35ec5f
...
...
@@ -22,7 +22,9 @@ deps =
django11:
django>=1.11b1,<1.12
{env:CI_DEPS:}
passenv
=
GITLAB_CI
passenv
=
GITLAB_CI
PIP_CACHE_DIR
whitelist_externals
=
sed
cp
...
...
@@ -35,3 +37,5 @@ deps= flake8
skip_install
=
True
commands
=
flake8
.
passenv
=
PIP_CACHE_DIR
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment