moto/.travis.yml
Ali Rizwan e57d72ea2b Test travis
Signed-off-by: Ali Rizwan <ari@hellofresh.com>
2017-08-17 10:45:43 +02:00

25 lines
622 B
YAML

language: python
sudo: false
python:
- 2.7
- 3.6
env:
- TEST_SERVER_MODE=false
- TEST_SERVER_MODE=true
install:
- travis_retry pip install boto==2.45.0
- travis_retry pip install boto3
- travis_retry pip install .
- travis_retry pip install -r requirements-dev.txt
- travis_retry pip install coveralls==1.1
- |
if [ "$TEST_SERVER_MODE" = "true" ]; then
AWS_SECRET_ACCESS_KEY=server_secret AWS_ACCESS_KEY_ID=server_key moto_server -p 5000&
export AWS_SECRET_ACCESS_KEY=foobar_secret
export AWS_ACCESS_KEY_ID=foobar_key
fi
script:
- make test
after_success:
- coveralls