-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
56 lines (48 loc) · 2.37 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cache:
pip: true
directories:
- $HOME/Library/Caches/pip
matrix:
include:
- os: linux
sudo: false
language: python
python: 2.7
env: PROTOBUF="3.0.0"
- os: linux
sudo: false
language: python
python: 3.5
env: PROTOBUF="3.0.0"
- os: osx
osx_image: xcode7.3
language: generic
env: PYTHON="2.7", PROTOBUF="3.0.0"
- os: osx
osx_image: xcode7.3
language: generic
env: PYTHON="3.5", PROTOBUF="3.0.0"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PYTHON" == "2.7" ]]; then brew install python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PYTHON" == "3.5" ]]; then brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then /usr/local/bin/python$PYTHON -m pip install virtualenv; virtualenv venv -p /usr/local/bin/python$PYTHON; source venv/bin/activate; fi
install:
- pushd /tmp
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://github.com/google/protobuf/releases/download/v$PROTOBUF/protoc-$PROTOBUF-linux-x86_64.zip && unzip protoc-$PROTOBUF-linux-x86_64.zip; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://github.com/google/protobuf/releases/download/v$PROTOBUF/protoc-$PROTOBUF-osx-x86_64.zip && unzip protoc-$PROTOBUF-osx-x86_64.zip; fi
- popd
- export PATH=/tmp/bin:$PATH
- python -m pip install -r requirements.txt
- python -m pip install -r requirements-dev.txt
script:
- python -m pylint -j 2 pokecli.py pokemongo_bot plugins api
- python -m pytest -n 2 --cov=pokemongo_bot --cov=plugins pokemongo_bot/ plugins/
after_success:
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- master
- \d+\.\d+\.\d+
notifications:
slack:
secure: OVA5zqmalbyJb0H5+zeLJpcxf6Vx7lDunn/PcZHRKnSACFgygSgY4Hq0Nc97E4noIj2COQFEMO8qmpIQ5U2vxZ1hovguM/xZ5q0fdPdRM47ID3q3GIyuPxy+7rAEES5vrID9fswfKV2N60BRy98PeTzexNST6wMTDIJdTRapmnFKqt9ketE3n4bbjGvUm6NZiQ06V6SPuA0BWzabmCuAwfh655ve37SclFABagjZ0oWqUsYtwElcrXM2fnyz/u3pkLKzMUQ5RRheXUpdZOxMvJ8nQnckh4hyDPEbPEt1VFblERUJPBd2WSNhmmvMLgbbCvDHIBaGW0Dqf0c7/DopWFReIxYMOCau8jycbMN5Xx4xZ6DA8KSXOOi9kNIPTtn5AbOOE6t3wugTcCKI7kX/O1FMUHxvhXNxI+fGBQSwIw5csu/SL8ZlHv1EFIVhVI1eFpuCAudQYGEuPv6jvBLBtRb+5zu2VTJ8qADqPGAp6VqXoZ9XHOWBwrhAR/F14Jk6cDCHAoHC/sUbns9AmUnQOz19ugtoEq7NQkB53fENbC+DN+IO9YyCwnCV9rqQLlxt4qN9cQ985yzh7O4T5csd3Utc0wqtvn7100SY3sbhu2I842aYp8qqYF4UrTl6oCL3Z14aIfKLeI/MTknbdqF8uZGwBsHpjZtAzgO3EsCNDbU=