forked from camptocamp/tilecloud-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
83 lines (67 loc) · 2.63 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
sudo: required
dist: trusty
language: python
python:
- 2.7
- 3.3
- 3.4
env:
global:
- BERKELEYDB_LIBDIR=/usr/lib/x86_64-linux-gnu BERKELEYDB_INCDIR=/usr/include
before_install:
- chmod o+rx /home/travis
- sudo sed -i '/plugin_directory/d' /etc/boto.cfg
- ssh-keygen -t rsa -C your_email@youremail.com -P '' -f ~/.ssh/id_rsa
- cat /home/travis/.ssh/id_rsa.pub >> /home/travis/.ssh/authorized_keys
- ln -s /home/travis/.ssh/authorized_keys /home/travis/.ssh/authorized_keys2
- echo "Host localhost" >> /home/travis/.ssh/config
- echo " StrictHostKeyChecking no" >> /home/travis/.ssh/config
- chmod g-rw,o-rw /home/travis/.ssh/*
- chmod 644 ~/.bashrc
- echo "PATH=${PATH}" > ~/.bashrc
- sudo rm -f /etc/apt/sources.list.d/pgdg-source.list
- sudo rm -rf /usr/local
- sudo add-apt-repository --yes ppa:stephane-brunner/trusty-gis
- sudo apt-get update
- sudo apt-get install -y --force-yes libstdc++-4.8-dev libc6 libmapnik-dev apache2 libapache2-mod-fcgid cgi-mapserver deploy libdb-dev optipng postgresql-9.3-postgis-2.1
- sudo -u postgres tilecloud_chain/tests/create_test_data.sh
- sudo a2enmod fcgid
- sudo cp tilecloud_chain/tests/apache.conf /etc/apache2/sites-enabled/apache.conf
- sudo apache2ctl graceful
- sudo tilecloud_chain/tests/create-deploy.sh
- ssh localhost echo add to know host
- sudo mkdir /tmp/tests
- sudo chmod g+s,o+w /tmp/tests
install:
- pip install --upgrade pip
- if [[ ${TRAVIS_PYTHON_VERSION} == 2.7 ]] ; then pip install mapnik ; fi
- pip install bsddb3
- pip install -r requirements.txt
- pip install -r dev-requirements.txt
- pip install .
- touch tilecloud_chain/OpenLayers.js
script:
- flake8 --max-line-length=120 tilecloud_chain
- vvv-validate-rst README.rst
- vvv-validate-rst CHANGES.rst
- python setup.py --long-description > PYPI.rst
- vvv-validate-rst PYPI.rst
- python setup.py nosetests --nocapture --nologcapture --stop --attr '!'nopy`echo $TRAVIS_PYTHON_VERSION | awk -F . '{{print $1}}'`
- git --no-pager diff --check `git log --oneline | tail -1 | cut --fields=1 --delimiter=' '`
after_failure:
- python setup.py nosetests --logging-filter=tilecloud,tilecloud_chain --attr '!'nopy`echo $TRAVIS_PYTHON_VERSION | awk -F . '{{print $1}}'`
after_success:
# Report coverage results to coveralls.io
- pip install coveralls
- coveralls
deploy:
- provider: pypi
user: sbrunner
password:
secure: "ZDpDuMznPwMQlZHQCUvWhnsVIdZdhZPVVuFCi+89Cvv1nh78LVe+DKxNohUIUsPNyF+MDI7uL3bH2mIH4oKSTxoxATZZM+bUgSznpbO0HE+sF4GoauFzxbTrYjDCMKE3JJNz+vKnuuO71oTl5+j6+sYjYzJIHk3OC2o/WLNl964="
skip_cleanup: true
distributions: sdist bdist_wheel
on:
tags: true
python: 2.7
condition: '"${TRAVIS_TAG}" == "`python setup.py --version`"'