forked from CERNDocumentServer/cds-videos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (61 loc) · 2.16 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
addons:
postgresql: 9.4
apt:
update: true
sources:
- sourceline: 'ppa:kirillshkrogalev/ffmpeg-next'
packages:
- nodejs
- libfreetype6-dev
- ffmpeg
notifications:
email: false
sudo: false
language: python
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/.nvm"
services:
- postgresql
- redis
- rabbitmq
matrix:
fast_finish: true
env:
- REQUIREMENTS=prod E2E="no" SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/cds" ES_VERSION=2.2.0 ES_HOST=127.0.0.1
# - REQUIREMENTS=prod E2E="yes" SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/cds" ES_VERSION=2.2.0 ES_HOST=127.0.0.1
- REQUIREMENTS=qa E2E="no" SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/cds" ES_VERSION=2.2.0 ES_HOST=127.0.0.1
# - REQUIREMENTS=qa E2E="yes" SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/cds" ES_VERSION=2.2.0 ES_HOST=127.0.0.1
- REQUIREMENTS=devel E2E="no" SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/cds" ES_VERSION=2.2.0 ES_HOST=127.0.0.1
# - REQUIREMENTS=devel E2E="yes" SQLALCHEMY_DATABASE_URI="postgresql+psycopg2://postgres@localhost:5432/cds" ES_VERSION=2.2.0 ES_HOST=127.0.0.1
python:
- '2.7'
- '3.5'
before_install:
- ./.travis-extra-install.sh ${ES_VERSION}
- "./scripts/setup-npm.sh"
- ./.travis-requirements-build.sh
install:
- travis_retry pip install -r .travis-${REQUIREMENTS}-requirements.txt
- travis_retry pip install -e .[all]
- "./scripts/setup-assets.sh"
before_script:
- if [ ${E2E} == 'yes' ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start;
export E2E_WEBDRIVER_BROWSERS='Firefox'; fi
- if [ ${E2E} == 'yes' ]; then cds index init; fi
- sleep 15
script:
- if [ ${E2E} == 'yes' ]; then py.test tests/e2e/; else ./run-tests.sh; fi
after_success:
- coveralls
deploy:
provider: pypi
user: egabancho
password:
secure: b7/R6MCzZGQXbJq0si2epfaYmKMDnYRgbAQtkxNa1rcjqAh1coFVFomgZ25A2HFQyKmqClLfTfmbkb0oa4O+veLkS+W26d4awsYBcZeLt5YS4kdQAsuNtMiVCOlmCNLpnpfFSY4hisgIPi6WIiUNLAOamK607F6MElgriKLPPDo=
on:
tags: true
distributions: sdist bdist_wheel
repo: CERNDocumentServer/cds-videos
branch: cdslabs