2012-11-06 18:49:29 +00:00
|
|
|
language: python
|
2015-06-24 19:41:22 +00:00
|
|
|
|
2018-10-13 21:40:13 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- language: python
|
|
|
|
python: 2.7
|
|
|
|
os: linux
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
- language: python
|
|
|
|
python: 3.6
|
|
|
|
os: linux
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
- language: python
|
|
|
|
python: 3.6
|
|
|
|
os: linux
|
|
|
|
os: trusty
|
|
|
|
env: RUN=sdist
|
2015-06-24 19:41:22 +00:00
|
|
|
|
2012-11-06 18:49:29 +00:00
|
|
|
before_install:
|
2018-10-13 21:40:13 +00:00
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install python-pip openjdk-7-jdk
|
2012-11-06 18:49:29 +00:00
|
|
|
|
|
|
|
install:
|
2018-10-13 21:40:13 +00:00
|
|
|
- if [ "$RUN" != "sdist" ]; then pip install --upgrade cython six; fi;
|
2012-11-06 18:49:29 +00:00
|
|
|
|
|
|
|
script:
|
2018-10-13 21:40:13 +00:00
|
|
|
- if [ "$RUN" == "sdist" ]; then
|
|
|
|
if [ "$PYJNIUS_DEPLOY" == "1" ]; then
|
|
|
|
pip install twine;
|
|
|
|
python setup_sdist.py sdist;
|
|
|
|
python -m twine upload dist/*;
|
|
|
|
fi;
|
|
|
|
else
|
|
|
|
make && make tests;
|
|
|
|
fi;
|