image: tailhook/vagga:v0.7.2-93-g0884e15

stages:
- build
- test
- deploy

before_script:
- export FEATURES_SHASH=`vagga _version_hash --short features`
- export TEST_SHASH=`vagga _version_hash --short test`
- export MYSQL_SHASH=`vagga _version_hash --short mysql`
- "echo Features: $FEATURES_SHASH\\; Test: $TEST_SHASH\\; MySQL: $MYSQL_SHASH."

cache:
  paths:
  - .gitlab/containers

vagga:build:
  stage: build
  # basically just run pre-commit linters
  script:
  - cp -v .gitlab/.vagga.yaml ~/
  - vagga _build test &
  - test_build_pid=$!
  - vagga _build mysql &
  - mysql_build_pid=$!
  - "( wait $test_build_pid; vagga _push_image features ) &"
  - "( wait $test_build_pid; vagga _push_image test ) &"
  - "( wait $mysql_build_pid; vagga _push_image mysql ) &"
  - wait
  artifacts:
    paths:
    - .gitlab/containers
  cache: {}

vagga:lint:
  stage: test
  # basically just run pre-commit linters
  script: vagga lint

vagga:test:
  stage: test
  script: vagga test

image: tailhook/vagga:v0.7.2-93-g0884e15

stages:
- build
- test
- deploy

before_script:
- export FEATURES_SHASH=`vagga _version_hash --short features`
- export TEST_SHASH=`vagga _version_hash --short test`
- export MYSQL_SHASH=`vagga _version_hash --short mysql`
- "echo Features: $FEATURES_SHASH\\; Test: $TEST_SHASH\\; MySQL: $MYSQL_SHASH."

cache:
  paths:
  - .gitlab/containers

vagga:build:
  stage: build
  # basically just run pre-commit linters
  script:
  - cp -v .gitlab/.vagga.yaml .vagga.settings.yaml
  - vagga _build test &
  - test_build_pid=$!
  - vagga _build mysql &
  - mysql_build_pid=$!
  - "( wait $test_build_pid; vagga _push_image features ) &"
  - "( wait $test_build_pid; vagga _push_image test ) &"
  - "( wait $mysql_build_pid; vagga _push_image mysql ) &"
  - wait
  artifacts:
    paths:
    - .gitlab/containers
  cache: {}

vagga:lint:
  stage: test
  # basically just run pre-commit linters
  script: vagga lint

vagga:test:
  stage: test
  script: vagga test

Copy vagga settings to local config
Copy vagga settings to local config
