Skip to content

Travis-CI for Windows #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 31, 2021
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,23 @@ python:
#install:
# - python setup.py install
install:
- pip install ".[test]"
- pip3 install ".[test]"
script:
- python -m pytest
- udapy read.Conllu files=udapi/core/tests/data/babinsky.conllu write.TextModeTrees color=1
- cd udapi/core/tests && ./external_tests.sh
matrix:
jobs:
include:
- name: "Python 3.7.4 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
- name: "Python 3.9 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.7.4
- choco install python
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pytest
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
script:
- python -c 'import colorama;print("\033[31m some red text")'
- python -Xutf8 -c 'import udapi;udapi.Document("udapi/core/tests/data/babinsky.conllu").draw(color=1)'
- python -m pytest