-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
87 lines (74 loc) · 2.03 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
84
85
86
87
# Common to all builds in the build matrixs
os: linux
language: python # This lets us use newer python versions from virtualenv
sudo: required
cache:
apt: true
pip: true
directories:
# commented out - we want to get fresh overpass file each time
#- /tmp # cache any previously downloaded .osm files
timeout: 1000
compiler: clang
python:
- '3.6'
node_js:
- "12.10.0"
services:
- docker
env:
global:
- ON_TRAVIS=true
- SECRET_KEY='tT\xd7\xb06\xf7\x9b\xff\x0fZL\xca\xca\x11\xefM\xacr\xfb\xdf\xca\x9b'
- APP_SETTINGS=app_config.AWSTestingConfig
- ATTIC_DATA_SERVER_URL='http://overpass-api.de/api/interpreter'
- DEFAULT_OVERPASS_URL='https://overpass-export.hotosm.org/api/interpreter'
matrix:
fast_finish: true
include:
- python: '3.6'
env: TRAVIS_CONFIG=PYTHON3
exclude:
- python: '3.8'
git:
depth: 30
before_install:
- nvm install 12.10.0
install:
- pip install coveralls
- pip install -r deployment/docker/requirements.txt
- pip install -r deployment/docker/requirements-dev.txt
- npm install
script:
- bash ./.travis/pep8
- bash ./.travis/run_tests
- npm run build
deploy:
- provider: elasticbeanstalk
edge: true # Enable v2 which uses .ebignore instead of .gitignore to exclude build assets
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: "us-west-2"
app: "field-campaigner"
env: "staging"
bucket_name: hotosm-fieldcampaigner-develop-deployments
on:
branch: develop
- provider: elasticbeanstalk
edge: true # Enable v2 which uses .ebignore instead of .gitignore to exclude build assets
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: "us-west-2"
app: "field-campaigner"
env: "production"
bucket_name: hotosm-fieldcampaigner-master-deployments
on:
branch: master
after_deploy:
- python ./.travis/deploy_lambda_functions.py
after_script:
- coveralls
email: