<commit_before>language: python

# Use container-based infrastructure
sudo: false

# Those without lxml wheels first because building lxml is slow
python:
 - 3.5
 - 3.2
 - 2.7
 - 2.6
 - 3.4
 - 3.3
 - 3.6

env:
- XMLPARSER=LXML
- XMLPARSER=STDLIB

# ElementTree in 2.6 does not handle namespaces
matrix:
  exclude:
  - python: 2.6
    env: XMLPARSER=STDLIB

install:
# Check whether to install lxml
# Pin versions 2.6 and 3.2 to lxml 3.6 (end of support)
 - if [ "$XMLPARSER" == "LXML" ]; then
     case "$TRAVIS_PYTHON_VERSION" in
       "2.7"|"3.3"|"3.4"|"3.5"|"3.6")
         pip install lxml
         ;;
       "2.6"|"3.2")
         pip install lxml==3.6
         ;;
     esac
   fi


 # Coveralls 4.0 doesn't support Python 3.2
 - if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
 - if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi

 - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi


script:
 - coverage run --source=gpxpy ./test.py

after_success:
 - pip install coveralls
 - coveralls

after_script:
 - coverage report
 - pip install pyflakes pycodestyle
 - pyflakes . | tee >(wc -l)
 - pycodestyle --statistics --count .

matrix:
  fast_finish: true
<commit_msg>Revert ".travis format"<commit_after>language: python

# Use container-based infrastructure
sudo: false

# Those without lxml wheels first because building lxml is slow
python:
 - 3.5
 - 3.2
 - 2.7
 - 2.6
 - 3.4
 - 3.3
 - 3.6

env:
- XMLPARSER=LXML
- XMLPARSER=STDLIB

# ElementTree in 2.6 does not handle namespaces
matrix:
  exclude:
  - python: "2.6"
    env: XMLPARSER=STDLIB

install:
# Check whether to install lxml
# Pin versions 2.6 and 3.2 to lxml 3.6 (end of support)
 - if [ "$XMLPARSER" == "LXML" ]; then
     case "$TRAVIS_PYTHON_VERSION" in
       "2.7"|"3.3"|"3.4"|"3.5"|"3.6")
         pip install lxml
         ;;
       "2.6"|"3.2")
         pip install lxml==3.6
         ;;
     esac
   fi


 # Coveralls 4.0 doesn't support Python 3.2
 - if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
 - if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi

 - if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi


script:
 - coverage run --source=gpxpy ./test.py

after_success:
 - pip install coveralls
 - coveralls

after_script:
 - coverage report
 - pip install pyflakes pycodestyle
 - pyflakes . | tee >(wc -l)
 - pycodestyle --statistics --count .

matrix:
  fast_finish: true

{'fraction_non_alphanumeric': 0.13466042154566746, 'fraction_numerical': 0.04215456674473068, 'mean_word_length': 2.703757225433526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '702138', 'n_tokens_mistral': 1015, 'n_tokens_neox': 972, 'n_words': 270}