-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
48 lines (44 loc) · 1.14 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
language: node_js
cache:
yarn: true
directories:
- node_modules
- .yarn
notifications:
email:
on_failure: always
node_js:
- 'node'
branches:
only:
- "master"
- /^greenkeeper.*$/
before_install:
- npm install -g yarn --cache-min 999999999
- sudo apt-get install -y -q tree
install:
- yarn
before_deploy:
- yarn build
- tree build
deploy:
# Control deployment by setting a value for `on`. Setting the `branch`
# option to `master` means Travis will only attempt a deployment on
# builds of your repo's master branch (e.g., after you merge a PR).
on:
branch: master
provider: s3
# You can refer to environment variables from Travis repo settings!
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
# Name of the S3 bucket to which your site should be uploaded.
bucket: dzv3
upload-dir: reminders-app
acl: public_read
detect_encoding: true
# Prevent Travis from deleting your built site so it can be uploaded.
skip_cleanup: true
# Path to a directory containing your built site.
local_dir: build
# Set the Cache-Control header.
cache_control: "max-age=21600"