2018-12-18 22:08:51 +00:00
|
|
|
dist: xenial
|
2013-03-01 03:32:52 +00:00
|
|
|
language: python
|
2014-12-28 13:37:13 +00:00
|
|
|
sudo: false
|
2017-09-27 23:04:58 +00:00
|
|
|
services:
|
2019-07-01 03:31:21 +00:00
|
|
|
- docker
|
2013-03-01 03:32:52 +00:00
|
|
|
python:
|
2019-07-01 03:31:21 +00:00
|
|
|
- 2.7
|
|
|
|
- 3.6
|
|
|
|
- 3.7
|
2013-07-09 01:18:19 +00:00
|
|
|
env:
|
2019-07-01 03:31:21 +00:00
|
|
|
- TEST_SERVER_MODE=false
|
|
|
|
- TEST_SERVER_MODE=true
|
2017-09-27 23:04:58 +00:00
|
|
|
before_install:
|
2019-07-01 03:31:21 +00:00
|
|
|
- export BOTO_CONFIG=/dev/null
|
2013-03-01 03:32:52 +00:00
|
|
|
install:
|
2019-07-01 03:31:21 +00:00
|
|
|
- |
|
|
|
|
python setup.py sdist
|
2017-09-27 23:04:58 +00:00
|
|
|
|
2019-07-01 03:31:21 +00:00
|
|
|
if [ "$TEST_SERVER_MODE" = "true" ]; then
|
|
|
|
docker run --rm -t --name motoserver -e TEST_SERVER_MODE=true -e AWS_SECRET_ACCESS_KEY=server_secret -e AWS_ACCESS_KEY_ID=server_key -v `pwd`:/moto -p 5000:5000 -v /var/run/docker.sock:/var/run/docker.sock python:${TRAVIS_PYTHON_VERSION}-stretch /moto/travis_moto_server.sh &
|
|
|
|
fi
|
|
|
|
travis_retry pip install boto==2.45.0
|
|
|
|
travis_retry pip install boto3
|
|
|
|
travis_retry pip install dist/moto*.gz
|
|
|
|
travis_retry pip install coveralls==1.1
|
|
|
|
travis_retry pip install -r requirements-dev.txt
|
2017-09-27 23:04:58 +00:00
|
|
|
|
2019-07-01 03:31:21 +00:00
|
|
|
if [ "$TEST_SERVER_MODE" = "true" ]; then
|
|
|
|
python wait_for.py
|
|
|
|
fi
|
2013-03-11 02:34:30 +00:00
|
|
|
script:
|
2019-07-01 03:31:21 +00:00
|
|
|
- make test
|
2013-03-11 02:34:30 +00:00
|
|
|
after_success:
|
2019-07-01 03:31:21 +00:00
|
|
|
- coveralls
|
|
|
|
before_deploy:
|
|
|
|
- git checkout $TRAVIS_BRANCH
|
|
|
|
- python update_version_from_git.py
|
|
|
|
deploy:
|
|
|
|
- provider: pypi
|
|
|
|
distributions: sdist bdist_wheel
|
|
|
|
user: spulec
|
|
|
|
password:
|
|
|
|
secure: NxnPylnTfekJmGyoufCw0lMoYRskSMJzvAIyAlJJVYKwEhmiCPOrdy5qV8i8mRZ1AkUsqU3jBZ/PD56n96clHW0E3d080UleRDj6JpyALVdeLfMqZl9kLmZ8bqakWzYq3VSJKw2zGP/L4tPGf8wTK1SUv9yl/YNDsBdCkjDverw=
|
|
|
|
on:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
skip_cleanup: true
|
|
|
|
- provider: pypi
|
|
|
|
distributions: sdist bdist_wheel
|
|
|
|
user: spulec
|
|
|
|
password:
|
|
|
|
secure: NxnPylnTfekJmGyoufCw0lMoYRskSMJzvAIyAlJJVYKwEhmiCPOrdy5qV8i8mRZ1AkUsqU3jBZ/PD56n96clHW0E3d080UleRDj6JpyALVdeLfMqZl9kLmZ8bqakWzYq3VSJKw2zGP/L4tPGf8wTK1SUv9yl/YNDsBdCkjDverw=
|
|
|
|
on:
|
|
|
|
tags: true
|