Skip to content

Commit

Permalink
getmoto/moto#1941 - fix for it
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganna Novikova committed May 14, 2020
1 parent f98e67c commit 6fecd84
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@ python:
- "3.8"
services:
- docker
env:
global:
- PYTHON_DOCKER_TAG=3.8-buster
- TEST_SERVER_MODE=true
- TRAVIS_CI_MODE=true
- AWS_SECRET_ACCESS_KEY=server_secret
- AWS_ACCESS_KEY_ID=server_key
before_install:
- export BOTO_CONFIG=/dev/null
install:
- pip install --upgrade setuptools wheel boto3 aioboto3 moto pytest requests pytest-asyncio flask moto[server]
- |
python setup.py sdist bdist_wheel
PYTHON_DOCKER_TAG=3.8-buster
TEST_SERVER_MODE=true
docker run --rm -t --name motoserver -e TEST_SERVER_MODE=true -e TRAVIS_CI_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:${PYTHON_DOCKER_TAG} /moto/travis_moto_server.sh &
- python setup.py sdist bdist_wheel
- docker run --rm -t --name motoserver -e TEST_SERVER_MODE=true -e TRAVIS_CI_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:${PYTHON_DOCKER_TAG} /moto/travis_moto_server.sh &

script:
- |
TRAVIS_CI_MODE=true
pytest tests
- pytest tests
deploy:
provider: pypi
user: __token__
Expand Down

0 comments on commit 6fecd84

Please sign in to comment.