#!/bin/bash set -ex usage() { echo "Required env var '$1' is missing"; exit 1; } [ -z "${ARTIFACT_REPOSITORY_TOKEN}" ] && usage "ARTIFACT_REPOSITORY_TOKEN" ; [ -z "${TEST_AGAINST_PUBLISHED_LIB_VERSION}" ] && usage "TEST_AGAINST_PUBLISHED_LIB_VERSION" ; docker-compose build # release dev version if [ -n "${LIB_VERSION}" ]; then docker-compose run assemble docker-compose run publish fi docker-compose run test