forked from ome/omego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (30 loc) · 1.21 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
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
env: USER_AGENT=Travis
before_install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors argparse; fi
- pip install -r requirements.txt --use-mirrors
- pip install -r dev_requirements.txt --use-mirrors
- sudo apt-get update -qq
- sudo apt-get install -qq ice34-services python-zeroc-ice
install: python omego/main.py -h
before_script:
- psql -c "create user omero with password 'omero';" -U postgres
- psql -c "create database omero with owner omero;" -U postgres
- psql -c "select 1;" -U omero -h localhost omero
- sudo mkdir /OMERO
- sudo chown $USER:$USER /OMERO
- wget --user-agent $USER_AGENT http://downloads.openmicroscopy.org/omero/5.0.0-rc1/artifacts/OMERO.server-5.0.0-rc1-ice34-b10.zip
- unzip -qq OMERO.server-5.0.0-rc1-ice34-b10.zip
- ln -s OMERO.server-5.0.0-rc1-ice34-b10 OMERO-CURRENT
- OMERO-CURRENT/bin/omero db script "" "" ome -f OMERO.sql
- psql -q -h localhost -U omero omero < OMERO.sql
- OMERO-CURRENT/bin/omero admin start
script:
- nosetests -v -d test
- flake8 omego test
after_failure:
- tail -n 1000 OMERO-CURRENT/var/log/Blitz-0.log