File: .travis.yml

package info (click to toggle)
html5-parser 0.4.9-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,764 kB
  • sloc: ansic: 32,441; python: 2,055; makefile: 13
file content (75 lines) | stat: -rw-r--r-- 2,195 bytes parent folder | download | duplicates (3)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
env:
    global:
        - PYTHONHASHSEED=random

matrix:
    include:
        - os: linux
          language: python
          python: 2.7
          env: BUILDER=build.py CC=gcc PYTHON=python
          group: beta
          dist: trusty
          sudo: false
          addons:
              apt:
                  packages:
                      - libxml2-dev
        - os: linux
          language: python
          python: 2.7
          env: BUILDER=build.py CC=clang PYTHON=python LSAN_OPTIONS=verbosity=1:log_threads=1
          group: beta
          dist: trusty
          # See https://github.com/travis-ci/travis-ci/issues/9033
          sudo: required
          addons:
              apt:
                  packages:
                      - libxml2-dev
        - os: linux
          language: python
          python: 2.7
          env: BUILDER=setup.py PYTHON=python
          group: beta
          dist: trusty
          sudo: false
          addons:
              apt:
                  packages:
                      - libxml2-dev
        - os: linux
          language: python
          python: 3.6
          env: BUILDER=setup.py PYTHON=python
          group: beta
          dist: trusty
          sudo: false
          addons:
              apt:
                  packages:
                      - libxml2-dev
        - os: osx
          language: generic
          env: BUILDER=setup.py PYTHON=python3

install: |
    set -e
    if [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then
        brew update;
        brew upgrade python;
        python3 --version
        pip3 install --no-binary lxml chardet lxml beautifulsoup4
    else
        PLIB=$(ldd `which python` | grep libpython | cut -d ' ' -f 3)
        export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`dirname $PLIB`
        pip install --no-binary lxml chardet lxml beautifulsoup4
        if [[ $TRAVIS_PYTHON_VERSION == 2.* ]]; then pip install BeautifulSoup; fi
    fi
    $PYTHON -c "from lxml import etree; print(etree)"
    git clone --depth 1 "https://github.com/html5lib/html5lib-tests.git" test/html5lib-tests
    set +e

script:
    - $PYTHON $BUILDER test
    - if [[ $BUILDER == "build.py" ]]; then $PYTHON $BUILDER leak; fi