forked from azerbini/eamena_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (69 loc) · 3.68 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
dist: trusty
language: python
python:
- 2.7
sudo: false
cache:
- apt
- pip
addons:
sauce_connect: false
postgresql: 9.6
apt:
sources:
- elasticsearch-5.x
packages:
- elasticsearch
- libxml2-dev
- libpq-dev
- openjdk-7-jdk
- python-dev
services:
- postgresql
- elasticsearch
before_install:
- psql -d postgres -c "ALTER USER postgres with encrypted password 'postgis';"
- echo "*:*:*:postgres:postgis" >> ~/.pgpass
- psql -d postgres -c "SET standard_conforming_strings = off;"
- psql -d postgres -c "CREATE EXTENSION postgis;"
install:
- python setup.py install
- pip install -r arches/install/requirements_dev.txt
- pip install coveralls
# - npm install -g bower
# - bower install
script:
- python manage.py test tests --pattern="*.py" --settings="tests.test_settings"
after_success:
- coveralls
notifications:
slack:
secure: j8ECDivRYYfWY/ZpWHDEDNjbJarKjBwzmbQLDRV/8JnI61xi965c8IdflUXrKNbTE7AV0QQIsSRj0Aq7e3V0aipH1xpWDGVPX18c80a9HbAV1MHTPjWNfkxzrCdhhTiq2wxzGQjObO298IcEdzHrZPYi0TA+P8PjtVj5c3cvmPYiB03irgLDeLZjbOaUvIn7/tzaO9GMINwY8zDG4rpjI3/yQ/KqofWu1M8tDLoA5+KBlGTYXQsBkh2CFd0AMQ0C5iejyG0PSe5vstVmLmD93HZoOzeKP9E10h5+JxONJ8cgQtNTYdrEZ5/zo3H1UJ+zB+UOxq8UdtwtvyZ/bej4HmjZJpxaXKnvC/hTVvCW4sd1Cty8At874UtPfUvnRYeIj0cCvtTcvQ/4bifkdfLY7GrhMm9e3PeMM3hYxM4+v0Q6q8TLxhaHZe06jDlNjp6vJTW31MAetJJw+894MDd5EHXpF6yf7VUrtkD01frVUEEMP7ZNN9oClPimOChoc73FaM1HRviwN31jScXN3NkW5lusEyoBPJALV3cGVUEfRaUUg5wvObJ+/vTG8h9kXj/N5NJl8E/SAJi74ro6nWoZFwX0JH5IrXW9d2Do12pJR3cEAdafryzvCF4R/8kOyWgumoAUklR8Stm064Go/9gnfCdJBwsfxv7pSvGLRi8DF/4=
# archesproject:
secure: KxA9qFRehHJYJPtESVf7s6NBtbzehLUhc88I0fN3MJchtsONiQZuRHIL8hvIkohK6di71BKvR3xFjxaI4zb2SzTdkeFRol9gPAfwV2tqU9GecPIXwKWMDYGZT5lbM2ofu7CwHgtbAS808yz2BXyFH5OLMXPm5Fug5CVhJ+THbVc9bxfT3gms9QXJOgd9trZpPzPhr9ExoXpu5uEXiJadl07oa05t7CuxLNcJzOqqjPMep2px4PnwxREs6WCqWmteBKDWI01GxFqp9AIopJT1J2b1jlTJYuUkBPqN2BrlklOpHsd/dCntFMPQeKDCb0qYzjuawHXCOXMyuUzPVGEOeS+h7kwi9qdxF+q3CKYDWNouyIxthHLR84B/U63CTSr24mt90Rn5ICEi46fIVT3XYrMvVfDcNHNU/sf0YKK/NCFJyi+OkdzuMxaQ2f6VSyyIs1Q7MqqHwPe/rIMHkM4CeFTh3q9mHOi9l2uVK3tuI5fFP4/8QwUP1klxq9yhwtxAXZAZL7vqOKRk0furAloP6j+uHG2Gyz9h1YvFffl6hJI+WvFittFDc82RmF1ieqDfzLyFW1bdXseEQx0k70uF1fwE2rHmGLuFqxi0ANATzGTqu23t1MS38afNkncyzD7G6OFQ+DYFru3ZIYojQYZXwyR7Cmdk7HofwuJBpJyxGJ4=
deploy:
- provider: s3
access_key_id: AKIAIPJSP4QJ5VLPBKIQ
secret_access_key: &1
secure: i5uomoX4V0wrn3y09g0vcjPkvoeBYhaA0BR4inAyXM599UbEn15qXa7bdopyVz92Z5Q1EFOHUbd1mLQH8nJ/F3B2Bb4MKQkwyH3oDIcDbFgtwwmC4CbZAfJ6QtKiKZF1eisrRn1YwcEMT27HWbRBYiEuqJBhA3OV+szLRia7frtdOMujzox5EwxW5cTRNSJEaXh89I51FjurTI544Tk6y47SQjc0V7tquyd9bQF9bRXMARhdKj4D93jBGLhXhi8REoyerNHIw0CgHv5LK36lG5MFJTMrDYcmDTfnqXGVVItQ/iTAoDGqtqNwof1xk56oCxCcB5HbQEH2pp+IK+wLCvFXAkp75pBujbY7fOEKe7cgRjmIYls8XLiOLvNpkON1JvnBZvQJAhiHPWSIWfeMO5rZk7CliWyOhV/YCnwwN2nEGcTKP6VU/2ReyqvV5ZCz5vY6ymrwsR+UTxaZmjJBs7Bvd9F/v6LaFOJOZnc8qGiK42RktH5/63m72UJA2x5HDpLVtbHf7pZ+vXoXD1b6ePIU0JcW8Ka7p9MKWuYPJM27QERdvOBS4d51Uuyzspk6uRLydVuXqSErjiid6CbQS6YKVCnOQoOTbSQT1QcsFyA+Jf1I4usrkq8Wi4wHY8GcFnyf1uHxJMBaP83C7ZV76HQ1WhX2QGaLUxvDYdXi8xQ=
local_dir: dpl_cd_upload
skip_cleanup: true
on: &2
repo: archesproject/arches
branch: master
bucket: arches-codedeploy
# upload_dir: latest
- provider: codedeploy
access_key_id: AKIAIPJSP4QJ5VLPBKIQ
secret_access_key: *1
bucket: arches-codedeploy
key: arches-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip
bundle_type: zip
application: arches
deployment_group: arches_group
region: us-west-1
on: *2
before_deploy:
- zip codedeploy.zip -r --exclude=*__pycache__* appspec.yml arches/install/*.sh
- mkdir -p dpl_cd_upload
- mv codedeploy.zip dpl_cd_upload/arches-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip