terraform-azurerm-vm/.travis.yml

25 строки
730 B
YAML

# Build matrix / environment variable are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on:
# http://lint.travis-ci.org/
sudo: required
language: ruby
rvm:
- 2.3
services:
- docker
env:
- TERRAFORM_VERSION=0.11.3 IMAGE_NAME=azure-vm-module
jobs:
include:
- stage: rake full
install: true
script:
- docker build --build-arg BUILD_TERRAFORM_VERSION=${TERRAFORM_VERSION} --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t ${IMAGE_NAME} .
- docker run ${IMAGE_NAME} rake full