44 lines
1.7 KiB
YAML
44 lines
1.7 KiB
YAML
sudo: false
|
|
language: python
|
|
python:
|
|
- 2.7
|
|
- 3.4
|
|
- 3.5
|
|
- 3.6
|
|
- pypy
|
|
|
|
env:
|
|
global:
|
|
# These two accounts are made specifically for this purpose, and the passwords are really only encrypted for obscurity
|
|
# In reality, you could probably still login with the accounts by looking at log output from travis-ci.org
|
|
- client1_email=travis.fbchat1@gmail.com # Facebook ID: 100023782141139
|
|
- secure: "W1NON6qaLnvYIOVoC93MXkmbAIkUkHcGREBwN0BSVM3cLuMduk4VVkz6PY2T8bnntGYVwicXwcn5aNJ6pDue17TBZqGPk/tdpws8mnAZUtBYhpkIFTTlyh5kJSZejx9fd5s4nceGpH6ofCCnNxPp2PdHKU8piqnQYZVQ4cFNNDE=" # client1_password
|
|
- client2_email=fbchat.travis2@gmail.com # Facebook ID: 100026538491708
|
|
- secure: "V7RB3go2Tc/DdW1x9DkMI+vCfnOgiS3ygmFCABs/GjfPZjZL7VLMJgYGlx0cjeeeN+Oxa2GrhczRAKeMdGB6Ss2lGGAVs6cjJ56ODuBHWT6/FNzLjtDkTnjD+Kfh0l8ZOdxTF3MQ6M/9hU6z5ek+XYGr7u+/7wOYZ5L2cK5MaQ0=" # client2_password
|
|
- group_id=1463789480385605
|
|
|
|
install:
|
|
- pip install -U -r requirements.txt
|
|
- pip install -U -r dev-requirements.txt
|
|
|
|
before_script:
|
|
- if [[ "$TRAVIS_PYTHON_VERSION" = "2.7" ]]; then export PYTEST_ADDOPTS='-m ""'; fi; # expensive tests (otherwise disabled in pytest.ini)
|
|
- if [[ "$TRAVIS_PULL_REQUEST" != false ]]; then export PYTEST_ADDOPTS='-m offline'; fi; # offline tests only
|
|
|
|
script: python -m pytest || python -m pytest --lf; # Run failed tests twice
|
|
|
|
cache:
|
|
pip: true
|
|
directories:
|
|
- .pytest_cache
|
|
|
|
deploy:
|
|
provider: pypi
|
|
user: madsmtm
|
|
password:
|
|
secure: "VA0MLSrwIW/T2KjMwjLZCzrLHw8pJT6tAvb48t7qpBdm8x192hax61pz1TaBZoJvlzyBPFKvluftuclTc7yEFwzXe7Gjqgd/ODKZl/wXDr36hQ7BBOLPZujdwmWLvTzMh3eJZlvkgcLCzrvK3j2oW8cM/+FZeVi/5/FhVuJ4ofs="
|
|
distributions: sdist bdist_wheel
|
|
on:
|
|
branch: master
|
|
tags: true
|