-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: python
python: '3.6'
dist: bionic
cache: pip
addons:
postgresql: '10'
apt:
packages:
- postgresql-10
- postgresql-client-10
before_install:
- pip install -r dev-requirements.txt
- flake8 .
install:
- pip install https://github.com/ome/zeroc-ice-ubuntu1804/releases/download/0.3.0/zeroc_ice-3.6.5-cp36-cp36m-linux_x86_64.whl
- pip install .
- pushd ..
- wget -q https://downloads.openmicroscopy.org/omero/5.6.0/artifacts/OMERO.server-5.6.0-ice36-b136.zip && unzip -q OMERO.server-5.6.0-ice36-b136.zip && ln -s OMERO.server-5.6.0-ice36-b136 OMERO.server
- popd
script:
- export OMERODIR=$PWD/../OMERO.server
- pytest test/unit
# To run the integration tests locally set
# OMERODIR=/path/to/OMERO.server POSTGRES_HOST=postgres.server
- pytest test/integration
deploy:
- provider: pypi
# Remove for deployment to official PyPi repo
server: https://test.pypi.org/legacy/
user: __token__
# password: $PYPI_PASSWORD
distributions: sdist bdist_wheel
on:
tags: true