-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (29 loc) · 824 Bytes
/
.travis.yml
File metadata and controls
37 lines (29 loc) · 824 Bytes
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
sudo: required
services:
- docker
language: generic
cache:
directories:
- $HOME/.stack
before_install:
# Pull dev image
- docker pull lhcopetti/haskell-game:dev
# Pull base image
- docker pull lhcopetti/haskell-game:base
# List Docker images
- docker image ls -a
# 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'
install:
# Removes unecessary runtime dependencies and updates the version for the images
- ./normalize-stack.sh
- stack --no-terminal --install-ghc test --only-dependencies -v
- stack image container -v
deploy:
skip_cleanup: true
provider: script
script: sh ./travis-deploy.sh
on:
branch: master