mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-27 00:50:42 +03:00
Update CI
Only keep Travis for Python 2.7 for now until we've sorted out unicode build in Azure Pipelines
This commit is contained in:
parent
b11ca720f8
commit
b65e2f554f
|
@ -1,21 +0,0 @@
|
|||
environment:
|
||||
matrix:
|
||||
- PYTHON: "C:\\Python35-x64"
|
||||
- PYTHON: "C:\\Python36-x64"
|
||||
- PYTHON: "C:\\Python37-x64"
|
||||
install:
|
||||
# We need wheel installed to build wheels
|
||||
- "%PYTHON%\\python.exe -m pip install wheel"
|
||||
- "%PYTHON%\\python.exe -m pip install cython"
|
||||
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
|
||||
- "%PYTHON%\\python.exe -m pip install -e ."
|
||||
build: off
|
||||
test_script:
|
||||
- "%PYTHON%\\python.exe -m pytest spacy/ --no-print-logs"
|
||||
after_test:
|
||||
- "%PYTHON%\\python.exe setup.py bdist_wheel"
|
||||
artifacts:
|
||||
- path: dist\*
|
||||
branches:
|
||||
except:
|
||||
- spacy.io
|
13
.travis.yml
13
.travis.yml
|
@ -5,23 +5,16 @@ dist: trusty
|
|||
group: edge
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
os:
|
||||
- linux
|
||||
env:
|
||||
- VIA=compile
|
||||
- VIA=flake8
|
||||
install:
|
||||
- "./travis.sh"
|
||||
- pip install flake8
|
||||
- "pip install -r requirements.txt"
|
||||
- "python setup.py build_ext --inplace"
|
||||
- "pip install -e ."
|
||||
script:
|
||||
- "cat /proc/cpuinfo | grep flags | head -n 1"
|
||||
- "pip install pytest pytest-timeout"
|
||||
- if [[ "${VIA}" == "compile" ]]; then python -m pytest --tb=native spacy; fi
|
||||
- if [[ "${VIA}" == "flake8" ]]; then flake8 . --count --exclude=spacy/compat.py,spacy/lang --select=E901,E999,F821,F822,F823 --show-source --statistics; fi
|
||||
- if [[ "${VIA}" == "pypi_nightly" ]]; then python -m pytest --tb=native --models --en `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi
|
||||
- if [[ "${VIA}" == "sdist" ]]; then python -m pytest --tb=native `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi
|
||||
branches:
|
||||
except:
|
||||
- spacy.io
|
||||
|
|
|
@ -14,8 +14,7 @@ released under the MIT license.
|
|||
|
||||
💫 **Version 2.1 out now!** [Check out the release notes here.](https://github.com/explosion/spaCy/releases)
|
||||
|
||||
[](https://travis-ci.org/explosion/spaCy)
|
||||
[](https://ci.appveyor.com/project/explosion/spaCy)
|
||||
[](https://dev.azure.com/explosion-ai/public/_build?definitionId=8)
|
||||
[](https://github.com/explosion/spaCy/releases)
|
||||
[](https://pypi.python.org/pypi/spacy)
|
||||
[](https://anaconda.org/conda-forge/spacy)
|
||||
|
|
|
@ -30,12 +30,15 @@ jobs:
|
|||
dependsOn: 'Validate'
|
||||
strategy:
|
||||
matrix:
|
||||
Python27Linux:
|
||||
imageName: 'ubuntu-16.04'
|
||||
python.version: '2.7'
|
||||
Python27Mac:
|
||||
imageName: 'macos-10.13'
|
||||
python.version: '2.7'
|
||||
# Python 2.7 currently doesn't work because it seems to be a narrow
|
||||
# unicode build, which causes problems with the regular expressions
|
||||
|
||||
# Python27Linux:
|
||||
# imageName: 'ubuntu-16.04'
|
||||
# python.version: '2.7'
|
||||
# Python27Mac:
|
||||
# imageName: 'macos-10.13'
|
||||
# python.version: '2.7'
|
||||
Python35Linux:
|
||||
imageName: 'ubuntu-16.04'
|
||||
python.version: '3.5'
|
||||
|
@ -76,7 +79,6 @@ jobs:
|
|||
# Downgrading pip is necessary to prevent a wheel version incompatiblity.
|
||||
# Might be fixed in the future or some other way, so investigate again.
|
||||
- script: |
|
||||
python -c "import sys; print('UNICODE:', sys.maxunicode)"
|
||||
python -m pip install --upgrade pip==18.1
|
||||
pip install -r requirements.txt
|
||||
displayName: 'Install dependencies'
|
||||
|
|
22
travis.sh
22
travis.sh
|
@ -1,22 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "${VIA}" == "pypi" ]; then
|
||||
rm -rf *
|
||||
pip install spacy-nightly
|
||||
python -m spacy download en
|
||||
fi
|
||||
|
||||
if [[ "${VIA}" == "sdist" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
|
||||
rm -rf *
|
||||
pip uninstall spacy
|
||||
wget https://api.explosion.ai/build/spacy/sdist/$TRAVIS_COMMIT
|
||||
mv $TRAVIS_COMMIT sdist.tgz
|
||||
pip install -U sdist.tgz
|
||||
fi
|
||||
|
||||
|
||||
if [ "${VIA}" == "compile" ]; then
|
||||
pip install -r requirements.txt
|
||||
python setup.py build_ext --inplace
|
||||
pip install -e .
|
||||
fi
|
Loading…
Reference in New Issue
Block a user