From 452550e1cbcf263f39cc299f57de1b5ff9df6594 Mon Sep 17 00:00:00 2001 From: beelit94 Date: Wed, 4 Jan 2017 15:42:16 +0800 Subject: [PATCH] add notification --- .travis.yml | 87 ++++++++++++++++++++++++----------------------------- 1 file changed, 39 insertions(+), 48 deletions(-) diff --git a/.travis.yml b/.travis.yml index 88dc659..4151376 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,60 +1,51 @@ language: python python: - - "2.7" -# - "3.2" -# - "3.3" -# - "3.4" - - "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 -before_install: 'sudo apt-get install unzip' +- '2.7' +- '3.5' +before_install: sudo apt-get install unzip before_script: - - 'export TFVER=0.8.1' - - 'export TFURL=https://releases.hashicorp.com/terraform/' - - 'TFURL+=$TFVER' - - 'TFURL+="/terraform_"' - - 'TFURL+=$TFVER' - - 'TFURL+="_linux_amd64.zip"' - - 'wget $TFURL -O terraform_bin.zip' - - 'mkdir tf_bin' - - 'unzip terraform_bin.zip -d tf_bin' - + - export TFVER=0.8.1 + - export TFURL=https://releases.hashicorp.com/terraform/ + - TFURL+=$TFVER + - TFURL+="/terraform_" + - TFURL+=$TFVER + - TFURL+="_linux_amd64.zip" + - wget $TFURL -O terraform_bin.zip + - mkdir tf_bin + - unzip terraform_bin.zip -d tf_bin install: - - "curl https://bootstrap.pypa.io/ez_setup.py -o - | python" - - "pip install tox-travis" - - "pip install ." -# command to run tests + - curl https://bootstrap.pypa.io/ez_setup.py -o - | python + - pip install tox-travis + - pip install . script: - - "export PATH=$PATH:$PWD/tf_bin" + - export PATH=$PATH:$PWD/tf_bin - tox - branches: only: - master - develop - release/** - 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: - branch: "release/**" - tags: false - condition: $TRAVIS_PYTHON_VERSION = "3.5" - # production pypi - - 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: false - condition: $TRAVIS_PYTHON_VERSION = "3.5" \ No newline at end of file +- 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: + branch: release/** + tags: false + condition: $TRAVIS_PYTHON_VERSION = "3.5" +- 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: false + condition: $TRAVIS_PYTHON_VERSION = "3.5" +notifications: + hipchat: + rooms: + secure: y5uALNnWEpHRa1eXBGYSRt+bX0yEAtbM9+5gTttgf134wyok+XM2biYqhJVxCIBCiCAh5W2t+/Mz2p+I1BeT9letUac2NDEQSPqrKx56e40ZO1plUCllMfCbnX/JkvkY75t7gA9WFJ3M209yle9U78LqaKqcQ8++oZNJmDQx+k1tctmqQPS0Sxt5k0T2IJwASuKxRbFLUKube8lfOa6WsBgbBS153wFozpqD/9nfPpBjKJCPhILg0PsOH8YryHw0RSpU/qrRvShM86R6x+HyKmxoq40t0H7xvHqhn86u1JM/bEtG9l985Zq1Wwxh+pdPnpT39gmMSLkisFV40cSgQkt3A2Go+Y5kELTSYE0gWko+bPC9oGjiNHaxpCGwGjfI4FK5RE3LI13J+SzDC/1QSdfoqIw68s0YNwpL0lrde8hCtG/JzhCG2RBCy9P/asHs1ZQBflKjeQKgqTOpW/j3p6ZiiNzwxMUxsOCc/64aIYXwtwWSj6lLTzy+Roe6yEYXMrik8D+8WLoOEJcgKW+C3D9ZgaQOxkIkuEY4OswzzORN4Tl9tsKWiCn9gY1EY9gNXweAobQSm/TxFqXyR0fA+iIahx89IA3HPvpoavpC8B7gz3esqqIjq5zYL9WMeIpbgBegyGT8ZdvbMcpSWbquM3Zc4gFqOuO2Zbewr3UO59s=