-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
94 lines (84 loc) · 3.43 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
88
89
90
91
92
93
94
sudo: required
language: node_js
services:
- mongodb
- docker
env:
global:
- NODE_ENV=test
- OAM_ENV=test
- BSTACK_USER=dakotabenjamin1
- FACEBOOK_APP_ID=228592690987600
# OAM ENV
#- secure: xzQ/kTbycCCR7IV9izc22se8j9vRO2F8XfVlNk78SpfytUVbupLfTdbfCBjxxY8L97Xv2WOS+FMIschb8slYUQqrFUY1AmstHap8mVbp/02lTNOovAuc3oYXi5R11DqaFNVs1jfmTeNdkqYIx79pIEqFyszBYca9RGZJFFeiw98=
#- secure: eaZ4CZUipVZVdjb1q/HYyVsgWuIt+w1/dD4bV4wGTVfse5Ho6enwY2kyLYCtuj/MqRyReuDAzjxU56fwnvuaPtp/pE57b7wxv6WgC0Gmqpn/WbASZ08cXlGxamq/M45OaTeRmuzo1lbo82/TGyW6StK8bEGkoCVH+Nao6UgFJXA=
# Facebook App secret
- secure: rtfJJDiqqtt8bHu/bpqEtEkztf2yVfrChEkgToc3Xqt7WglMzfAF8Cpv4XFDFw3yCDD1OqU3ro3CjiTvMiJZ53koKPy2nMFymtox97r1kIiZbKgWRRtCwYlqR31FlaNUycJDzjDGXvc/Ed2IFfltQAtXPgNHTZTThxwlcqMUEBo=
# Browserstack key
- secure: "A0ue4KhPJYVpj0eIHourYfHCnj0o4UuGwLgxKc+gISR3aElrNz5NNpUru9tIkUzlKTLWZfdU5e3MHIPGUxMsxd0YQSSeLhEYai/SdSS7UqJGaKyDI0cfOvUqjD9efYsPKJKbNZ8XKquLOqx6lSfYh9lORdhzl0yXFHIESz746mE="
jobs:
include:
- stage: "Specs :factory:"
before_script: yarn lint
script: yarn test
# - &integration-test
# stage: "Integration against Catalog API versions :earth_asia:"
# env: CATALOG_API_VERSION=pinned BROWSER=chrome
# before_script: test/integration/build.sh $CATALOG_API_VERSION
# script: test/integration/run.sh $BROWSER
# after_failure:
# - docker ps
# - docker logs test_test-app_1
# - sleep 10 # Give the docker logs a chance to output
# - <<: *integration-test
# env: CATALOG_API_VERSION=pinned BROWSER=edge
# - <<: *integration-test
# env: CATALOG_API_VERSION=latest BROWSER=chrome
# - <<: *integration-test
# env: CATALOG_API_VERSION=latest BROWSER=edge
- stage: "Deploy :rocket:"
script: "REACT_APP_OAM_ENV=staging yarn build"
deploy:
# For staging branch: deploys to s3
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: map-staging.openaerialmap.org
region: us-east-1
skip_cleanup: true
local_dir: build
acl: public_read
on:
repo: hotosm/oam-browser
branch: develop
- stage: "Deploy :rocket:"
script: "REACT_APP_OAM_ENV=production yarn build"
deploy:
# For production branch: deploys to s3
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: map.openaerialmap.org
region: us-east-1
skip_cleanup: true
local_dir: build
acl: public_read
on:
repo: hotosm/oam-browser
branch: master
# allow_failures:
# # TODO: Edge just has a problem with entering text into the
# # autocomplete.
# - <<: *integration-test
# env: CATALOG_API_VERSION=pinned BROWSER=edge
# - <<: *integration-test
# env: CATALOG_API_VERSION=pinned BROWSER=chrome
# # Latest (bleeding edge) is always allowed to fail. It's just here to give
# # developers forewarning about any upstream breaking change they
# # might introduce.
# - <<: *integration-test
# env: CATALOG_API_VERSION=latest BROWSER=chrome
# - <<: *integration-test
# env: CATALOG_API_VERSION=latest BROWSER=edge
notifications:
webhooks: https://api.opsgenie.com/v1/json/travisci?apiKey=$OPSGENIE_API_KEY