This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
53 lines (53 loc) · 1.67 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
sudo: false
dist: trusty
language: python
branches:
only:
- master
python:
- "3.5"
install:
- git fetch --unshallow
- pip install -r requirements.txt
- PATH=${TRAVIS_BUILD_DIR}/bin:${PATH} buildout -N -c buildout-${BUILDOUT_TARGET}.cfg buildout:pip_exec=pip
2>/dev/null
- bin/ad_make_wheels
before_script:
# setup xvfb for protractor tests
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- "[ ${BUILDOUT_TARGET} == 'meinberlin' ] && ./bin/ad_check_code -a || return 0"
- "[ ${BUILDOUT_TARGET} == 'meinberlin' ] && ./bin/polytester -v pyunit,pyfunc,jsunit || return 0"
- "[ ${BUILDOUT_TARGET} == 'meinberlin' ] && PATH=${TRAVIS_BUILD_DIR}/bin:${PATH} ./bin/protractor etc/protractorConfFirefox.js || return 0"
notifications:
email: false
cache:
directories:
- eggs
- node_modules
- .cache/pip
- .cache/bower
- .buildout
- parts/wheels
- parts/rubygems
- .gem
- .npm
addons:
firefox: latest-esr
ssh_known_hosts: russell.partou.org
env:
matrix:
- BUILDOUT_TARGET=meinberlin
- BUILDOUT_TARGET=s1
after_success:
- ./bin/coveralls
before_deploy:
- openssl aes-256-cbc -K $encrypted_98f8f05b1b7a_key -iv $encrypted_98f8f05b1b7a_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
deploy:
provider: script
skip_cleanup: true
script: rsync -v --chmod=o+r -e "ssh -p 2212 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -r parts/wheels/* [email protected]:/var/www/wheels.partou.org/ && rsync -v -e "ssh -p 2212 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -r parts/wheels/requirements [email protected]:/var/www/wheels.partou.org/