-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (50 loc) · 3.84 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
56
57
58
59
60
61
# Use downloaded stack tool to build, instead of the haskell/GHC setups that
# travis provide. This is just a bit more flexible. Sudo is required to give us
# access to docker.
# ------------------------------------------------------------------------------
sudo: false
language: generic
# Cache .stack for library dependencies, and .stack-work for fast re-builds for
# pushing commits to a branch for example.
# ------------------------------------------------------------------------------
cache:
directories:
- $HOME/.stack
- .stack-work/
# We need APT for libgmp, which is a required library by GHC in order to implement
# its bignum support.
# ------------------------------------------------------------------------------
services:
- docker
addons:
apt:
packages:
- libgmp-dev
# Fetch and setup stack and any other dependencies.
# ------------------------------------------------------------------------------
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# Job Definition
# ------------------------------------------------------------------------------
env:
global:
- secure: BKsroT4tng0jNCkB1qkgmymGWap1S1wdHAEfeMFSB4hXkUgZsqneV5pm/dKOsHG6V0bdHgEFm6Tj/zFjiC6lp1zOmBMurQ4cnzlNu9x2pETK4D6/Q3cDgxU3bbmDI/k/ZQXlzJOxHAZRWFQ3ddfn/+XDbkJ90E+hCUvcgXJSJKXsNA0zB+29mnDee9hlvvELtKNwBthJVhw6vM+H6p4sJkHaKOmV0nJ0dHffAUb7QRiXXa8dUPuQt84oY8uunPZnz5SsA2Ye4cklW9zw8Z3iiUZaQ5MJeVBjvbzUbhIsdRaN3NjKpWMV9hsTwNGy8MDUwCQ+z+BqrtvfbG+pwvkctefBvlSaWzjwgYT3tSwUoFw/LhJ7131pStLt0Qr+sKk0j27bidCyfqBGVM3hn3eadtHTN/BaW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lxlv9Yj3fZh2Sl1tS9G5/aokDkjtoTuknvr+AIRYKKZvKb7ClnyYaFx/hP5zVFWKx2eUfLhDc6Pp3/6V69vqAufPb+CQ33c27UgsRStVXlEhZf3Xdl/qu4GYzqivoMzbb3LxW3ykbyeC94+IUPJv9fDMq7yaVqqEeddcpx2r/wLdeJ7G224O9m9okVM10pWIssy41jXiqKK6oloe6WBAnRDdGwvxu6nV1Q6ADeuyxU31SkmDWy6K7vfQWZuQfiyLNZ69LOOYlsk4u2Z9Y887yxJgou4zMtdfjbIntlct3i/QeTQlwyX3K+eBctsEusWrC8RERg/qNtrxyY2Y6j8g9RCVvaZoHBaM82QdTkD2TgqoHZWD3DC37QJXhuSpngzu3JqPZEerEf4WV6Rz8MIK51tRvMohPvXCgO4ZqKRCddW+5YTC1s+jnGGYDIeABg5Ini0ULP6GCfvHoZZGZjwnkKihKoaH800Xo65QrjMm9goEOCsO2jo2BGbK8ygAlAUSdPj9p9Peoj6BWNuaZHNYEwhEj7gr0jKih6xXMmuEqFeeaIy4=
# Define Job Matrix
jobs:
include:
# Build Dependencies
- stage: build
script:
- stack --no-terminal --install-ghc test --fast --only-dependencies
- stack --no-terminal test --fast
# Build Docker Releases for Master
- stage: deploy
if: branch = master AND type = push
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker build -f Dockerfile.quick -t reisern/pixel:latest .
- docker push reisern/pixel:latest