forked from mmark-md/mmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 1.43 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
language: c
sudo: false
cache:
directories:
- ~/.cabal/packages
- ~/.cabal/store
matrix:
include:
- env: CABALVER=3.0 GHCVER=8.4.4 COMPILER=ghc BENCHMARKS=--enable-benchmarks
addons: {apt: {packages: [cabal-install-3.0,ghc-8.4.4], sources: [hvr-ghc]}}
- env: CABALVER=3.0 GHCVER=8.6.5 COMPILER=ghc BENCHMARKS=--enable-benchmarks
addons: {apt: {packages: [cabal-install-3.0,ghc-8.6.5], sources: [hvr-ghc]}}
- env: CABALVER=3.0 GHCVER=8.8.1 COMPILER=ghc BENCHMARKS=--enable-benchmarks
addons: {apt: {packages: [cabal-install-3.0,ghc-8.8.1], sources: [hvr-ghc]}}
# - env: CABALVER=2.4 GHCVER=8.4 COMPILER=ghcjs BENCHMARKS=--disable-benchmarks
# addons:
# apt:
# sources:
# - hvr-ghc
# - sourceline: 'ppa:hvr/ghcjs'
# - ubuntu-toolchain-r-test
# - sourceline: 'deb https://deb.nodesource.com/node_8.x xenial main'
# key_url: 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
# packages: [cabal-install-2.4, ghcjs-8.4, alex, happy]
before_install:
- export PATH=/opt/$COMPILER/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.cabal/bin:$PATH
install:
- cabal --version
- $COMPILER --version
- travis_retry cabal new-update
script:
- cabal --$COMPILER new-configure --enable-tests $BENCHMARKS --flags=dev
- cabal new-build
- cabal new-test
- cabal new-haddock
- cabal new-sdist
notifications:
email: false