terraform/.travis.yml

34 lines
880 B
YAML
Raw Normal View History

####################################################################################
## NOT FOR UPSTREAM PROPOSAL; INTENDED FOR CI OF AZURE EXAMPLES IN THIS REPO ONLY ##
####################################################################################
sudo: required
services:
- docker
language: generic
2017-04-28 02:51:24 +02:00
# establish environment variables
2017-03-13 23:07:10 +01:00
env:
2017-04-28 02:51:24 +02:00
- TEST_DIR=examples/azure-vm-simple-linux-managed-disk
2015-01-22 21:57:01 +01:00
branches:
only:
- master
- /^(?i:topic)-.*$/
# install terraform
before_deploy:
- export KEY=$(cat /dev/urandom | tr -cd 'a-z' | head -c 12)
- export PASSWORD=$KEY$(cat /dev/urandom | tr -cd 'A-Z' | head -c 2)$(cat /dev/urandom | tr -cd '0-9' | head -c 2)
2017-04-28 02:51:24 +02:00
# terraform deploy + script
deploy:
- provider: script
skip_cleanup: true
2017-04-28 02:51:24 +02:00
script: cd $TRAVIS_BUILD_DIR/$TEST_DIR && ./deploy.ci.sh
on:
repo: harijayms/terraform
branch: master