30 строки
1.5 KiB
YAML
30 строки
1.5 KiB
YAML
language: go
|
|
go:
|
|
- '1.15'
|
|
- '1.16'
|
|
env:
|
|
- TF_INPUT=false TF_VERSION=1.0.0
|
|
|
|
# Install dependencies
|
|
before_install:
|
|
- wget https://releases.hashicorp.com/terraform/"$TF_VERSION"/terraform_"$TF_VERSION"_linux_amd64.zip
|
|
- unzip terraform_"$TF_VERSION"_linux_amd64.zip
|
|
- sudo mv terraform /usr/local/bin/
|
|
- rm terraform_"$TF_VERSION"_linux_amd64.zip
|
|
install:
|
|
- make install test
|
|
script:
|
|
- echo "$TRAVIS_BRANCH"
|
|
- echo $TRAVIS_PULL_REQUEST
|
|
- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
make testacc TWILIO_ACCOUNT_SID="$ACCOUNT_SID" TWILIO_AUTH_TOKEN="$AUTH_TOKEN";
|
|
fi
|
|
notifications:
|
|
slack:
|
|
if: branch = main
|
|
on_pull_requests: false
|
|
on_success: never
|
|
on_failure: change
|
|
rooms:
|
|
secure: u5V05tOR3IkkwYIGrX0l9rvLdc6h1RiHlgzrMTkcJ7CKAvMRE50KVv/kkzJ+CRlKnmJCmmy2/NRw4JbmbubGyZ2/kp3oqmkPRqbHNKlZqQlmW0OacexDxnKxJwhV5uGVAO2ErDKHCoE3O13jsVUiiPmJqpWl5qOU/Gh9K7/YvO0zKAj+fms2hJSG+tw1Qkz+DrMflvSV7MuZLelOWVLI/Jg584wlymN+Tp8Y6N2Napv40XSDz8vneo+vtoay+9tdmRNEwLeNihPWjKQQO+mYiWwtyNm7TcK9nu+IRDt+/B/wAV6Jgnw/6o7+pPsXwGMvR0SIYtgkGz3olgkxIDrPWx7F0Bm+uEwI4JMNYgnR69QXUpmwd1cfSxHpu3tHYWtGExMht8NRCs51UAW9W8qz+x8mHH9p4q+Mq0a4pN3Q82Qj8B+KQCHWX6ZlrO0cWV748cXcVlVh25QVUHfZHfBqKyMQ/QeLTufsROROqYNyXbdUiMziWzSGddo/hscOPWyCYIka+k/B9pzUwi6RoXrlYsfoVRAYCLk+AtXt2xsFqUCkajozZx92Wes1mxrakLLBPQt4r8zjPMMg+nH0DXWi13tD3SMfIPaog543J2CRifQN9CTATdMGK7BCM5kqw2U9u0ZXX5zg6IMebukDxfoHxCtYwEqpJX0OXFTWzzsXnJw=
|