mirror of
https://github.com/nicolabs/nicobot.git
synced 2025-09-05 17:15:36 +02:00
Trying to build on more OSes
This commit is contained in:
parent
7aa6d9ec71
commit
8d1d110a57
37
.travis.yml
37
.travis.yml
|
@ -1,13 +1,32 @@
|
||||||
|
# See https://docs.travis-ci.com/user/languages/python/#running-python-tests-on-multiple-operating-systems
|
||||||
language: python
|
language: python
|
||||||
python:
|
jobs:
|
||||||
- "3.5"
|
include:
|
||||||
- "3.6"
|
- name: "Python x on Xenial Linux"
|
||||||
- "3.7"
|
python: # this works for Linux but is ignored on macOS or Windows
|
||||||
- "3.8"
|
- "3.5"
|
||||||
- "3.9"
|
- "3.6"
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
|
- "3.9"
|
||||||
|
- name: "Python 3.7 on macOS"
|
||||||
|
os: osx
|
||||||
|
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
|
||||||
|
language: shell # 'language: python' is an error on Travis CI macOS
|
||||||
|
- name: "Python 3.8 on Windows"
|
||||||
|
os: windows # Windows 10.0.17134 N/A Build 17134
|
||||||
|
language: shell # 'language: python' is an error on Travis CI Windows
|
||||||
|
before_install:
|
||||||
|
- choco install python --version 3.8.0
|
||||||
|
- python -m pip install --upgrade pip
|
||||||
|
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
|
||||||
install:
|
install:
|
||||||
# Generates nicobot/version.py
|
# Generates nicobot/version.py
|
||||||
- python setup.py build
|
# 'python' points to Python 2.7 on macOS but points to Python 3.8 on Linux and Windows
|
||||||
- pip install -r requirements-build.txt -r requirements-runtime.txt
|
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
|
||||||
|
- python3 setup.py build || python setup.py build
|
||||||
|
- pip3 install -r requirements-build.txt -r requirements-runtime.txt
|
||||||
script:
|
script:
|
||||||
- python -m unittest discover -s tests
|
# 'python' points to Python 2.7 on macOS but points to Python 3.8 on Linux and Windows
|
||||||
|
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
|
||||||
|
- python3 -m unittest discover -s tests || python -m unittest discover -s tests
|
||||||
|
|
Loading…
Reference in a new issue