source: trunk/.travis.yml

Last change on this file was 105ddc0, checked in by Chris Wood <chris@…>, at 2019-10-07T15:31:29Z

Add comment re. testing PyInstaller? executables

  • Property mode set to 100644
File size: 2.2 KB
Line 
1sudo: false
2language: python
3cache: pip
4dist: trusty
5before_cache:
6  - rm -f $HOME/.cache/pip/log/debug.log
7git:
8  depth: 1000
9
10env:
11  global:
12    - TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
13
14install:
15# ~/.local/bin is on $PATH by default, but on OS-X, --user puts it elsewhere
16  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export PATH=$HOME/Library/Python/2.7/bin:$PATH; fi
17  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then wget https://bootstrap.pypa.io/get-pip.py && sudo python ./get-pip.py; fi
18  - pip list
19  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then pip install --user --upgrade codecov tox setuptools; fi
20  - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pip install --upgrade codecov tox setuptools; fi
21  - echo $PATH; which python; which pip; which tox
22  - python misc/build_helpers/show-tool-versions.py
23
24script:
25  - |
26    set -eo pipefail
27    if [ "${T}" = "py35" ]; then
28      python3 -m compileall -f -x tahoe-depgraph.py .
29    else
30      tox -e ${T}
31    fi
32    # To verify that the resultant PyInstaller-generated binary executes
33    # cleanly (i.e., that it terminates with an exit code of 0 and isn't
34    # failing due to import/packaging-related errors, etc.).
35    if [ "${T}" = "pyinstaller" ]; then dist/Tahoe-LAFS/tahoe --version; fi
36
37after_success:
38  - if [ "${T}" = "coverage" ]; then codecov; fi
39
40notifications:
41  email: false
42  irc:
43    channels: "chat.freenode.net#tahoe-lafs"
44    on_success: always # for testing
45    on_failure: always
46    template:
47      - "%{repository}#%{build_number} [%{branch}: %{commit} by %{author}] %{message}"
48      - "Changes: %{compare_url} | Details: %{build_url}"
49
50matrix:
51  include:
52  - os: linux
53    python: '2.7'
54    env: T=coverage LANG=en_US.UTF-8
55  - os: linux
56    python: '2.7'
57    env: T=codechecks LANG=en_US.UTF-8
58  - os: linux
59    python: '2.7'
60    env: T=pyinstaller LANG=en_US.UTF-8
61  - os: linux
62    python: '2.7'
63    env: T=py27 LANG=C
64  - os: osx
65    python: '2.7'
66    env: T=py27 LANG=en_US.UTF-8
67    language: generic  # "python" is not available on OS-X
68  - os: osx
69    python: '2.7'
70    env: T=pyinstaller LANG=en_US.UTF-8
71    language: generic  # "python" is not available on OS-X
72  # this is a "lint" job that checks for python3 compatibility
73  - os: linux
74    python: '3.5'
75    env: T=py35
76
77  fast_finish: true
Note: See TracBrowser for help on using the repository browser.