mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-21 00:49:06 +01:00
cleaning up before initial release
This commit is contained in:
48
.travis.yml
Normal file
48
.travis.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
language: ruby
|
||||
sudo: required
|
||||
dist: trusty
|
||||
services:
|
||||
- docker
|
||||
rvm:
|
||||
- 2.4.2
|
||||
before_install:
|
||||
- echo "before_install"
|
||||
install:
|
||||
- echo "install"
|
||||
- gem install bundler --no-rdoc --no-ri
|
||||
- bundle install
|
||||
before_script:
|
||||
- echo 'before_script'
|
||||
- export AWS_REGION='us-west-2'
|
||||
- export TF_VAR_region=${AWS_REGION}
|
||||
- echo "using AWS_REGION=${AWS_REGION}"
|
||||
- export TF_WARN_OUTPUT_ERRORS=1
|
||||
- curl --silent --output terraform.zip https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip
|
||||
- sha256sum terraform.zip | grep "6b8ce67647a59b2a3f70199c304abca0ddec0e49fd060944c26f666298e23418"
|
||||
- unzip terraform.zip ; rm -f terraform.zip; chmod +x terraform
|
||||
- mkdir -p ${HOME}/bin ; export PATH=${PATH}:${HOME}/bin; mv terraform ${HOME}/bin/
|
||||
- terraform -v
|
||||
script:
|
||||
- echo 'script'
|
||||
- terraform init
|
||||
- terraform fmt -check=true
|
||||
- terraform validate -var "region=${AWS_REGION}" -var "subnets=[]" -var "vpc_id=vpc-abcde012" -var "load_balancer_name=my-lb" -var "log_bucket_name=my-log-bucket" -var "security_groups=[]"
|
||||
- docker run --rm -v $(pwd):/app/ --workdir=/app/ -t wata727/tflint --error-with-issues
|
||||
- cd examples/eks_test_fixture
|
||||
- terraform init
|
||||
- terraform fmt -check=true
|
||||
- terraform validate
|
||||
- cd -
|
||||
- terraform -v
|
||||
- bundle exec kitchen test --destroy always
|
||||
deploy:
|
||||
provider: script
|
||||
script: ci/deploy.sh
|
||||
on:
|
||||
branch: master
|
||||
notifications:
|
||||
email:
|
||||
recipients:
|
||||
- brandon@atscale.run
|
||||
on_success: change
|
||||
on_failure: change
|
||||
Reference in New Issue
Block a user