summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 59c7976d0e73e29d58fbae1d41c1b3576ae78acc (plain)
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
language: python
python:
#  - "2.5"
  - "2.6"
  - "2.7"
  - "pypy-5.4"
#  - "3.0"
#  - "3.1"
  - "3.2"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"
  - "pypy3"
sudo: false
jobs:
  include:
    - python: "3.7"  # 3.7.0  pip 10.0.1
      dist: xenial   # required for "3.7"
      sudo: true     # required for "3.7"
install:
  - pip install coveralls
  - pip install protobuf
script:
  - make -C tools/python test
  - |
        if [ "$TRAVIS_PYTHON_VERSION" = "2.7" ]; then
           cd python
           COVERAGE_FILE=main.cov coverage run --source=phonenumbers ./testwrapper.py
           COVERAGE_FILE=pb2.cov coverage run --source=phonenumbers.pb2 ./testpb2.py
           coverage combine main.cov pb2.cov
           cd ..
        fi
after_success:
  - cd python && coveralls && cd ..