From d59f8cff29fcee2f185f389cdb88699ad89c6147 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 9 Mar 2019 03:18:11 +0100 Subject: [PATCH] Re-add missing travis.sh for now --- travis.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 travis.sh diff --git a/travis.sh b/travis.sh new file mode 100644 index 000000000..b16dce8f3 --- /dev/null +++ b/travis.sh @@ -0,0 +1,22 @@ +#!/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