forked from fightforthefuture/old.fightforthefuture.org
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
48 lines (48 loc) · 1.22 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
node_js:
- '6.5'
sudo: false
cache:
bundler: true
directories:
- node_modules
- vendor
before_install:
- if [ -f node_modules/.bin/which ]; then mv node_modules/.bin/which node_modules/.bin/which.backup; fi
- rvm install `cat .ruby-version`
- gem install bundler
- if [ -f node_modules/.bin/which.backup ]; then mv node_modules/.bin/which.backup node_modules/.bin/which; fi
install:
- npm install
script:
- npm run-script build
after_success:
- npm run-script deploy
env:
global:
- CXX: g++-4.8
- AWS_S3_BUCKET: s3.fightforthefuture.org
- AWS_S3_FOLDER: images/blog
- ACTIONNETWORK_URL: https://actionnetwork.org
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
branches:
only:
- production
deploy:
provider: s3
access_key_id: AKIAJBUMOKIYAH4JO5FQ
secret_access_key:
secure: b2QaR+6fuC6HD6iK4ABJtcFkYtnk9BhJ7R9uWgQVYtx6U6Y2fw3MqpFCywpyhsO0TY2c3M2K/wYyXE765aOBWEJpByK3AW1vSLlUZNJICBtraXSbAoyxCnTVd1wYAwAi2CR1EuvrTGXNynCt3X0SoyWwrQbUSMvO27T7ZVmVG4U=
bucket: s3.fightforthefuture.org
local-dir: assets
acl: public_read
skip_cleanup: true
cache_control: max-age=41706360
on:
repo: fightforthefuture/fightforthefuture.github.io
branch: production