2016-11-18 07:46:05 +00:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "2.7"
|
2016-11-18 08:11:20 +00:00
|
|
|
# - "3.2"
|
|
|
|
# - "3.3"
|
|
|
|
# - "3.4"
|
2016-11-18 07:46:05 +00:00
|
|
|
- "3.5"
|
|
|
|
# - "3.5-dev" # 3.5 development branch
|
|
|
|
# - "3.6-dev" # 3.6 development branch
|
|
|
|
# - "nightly" # currently points to 3.7-dev
|
|
|
|
# command to install dependencies
|
2016-11-18 08:58:02 +00:00
|
|
|
before_install: 'sudo apt-get install unzip'
|
|
|
|
before_script:
|
|
|
|
- 'wget https://releases.hashicorp.com/terraform/0.7.11/terraform_0.7.11_linux_amd64.zip'
|
2016-11-18 09:35:17 +00:00
|
|
|
- 'mkdir tf_bin'
|
|
|
|
- 'unzip terraform_0.7.11_linux_amd64.zip -d tf_bin'
|
2016-11-18 08:58:02 +00:00
|
|
|
|
2016-11-18 09:08:10 +00:00
|
|
|
install:
|
2016-11-19 15:30:25 +00:00
|
|
|
- "curl https://bootstrap.pypa.io/ez_setup.py -o - | python"
|
2016-11-18 09:08:10 +00:00
|
|
|
- "pip install -r test/requirements.txt"
|
|
|
|
- "pip install ."
|
2016-11-18 07:46:05 +00:00
|
|
|
# command to run tests
|
|
|
|
script:
|
2016-11-18 09:35:17 +00:00
|
|
|
- "export PATH=$PATH:$PWD/tf_bin"
|
2016-11-19 11:06:19 +00:00
|
|
|
- cd test
|
|
|
|
- py.test
|
|
|
|
- cd ..
|
2016-11-19 10:24:33 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
# test pypi
|
|
|
|
- provider: pypi
|
|
|
|
distributions: sdist
|
|
|
|
server: https://testpypi.python.org/pypi
|
|
|
|
user: "beelit94"
|
|
|
|
password:
|
|
|
|
secure: "sWxc+p/gdq3k2WbUGNG2F4TukFNkTkvq6OPaiOvyfgWThYNk6/juRkMd8flmTbh0VGhcjFbpDLeSApb2kFhfiokYJSH1hOOcmXf8xzYH8/+R4DDEiGa5Y/pR9TBvYu4S8eJEfFUFfb1BBpapykj7o43hcaqMExBJIdVJU7aeoEAC1jQeTJh8wWwdJKHy2dNSM+6RVhk3e5+b0LfK7Bk5sU5P+YdEMj79MJU450J4OmZXWzJgvBN5/2QfVa5LrUD00nYuGuiBniz2lVevIHWjUYawUzpPsTa7F0s2WemG9YcV7U8u06xNjY9Ce3CTbxNhc7OIKq+TCkOgR3qZFXVJ8A87G+AT2iQ01VslQ4DJCxnJNTnpqojWnwf6MFL9O8ONioWYO32bhQFKOQ806ASHP4lNMRDKqx8hXtP5In7/r0SARKscv6Bas83rp+FESkKD5vWgkZJG+yx96LlwRLUhSVnVyb/nOJ++zt5RR3BvY2O4p9YAZY3Qt8TQihOdBQKnY3UXsMyNaE25+yvyNWpmyJiePRbTUd+cpLnycnqG9Ll8v6TpFXb6ahFMjlAFfJNQYlREfseClTHSRjZNxfsXGQCsJh6TZAq7jOB5hCk3q41eOUFWARxbyj8j59NBV8fSQrrGJJ9/VZKQeYiQlBB9KpK4PrnH84oeQ8i+VSbVr5w="
|
|
|
|
on:
|
2016-11-19 10:53:22 +00:00
|
|
|
branch: "release/**"
|
2016-11-19 10:24:33 +00:00
|
|
|
tags: false
|
2016-11-19 15:29:57 +00:00
|
|
|
condition: $TRAVIS_PYTHON_VERSION = "3.5"
|
2016-11-19 10:24:33 +00:00
|
|
|
# production pypi
|
2016-11-19 10:44:52 +00:00
|
|
|
- provider: pypi
|
|
|
|
distributions: sdist
|
|
|
|
user: "beelit94"
|
|
|
|
password:
|
|
|
|
secure: "QhCiTLrBvw/Uzt3eiLEmvMP3uHnayVCETqEDA+2+Q9vFavqj0CHA76zqYonBFqnh0a3HFCRIVVt+6ynpZ10kpQ3tAObIw+pY39ZPnpAhOjSpFzzMdpIF9Bhv9A93ng2iSESAZPAOwktHzUwjFx0Zvl0lSYD9rutHgttGgdU2CajiUtwTUhCTjOAVdR2Gm+15H808vzKWnMaKflXxZt+fkt279mQTYAtz6eBWtZwIKry/uAJCSrPSWtbi50O0HsWRMXLXWH5Jn/BVjWSDSM92DssUDq0D+tQyp4M5nQXJ9EyAvEdsKNLx3cvNruznh2ohI2jmcoIjwFiS6+wrEmUiXkP86iyzCSqL/EbcOG0xUh3vbfYtMBp7jENgD405+3SEhPY4PlqUmc+HDtB7FUcHz4y7wGWJRGyQzNnjJ6Tv0Ajdz5mfJubWVIvHjcRqkxTVtUKt50o00xZ62M0ZzQkDTIHQEsZly0XeHAgSvNzWkmjt9BiBrZ9OkoWVkRpSrCBy/EcpDNPCTSfSzOQ0Nq1ePFjkkW1n8QWDW9Pdb+/7/P2y9E2S8CT+nXBkRQeQiO86Qf1Ireg7k9TA5VYisVZ6bEXEc9UV0mAojpSsC7zWhVlbAoltN6ZbjKmqy/wqn2QIcJemcSie0JigzKpdw7l8FPT2lCRyTKlYLpRyKXzSkNI="
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
tags: true
|
2016-11-19 15:29:57 +00:00
|
|
|
condition: $TRAVIS_PYTHON_VERSION = "3.5"
|