-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.07 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
sudo: false
language: c
env:
matrix:
- AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar
addons:
apt:
packages:
- libgmp-dev
before_install:
- 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'
before_script:
- "./scripts/run-dynamodb-local.sh &"
script:
- stack $ARGS --no-terminal --install-ghc test dynamodb-eventstore-web:test:tasty --pedantic
- stack $ARGS --no-terminal --install-ghc test dynamodb-eventstore:test:tasty --pedantic --test-arguments "--quickcheck-max-size 2 --quickcheck-tests 10"
before_deploy:
- mkdir release
- cp `stack path --dist-dir`/build/web/web release/
deploy:
provider: releases
api_key:
secure: Wk2Z/jislfOnyJg9BlFtJCX2CDgjiTM2XtU9EcFCksEtXhVtYAY/IaQYXuyusRm/cXOE3x3FQQvcWH2uazQCpZAfWFETEA88g+CRT/N3H0YJcL7ciQdN6huAuqxOT/XA5Wkmj1kspNM2mknE1alzRysyrkfmnkP4j3JcC2cDE9g=
file: "release/web"
on:
tags: true
repo: adbrowne/dynamodb-eventstore
cache:
directories:
- "$HOME/.stack"