forked from marcin-rzeznicki/libjwt-typed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.37 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
os: linux
dist: focal
language: generic
git:
depth: 5
cache:
directories:
- "$HOME/.stack"
- "$TRAVIS_BUILD_DIR/.stack-work"
matrix:
include:
- env: GHCVER=8.8.3 STACK_YAML="$TRAVIS_BUILD_DIR/stack-8.8.3.yaml"
addons:
apt:
sources:
- sourceline: "ppa:hvr/ghc"
packages:
- ghc-8.8.3
- libjansson-dev
- libssl-dev
- env: GHCVER=8.10.3 STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
addons:
apt:
sources:
- sourceline: "ppa:hvr/ghc"
packages:
- ghc-8.10.3
- libjansson-dev
- libssl-dev
env:
global:
- CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt"
- LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
before_install:
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
install:
# head of libjwt
- git clone https://github.com/benmcollins/libjwt.git
- pushd libjwt && autoreconf -i && ./configure --prefix=/usr && make all && sudo make install && popd
# HLint check
- curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint .
- curl -sSL https://get.haskellstack.org/ | sh
- stack --version
- stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --ghc-options='-Werror -Wno-missing-export-lists -Wno-name-shadowing -Wno-deprecations'
script:
- stack test --system-ghc