-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 1.11 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
language: node_js
node_js:
- '0.12'
env:
global:
- PRODUCTION_BRANCH=master
- STAGING_BRANCH=develop
- secure: gOr2+aMiSF/EoaJn0aRCYLEGC/frIqk71ZrzrcdgAn/Cs0D2a6CQ3lnlw33APPGABYxzYN58/pCcbyR4JUT4U3EjG/FsCl0edi0bSRO39i3Hs1wptfPtPt+yJtYCisdcWsGFX678cNkX39nvtvFeVPqgdvAcPtXLfY1Hi1+42Lc=
cache:
directories:
- node_modules
before_install:
- chmod +x ./.build_scripts/deploy.sh
- chmod +x ./.build_scripts/lint.sh
before_script:
- "./.build_scripts/lint.sh"
- npm test
script:
- npm run build
deploy:
- provider: s3
access_key_id: AKIAIAASN6DDRMPTSIGA
secret_access_key:
secure: ojbLD8uKXDQiiQqDQwrRY+kkmaKdJLO/JRGcriLZg7cdQ6mVmslPl6gvjtDyd1cOIE+rs9aZNf15FZVn2V3rXmeCuCItRujV6LzZD0VkwpdBSEsEtk+OGlNDWItWhsaeeLThtDq9pLoiNqxCUaoJq81U5YRswiMGedCCRzDykKo=
bucket: openroads-staging
local-dir: dist
acl: public_read
skip_cleanup: true
region: us-east-1
on:
repo: opengovt/openroads-analytics
branch: ${STAGING_BRANCH}
- provider: script
skip_cleanup: true
script: .build_scripts/deploy.sh
on:
repo: opengovt/openroads-analytics
branch: ${PRODUCTION_BRANCH}