Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ env:
# https://docs.travis-ci.com/user/osx-ci-environment/
matrix:
include:
- os: windows
language: shell
before_install:
- choco install python2 -x86

@pratik0316 pratik0316 Apr 2, 2020

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

choco install python2 -x86 installs 32 bit libs in a 32 bit system.
without -x86 it installs 64 bit libs also which causes error during configuration.
ref

- ln -s /c/Python27/python.exe /c/Python27/python2.7.exe
env:
- PATH="/c/Python27:/c/Python27/Scripts:$PATH"
- TEST_SUITE="$PYTEST"
- os: windows
language: shell
before_install:
- choco install python2 -x86
- ln -s /c/Python27/python.exe /c/Python27/python2.7.exe

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to create a soft link pointing to /c/Python27/python.exe as during the configuration it will point to this executable file.

env:
- PATH="/c/Python27:/c/Python27/Scripts:$PATH"
- TEST_SUITE="./etc/release/release.sh"
- os: osx
env: TEST_SUITE="$PYTEST"
language: generic
Expand Down
2 changes: 0 additions & 2 deletions src/deltacode/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def run_scan_click(options, monkeypatch=None, test_mode=True, expected_rc=0, env
from click.testing import CliRunner
from deltacode import cli

options = add_windows_extra_timeout(options)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently we do not have the support for adding the cli option --timeout, we may require it for the Appevyor windows CI as it timesout after 120 sec.

if monkeypatch:
monkeypatch.setattr(click._termui_impl, 'isatty', lambda _: True)
monkeypatch.setattr(click , 'get_terminal_size', lambda : (80, 43,))
Expand Down