-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (46 loc) · 1.76 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
# Use new container infrastructure to enable caching
sudo: true
# Do not choose a language; we provide our own build tools.
language: generic
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
# Ensure necessary system libraries are present
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'
# sdl2
- curl https://www.libsdl.org/release/SDL2-2.0.5.tar.gz -o SDL2-2.0.5.tar.gz
- tar -xzvf SDL2-2.0.5.tar.gz
- (cd SDL2-2.0.5 && ./configure && make && sudo make install)
- sudo ldconfig
# sdl2-mixer
- curl https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz -o SDL2_mixer-2.0.1.tar.gz
- tar -xzvf SDL2_mixer-2.0.1.tar.gz
- (cd SDL2_mixer-2.0.1 && ./configure && make && sudo make install)
- sudo ldconfig
# sdl2-ttf
- curl https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz -o SDL2_ttf-2.0.14.tar.gz
- tar -xzvf SDL2_ttf-2.0.14.tar.gz
- (cd SDL2_ttf-2.0.14 && ./configure && make && sudo make install)
- sudo ldconfig
# sdl2-image
- curl https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1.tar.gz -o SDL2_image-2.0.1.tar.gz
- tar -xzvf SDL2_image-2.0.1.tar.gz
- (cd SDL2_image-2.0.1 && ./configure && make && sudo make install)
- sudo ldconfig
install:
# Build dependencies
- stack --no-terminal --install-ghc build --only-dependencies --split-objs
script:
- stack --no-terminal build --haddock --no-haddock-deps --split-objs
after_success:
- chmod +x script/deploy.sh
- ./script/deploy.sh