mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Start trying to get Windows CI working, refs #511
This commit is contained in:
parent
f2006cca80
commit
3ab8a7cd27
1 changed files with 19 additions and 7 deletions
26
.travis.yml
26
.travis.yml
|
|
@ -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`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue