This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
.travis.yml
44 lines (44 loc) · 1.54 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
language: node_js
node_js:
- '10'
env:
global:
- STAGING_BRANCH=develop
- PRODUCTION_BRANCH=master
cache:
apt: true
directories:
- "$HOME/docker"
services:
- docker
before_install:
- chmod +x ./.build_scripts/build.sh
- chmod +x ./.build_scripts/deploy.sh
- touch local.env
install:
- npm install apidoc
script: npm run docker-test
after_success:
- ".build_scripts/build.sh"
- "npm run docs"
deploy:
- provider: script
skip_cleanup: true
script: ".build_scripts/deploy.sh"
on:
branch: ${STAGING_BRANCH}
- provider: script
skip_cleanup: true
script: ".build_scripts/deploy.sh"
on:
branch: ${PRODUCTION_BRANCH}
- provider: s3
access_key_id: AKIAIHACHLPCT2PIL4TA
secret_access_key:
secure: LjNaw4L1W6Ia3qjn22yhyq9sa8+HWsaZ8f5Z8P+apOraKifxgxNwVcaLJRzBM2hfdslLN6HnADBZWCT3MBX7Hl3XOVnQZsEuo22BMCAUaWxyZ9lGMWDGtCBGtDt7SfXvoMw6e84HpaED2I5/OcluPFg/5Knq/yOvRqy9x7mPa5VUezPkCcnSEW5OsL0v5/sXxaRAzUGOHicLglne5cZRSbbdxN+xp3/w+Vuj3kx9JzZ7C7pJNe3rINnWNlZ8ymy/z4W4xlMWMxl7DHLWhJUSaeRe+RBypozsOtttYdtMzi88MkZnh2nPakyTT8OgknW9BZn6xWml8Gk2RdvPp3GEO53zrG0DEmHul8CT6hyG7/sBiIcIKAsJQH4OOaE3mxjuNAx+IH7G0m6BEAYZZ/gbcL+xIMVHmZKj1GROjWgOyDACOoDjpsz0Lq7HHBY9iU1PzTcOcVAdrzoqJ8NAgBgwQgMjPXgw6ece00IgySjQK+9BcdqE4eVS+QU+DKQYCwyWz8NWYvnm3NPDzJTo75c4LMxDqy3iUqGimx7Nb89Ouv9huZv1lmipgPyMn7w4uPxI+2xfK1oT6aWoujyYnyvBfWzZJpWJsNLAf1e4RSxw53UBUko0/S8YNPneYLmAFiuLuf0RER1u064IodYs2zR23uDF+XHtsS0NtZUoehkiwYM=
bucket: docs.openaq.org
acl: public_read
local-dir: docs
skip-cleanup: true
on:
branch: ${PRODUCTION_BRANCH}