terraform/.travis.yml

34 lines
899 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-03-13 23:07:10 +01:00
# establish environment variables
2017-03-13 23:07:10 +01:00
env:
2017-04-27 03:48:45 +02:00
- TEST_DIR=examples/azure-vm-simple-linux-managed-disk
2017-03-13 23:07:10 +01:00
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-24 18:45:24 +02:00
# terraform deploy + script
deploy:
- provider: script
skip_cleanup: true
script: cd $TRAVIS_BUILD_DIR/$TEST_DIR && ./deploy.ci.sh
2017-04-24 19:17:22 +02:00
on:
2017-04-25 02:40:17 +02:00
repo: harijayms/terraform
2017-04-28 02:47:01 +02:00
branch: topic-101-vm-simple-linux