Updates .gitlab-ci.yml, closes closes
@@ -15,10 +15,11 @@ services:
- docker:dind
before_script:
- # Installing docker-compose:
+ # Installing global dependencies:
- apk update && apk upgrade
- - apk add python python-dev py-pip git build-base
- - pip install dump-env docker-compose pre-commit
+ - apk add python3 python3-dev py3-pip git build-base
+ - pip3 install -U pip
+ - pip3 install dump-env docker-compose docker-image-size-limit
# Creating `.env` configuration file:
- dump-env -t config/.env.template -p 'SECRET_' > config/.env
# Login into Docker registry:
@@ -30,7 +31,10 @@ before_script:
test:
stage: test
script:
- - pre-commit run -a
+ - docker-compose -f docker-compose.yml
+ -f docker/docker-compose.prod.yml config --quiet
+ - docker-compose run --rm web sh ./docker/ci.sh
+ - disl "${PROJECT_NAME}_web:latest" 500MiB
coverage: '/[\d\.]+\%\s*$/'
# Releasing image, when tests pass:
