forked from c4ei/arthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 824 Bytes
/
.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
language: node_js
node_js:
- "stable"
python:
- "3.5"
cache:
directories:
- node_modules
- pip
install:
# Install any dependencies required for building your site here.
# `awscli` is required for invalidation of CloudFront distributions.
- pip install --user awscli
script:
- npm install
- npm test
- npm run build
deploy:
provider: s3
access_key_id: $aws_access_key_id
secret_access_key: $aws_secret_access_key
bucket: "demo.c4ei.net"
skip_cleanup: true
local_dir: build
on:
all_branches: true
after_deploy:
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id E3BPZYNBZT54L5 --paths "/*";
# - test $TRAVIS_BRANCH -ne "staging" && aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_STAGING_DISTRIBUTION_ID --paths "/*"