-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 1.67 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
# Use new container infrastructure to enable caching
sudo: false
# Choose a lightweight base image; we provide our own build tools.
language: c
# GHC depends on GMP. You can add other dependencies here as well.
addons:
apt:
packages:
- libgmp-dev
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
script:
- stack --no-terminal --install-ghc test
- stack exec haskellbr-website
- mkdir -p to-s3
- cp -r index.html static to-s3/
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
# Upload the resulting executable to S3
deploy:
provider: s3
access_key_id: AKIAJP7VW4B2IVAP5X4Q
secret_access_key:
secure: "jOD+lQVPCaIcttU8ADnHiQ7fBIWDYjFmoHNtqFNA7c0khHGw84b6NCUPB+4ZpWv/9UOXLdYvTj3W1Ja2safdSuBFOeREQ9T6F7uaUYDPhAMgd/MMNtZMKg9MTarmiT4ZcgRR0alq8WqZGQM7C18kQH92g81pHFC2AOlhWzn5aA1G4OVpwaDN7CGbpKiJD8SBTAY0UJWTncA6lYHOrTfd27LwsUZdBDmWw/xzc8xyLo1us0nb6akDhnw+5YLjkoZgEdYeVdwqqlhoHbWS+1Gk8zMVuxT1lf2se+SGZFBxJd2RrplW3BAxEagqB12/K796VRQigu4A2MN5k5UkxoMjRVHuiYKJEmRKMfxM19IR5CMLJY1zJXQoVcJq9/rwW6+0rgg23l7pufksc+yP5tae36SXLPEKIF2hgqYfbj1Kd7gVK+83DqmS7ehsclus67Q5oht44dDdJCvGbZY196oqqES5yZUmKY/q7OwudthFQ86fwwtiPnLcffOhetHiomQbuZY9AOu0blXWM+l/TVfjZhnlws10S8ezcZOcdhEO/XsKJUDSm49P99gkq1Di79RkEJyfkO31rsxvoOR7UR52dNwUyiP6VaqcIU1BkZjt//V9v22b1zS5cppKrd1hyATtxbgi2mU68eyiLn4yxnSd1j8BNgjRp3aDDSfZCAfClX4="
bucket: haskellbr.com
region: sa-east-1
acl: public_read
skip_cleanup: true
local_dir: to-s3
on:
repo: haskellbr/website
branch: master