Start trying to get Windows CI working, refs #511

This commit is contained in:
Simon Willison 2019-07-11 09:35:51 -07:00
commit 3ab8a7cd27

View file

@ -2,15 +2,27 @@ language: python
dist: xenial dist: xenial
# 3.6 is listed first so it gets used for the later build stages # 3.6 is listed first so it gets used for the later build stages
python: matrix:
- "3.6" include:
- "3.7" - os: linux
- "3.5" python: "3.6"
- os: linux
python: "3.5"
- os: linux
python: "3.7"
- os: windows
language: bash
name: Windows
install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
choco install python3;
# Executed for 3.5 AND 3.5 as the first "test" stage: # Executed for 3.5 AND 3.5 as the first "test" stage:
script: script:
- pip install -U pip wheel - python -m pip install -U pip wheel
- pip install .[test] - python -m pip install .[test]
- pytest - pytest
cache: cache:
@ -23,7 +35,7 @@ jobs:
- stage: deploy latest.datasette.io - stage: deploy latest.datasette.io
if: branch = master AND type = push if: branch = master AND type = push
script: script:
- pip install .[test] - python -m pip install .[test]
- npm install -g now - npm install -g now
- python tests/fixtures.py fixtures.db fixtures.json - python tests/fixtures.py fixtures.db fixtures.json
- export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7` - export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7`