terraform/.travis.yml

29 lines
463 B
YAML
Raw Normal View History

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:
- TEST_DIR=examples/azure-vm-simple-linux
2017-03-13 23:07:10 +01:00
2015-01-22 21:57:01 +01:00
branches:
only:
- /^(?i:topic)-.*$/
# install terraform
before_deploy:
2017-04-24 19:14:07 +02:00
- cd $TEST_DIR && ./before_deploy.sh
2017-04-24 18:45:24 +02:00
2017-04-19 17:51:07 +02:00
# terraform deploy script
deploy:
- provider: script
skip_cleanup: true
script: cd $TEST_DIR && ./deploy.sh
2017-04-24 18:45:24 +02:00
# destroy resources with Azure CLI
after_deploy:
2017-04-24 19:14:07 +02:00
- cd $TEST_DIR && ./after_deploy.sh