Verified Commit 2c7eb11a authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

ci: separate cache for different db backends

parent 386a63dd
Pipeline #6283 passed with stages
in 20 minutes and 33 seconds
......@@ -29,7 +29,7 @@ variables:
POSTGRES_USER: postgres
POSTGRES_DB: test
ACCOUNTS_SESSION_REDIS_URL: "redis://redis:6379/1"
PIP_CACHE_DIR: pip-cache
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache"
UPLOADBYURL_REDISSTORE_URL: "redis://redis:6379/0"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_USER: test
......@@ -37,10 +37,6 @@ variables:
MYSQL_DATABASE: test
SFTP_SERVER: sftp
cache:
paths:
- pip-cache
before_script:
- apt-get update
- apt-get install -qy sshpass
......@@ -66,13 +62,31 @@ before_script:
script:
- ./run-tests.sh
.cache-sqlite: &cache-sqlite
cache:
key: pip-sqlite
paths:
- "$CI_PROJECT_DIR/.pip-cache"
.cache-postgres: &cache-postgres
cache:
key: pip-postgres
paths:
- "$CI_PROJECT_DIR/.pip-cache"
.cache-mysql: &cache-mysql
cache:
key: pip-mysql
paths:
- "$CI_PROJECT_DIR/.pip-cache"
.python35: &python35
<<: *base-job
image: python:3.5
.python36: &python36
<<: *base-job
image: python:3.5
image: python:3.6
.sqlite: &sqlite
SQLALCHEMY_DATABASE_URI: "sqlite:///test.db"
......@@ -94,72 +108,84 @@ before_script:
py3.5-min-sqlite:
<<: *python35
<<: *cache-sqlite
variables:
<<: *sqlite
<<: *min
py3.5-pypi-sqlite:
<<: *python35
<<: *cache-sqlite
variables:
<<: *sqlite
<<: *pypi
py3.5-min-postgresql:
<<: *python35
<<: *cache-postgres
variables:
<<: *postgresql
<<: *min
py3.5-pypi-postgresql:
<<: *python35
<<: *cache-postgres
variables:
<<: *postgresql
<<: *pypi
py3.5-min-mysql:
<<: *python35
<<: *cache-mysql
variables:
<<: *mysql
<<: *min
py3.5-pypi-mysql:
<<: *python35
<<: *cache-mysql
variables:
<<: *mysql
<<: *pypi
py3.6-min-sqlite:
<<: *python36
<<: *cache-sqlite
variables:
<<: *sqlite
<<: *min
py3.6-pypi-sqlite:
<<: *python36
<<: *cache-sqlite
variables:
<<: *sqlite
<<: *pypi
py3.6-min-postgresql:
<<: *python36
<<: *cache-postgres
variables:
<<: *postgresql
<<: *min
py3.6-pypi-postgresql:
<<: *python36
<<: *cache-postgres
variables:
<<: *postgresql
<<: *pypi
py3.6-min-mysql:
<<: *python36
<<: *cache-mysql
variables:
<<: *mysql
<<: *min
py3.6-pypi-mysql:
<<: *python36
<<: *cache-mysql
variables:
<<: *mysql
<<: *pypi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment