1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 08:12:27 +00:00

TAGNAME->SLUG and cache in .eggs

This commit is contained in:
J. Fernando Sánchez 2017-02-13 20:07:20 +01:00
parent 7cc8b562f4
commit 2e3a6b7c84

View File

@ -14,17 +14,13 @@ stages:
.test: &test_definition .test: &test_definition
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.eggs"
cache: cache:
paths: paths:
- .venv/ - .eggs/
- pip-cache/
key: "$CI_PROJECT_NAME" key: "$CI_PROJECT_NAME"
stage: test stage: test
script: script:
- pip install virtualenv
- virtualenv -q .venv
- source .venv/bin/activate
- python setup.py test - python setup.py test
test-3.5: test-3.5:
@ -46,8 +42,8 @@ test-2.7:
before_script: before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script: script:
- docker build -f Dockerfile-3.5 . -t $CI_REGISTRY_IMAGE:$CI_BUILD_TAG-$PYTHON_VERSION - docker build -f Dockerfile-3.5 . -t $CI_REGISTRY_IMAGE:$CI_BUILD_REF_SLUG-$PYTHON_VERSION
- docker push $CI_REGISTRY_IMAGE:$CI_BUILD_TAG-$PYTHON_VERSION - docker push $CI_REGISTRY_IMAGE:$CI_BUILD_REF_SLUG-$PYTHON_VERSION
stage: images stage: images
only: only:
- tags - tags