File: .travis.yml

package info (click to toggle)
python-pywebview 3.3.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 29,536 kB
  • sloc: python: 5,703; javascript: 888; cs: 130; sh: 55; makefile: 3
file content (39 lines) | stat: -rw-r--r-- 1,653 bytes parent folder | download | duplicates (2)
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
matrix:
  include:
    - os: osx
      language: generic
      sudo: required
      python: "3.6_with_system_site_packages"
    - os: linux
      sudo: required
      dist: xenial
      env:
        - PACKAGES="xvfb gir1.2-gtk-3.0 gir1.2-webkit2-4.0 python3-gi python3-gi-cairo python3-pep8 pyflakes python3-pytest python3-six" PYTHON="python3"
    - os: linux
      sudo: required
      dist: xenial
      env:
         - PACKAGES="xvfb python3-pyqt5 python3-pyqt5.qtwebkit libqt5webkit5-dev python3-pep8 pyflakes python3-pytest python3-six" PYTHON="python3"
         - PYWEBVIEW_GUI=qt

install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install pyobjc pytest importlib_resources six; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -q; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --no-install-recommends -y $(echo $PACKAGES); fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip3 install importlib_resources; fi

before_script:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sleep 3; fi

script:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -m pytest tests -s; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd tests; python3 -m site; ./run.sh; fi

after_script:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then killall Xvfb; fi

notifications:
  email: false