-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update travis yml Install tweetokenize separately Add coverage report in circleci Install git for coveralls
- Loading branch information
1 parent
d96b57a
commit 0bcde7a
Showing
5 changed files
with
86 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: ubuntu:14.04 | ||
working_directory: ~/circulate | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Python Pip JDK | ||
command: | | ||
apt-get update && apt-get install -y python python-pip python-dev software-properties-common git | ||
add-apt-repository -y ppa:openjdk-r/ppa | ||
apt-get update && apt-get install -y openjdk-8-jdk | ||
export JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
- run: | ||
name: Private Pypi Config Setup | ||
command: | | ||
echo "[distutils]" >> ~/.pypirc | ||
echo "index-servers = pypi-private" >> ~/.pypirc | ||
echo "[pypi-private]" >> ~/.pypirc | ||
echo "repository=$PYPI_HOST" >> ~/.pypirc | ||
echo "username=$PYPI_USERNAME" >> ~/.pypirc | ||
echo "password=$PYPI_PASSWORD" >> ~/.pypirc | ||
- run: | ||
name: Pre-install Virtual Env | ||
command: | | ||
pip install virtualenv | ||
virtualenv venv | ||
- restore_cache: | ||
key: deps2.7-{{ .Branch }}-{{ checksum "requirements.txt" }} | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
. venv/bin/activate | ||
export JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
pip install -U pip wheel setuptools | ||
pip install cython | ||
pip install coveralls | ||
pip install -r requirements.txt --extra-index-url $PYPI_HOST | ||
- save_cache: | ||
key: deps2.7-{{ .Branch }}-{{ checksum "requirements.txt" }} | ||
paths: | ||
- "venv" | ||
- run: | ||
name: Test | ||
command: | | ||
. venv/bin/activate | ||
export JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
coverage run --source=. -m unittest discover -v | ||
coverage report | ||
COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN coveralls --verbose | ||
- run: | ||
name: Push To Private Pypi Server | ||
command: | | ||
. venv/bin/activate | ||
python setup.py bdist_wheel upload -r $PYPI_HOST | ||
python setup.py sdist upload -r $PYPI_HOST | ||
- store_artifacts: | ||
path: test-reports/ | ||
destination: tr1 | ||
|
||
workflows: | ||
version: 2 | ||
build-and-deploy: | ||
jobs: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
recursive-include emoint/resources/ * | ||
recursive-include emoint/resources/* | ||
include README.md | ||
include requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--extra-index-url https://seernet-pypi.herokuapp.com/ | ||
--extra-index-url $PYPI_HOST | ||
Cython | ||
xgboost | ||
sklearn | ||
pandas | ||
scipy | ||
numpy | ||
jnius | ||
pyjnius | ||
tweetokenize | ||
nltk | ||
nltk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters