mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
streamline ci/build systems
This commit is contained in:
parent
eebeaf4fbf
commit
1292c11ece
|
@ -43,6 +43,10 @@ install:
|
|||
- "python --version"
|
||||
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
||||
|
||||
# Upgrade to the latest version of pip to avoid it displaying warnings
|
||||
# about it being out of date.
|
||||
- "pip install --disable-pip-version-check --user -U pip"
|
||||
|
||||
# Install the build dependencies of the project. If some dependencies contain
|
||||
# compiled extensions and are not provided as pre-built wheel packages,
|
||||
# pip will build them from source using the MSVC compiler matching the
|
||||
|
|
17
.travis.yml
17
.travis.yml
|
@ -12,21 +12,14 @@ os:
|
|||
- linux
|
||||
|
||||
env:
|
||||
- PIP_DATE=2015-10-01 PIP=1 INSTALL=0 DEVELOP=0
|
||||
- PIP_DATE=2015-10-01 PIP=0 INSTALL=1 DEVELOP=0
|
||||
- PIP_DATE=2015-10-01 PIP=0 INSTALL=0 DEVELOP=1
|
||||
- PIP_DATE=2015-10-01 MODE=pip
|
||||
- PIP_DATE=2015-10-01 MODE=setup-install
|
||||
- PIP_DATE=2015-10-01 MODE=setup-develop
|
||||
|
||||
install:
|
||||
- pip install --disable-pip-version-check -U pip
|
||||
- python build.py prepare $PIP_DATE
|
||||
|
||||
script:
|
||||
- if [[ "$PIP" == "1" ]]; then
|
||||
python build.py pip;
|
||||
fi
|
||||
- if [[ "$INSTALL" == "1" ]]; then
|
||||
python build.py setup-install;
|
||||
fi
|
||||
- if [[ "$DEVELOP" == "1" ]]; then
|
||||
python build.py setup-develop;
|
||||
fi
|
||||
- python build.py $MODE;
|
||||
- python build.py test
|
||||
|
|
5
build.py
5
build.py
|
@ -23,7 +23,6 @@ install_mode = sys.argv[1]
|
|||
|
||||
if install_mode == 'prepare':
|
||||
x('python pip-clear.py')
|
||||
x('pip install --disable-pip-version-check -U pip setuptools')
|
||||
|
||||
pip_date = len(sys.argv) > 2 and sys.argv[2]
|
||||
if pip_date:
|
||||
|
@ -50,10 +49,6 @@ elif install_mode == 'setup-install':
|
|||
|
||||
|
||||
elif install_mode == 'setup-develop':
|
||||
x('python setup.py develop')
|
||||
x('python pip-clear.py')
|
||||
|
||||
x('pip list')
|
||||
x('pip install -e .')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user