forked from brandur/sorg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (40 loc) · 3.18 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
49
50
51
52
53
54
55
language: go
go:
- "1.10"
# magic word to use faster/newer container-based architecture
sudo: false
before_install:
- go get -u github.com/golang/lint/golint
install:
- pip install --user awscli
script:
- VERBOSE=true make
# deploy development version that includes drafts
- TARGET_DIR=./public-dev DRAFTS=true make build
- TARGET_DIR=./public-dev S3_BUCKET=brandur.org-dev make deploy
# then deploy production
- TARGET_DIR=./public S3_BUCKET=brandur.org make deploy
notifications:
email:
on_success: never
# Env that allows a build on the master branch to deploy the site
# automatically.
env:
global:
- CLOUDFRONT_ID=E2D97SPIHRBCUA
- GOOGLE_ANALYTICS_ID=UA-47798518-1
# Use only a single Goroutine so that we can debug problems that arise more
# easily. The build in CI is already lengthy due to system setup, and
# shaving a few hundred milliseconds off with more concurrency makes almost
# no difference at all.
- CONCURRENCY=1
# $AWS_ACCESS_KEY_ID
- secure: "N7O3iKGp51NBnkrgAjNrVbtV2sxmiG8NY07oNVvkhzPRhdOSB+nXwhEk+K3Bz7AiC+2WGXBZRx2jvjDu3w3L9k4NnsEFtOlt+7BBcDUHt2xqLkQNBTj5k51F+3oCJPoBEzwL7Cb8YAzFhcVyrgp903R1oHy5F+fs+ICRkapID92/6yCpFt86O7tT6u7jsQuEtmc/uT5EQzy3h7A1zNnIReouHGx3ZLNKqdTObHrKHV2IILR9pI7TF/BZLHQ20uyQheoIz8B0MeGpPOK4AFNTt8L/qEp89HvymjFY90d40o1MXYPlOvDktYMXyJhtgMiDBkLgDyx8K7WMCMewoVj4bmBeyJSDrItoE6ErNCNYZccC0Zc2W9ePZOfxnDFNazNEbWeNutcSJbavndZ08tCqTyy8aUwsHOMtsAUWAqlVxUCx8f4brMpmjc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