mirror of
https://github.com/quchen/prettyprinter.git
synced 2024-10-05 17:38:27 +03:00
Use GitHub actions for CI (#191)
* Use GitHub actions for CI * Remove README badges except Hackage badge Co-authored-by: David Luposchainsky <dluposchainsky@gmail.com>
This commit is contained in:
parent
0b44b99106
commit
a2bd0f9360
224
.github/workflows/haskell-ci.yml
vendored
Normal file
224
.github/workflows/haskell-ci.yml
vendored
Normal file
@ -0,0 +1,224 @@
|
||||
# This GitHub workflow config has been generated by a script via
|
||||
#
|
||||
# haskell-ci 'github' '--config=cabal.haskell-ci' 'cabal.project'
|
||||
#
|
||||
# To regenerate the script (for example after adjusting tested-with) run
|
||||
#
|
||||
# haskell-ci regenerate
|
||||
#
|
||||
# For more information, see https://github.com/haskell-CI/haskell-ci
|
||||
#
|
||||
# version: 0.11.20210111
|
||||
#
|
||||
# REGENDATA ("0.11.20210111",["github","--config=cabal.haskell-ci","cabal.project"])
|
||||
#
|
||||
name: Haskell-CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
linux:
|
||||
name: Haskell-CI Linux - GHC ${{ matrix.ghc }}
|
||||
runs-on: ubuntu-18.04
|
||||
container:
|
||||
image: buildpack-deps:bionic
|
||||
continue-on-error: ${{ matrix.allow-failure }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- ghc: 8.10.3
|
||||
allow-failure: false
|
||||
- ghc: 8.8.4
|
||||
allow-failure: false
|
||||
- ghc: 8.6.5
|
||||
allow-failure: false
|
||||
- ghc: 8.4.4
|
||||
allow-failure: false
|
||||
- ghc: 8.2.2
|
||||
allow-failure: false
|
||||
- ghc: 8.0.2
|
||||
allow-failure: false
|
||||
- ghc: 7.10.3
|
||||
allow-failure: false
|
||||
- ghc: 7.8.4
|
||||
allow-failure: false
|
||||
- ghc: 7.6.3
|
||||
allow-failure: false
|
||||
- ghc: 7.4.2
|
||||
allow-failure: false
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: apt
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common
|
||||
apt-add-repository -y 'ppa:hvr/ghc'
|
||||
apt-get update
|
||||
apt-get install -y ghc-$GHC_VERSION cabal-install-3.2
|
||||
env:
|
||||
GHC_VERSION: ${{ matrix.ghc }}
|
||||
- name: Set PATH and environment variables
|
||||
run: |
|
||||
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
|
||||
echo "LANG=C.UTF-8" >> $GITHUB_ENV
|
||||
echo "CABAL_DIR=$HOME/.cabal" >> $GITHUB_ENV
|
||||
echo "CABAL_CONFIG=$HOME/.cabal/config" >> $GITHUB_ENV
|
||||
HC=/opt/ghc/$GHC_VERSION/bin/ghc
|
||||
echo "HC=$HC" >> $GITHUB_ENV
|
||||
echo "HCPKG=/opt/ghc/$GHC_VERSION/bin/ghc-pkg" >> $GITHUB_ENV
|
||||
echo "HADDOCK=/opt/ghc/$GHC_VERSION/bin/haddock" >> $GITHUB_ENV
|
||||
echo "CABAL=/opt/cabal/3.2/bin/cabal -vnormal+nowrap" >> $GITHUB_ENV
|
||||
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
|
||||
echo "HCNUMVER=$HCNUMVER" >> $GITHUB_ENV
|
||||
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then echo "ARG_TESTS=--enable-tests" >> $GITHUB_ENV ; else echo "ARG_TESTS=--disable-tests" >> $GITHUB_ENV ; fi
|
||||
if [ $((HCNUMVER >= 70800)) -ne 0 ] ; then echo "ARG_BENCH=--enable-benchmarks" >> $GITHUB_ENV ; else echo "ARG_BENCH=--disable-benchmarks" >> $GITHUB_ENV ; fi
|
||||
echo "ARG_COMPILER=--ghc --with-compiler=/opt/ghc/$GHC_VERSION/bin/ghc" >> $GITHUB_ENV
|
||||
echo "GHCJSARITH=0" >> $GITHUB_ENV
|
||||
env:
|
||||
GHC_VERSION: ${{ matrix.ghc }}
|
||||
- name: env
|
||||
run: |
|
||||
env
|
||||
- name: write cabal config
|
||||
run: |
|
||||
mkdir -p $CABAL_DIR
|
||||
cat >> $CABAL_CONFIG <<EOF
|
||||
remote-build-reporting: anonymous
|
||||
write-ghc-environment-files: never
|
||||
remote-repo-cache: $CABAL_DIR/packages
|
||||
logs-dir: $CABAL_DIR/logs
|
||||
world-file: $CABAL_DIR/world
|
||||
extra-prog-path: $CABAL_DIR/bin
|
||||
symlink-bindir: $CABAL_DIR/bin
|
||||
installdir: $CABAL_DIR/bin
|
||||
build-summary: $CABAL_DIR/logs/build.log
|
||||
store-dir: $CABAL_DIR/store
|
||||
install-dirs user
|
||||
prefix: $CABAL_DIR
|
||||
repository hackage.haskell.org
|
||||
url: http://hackage.haskell.org/
|
||||
EOF
|
||||
cat $CABAL_CONFIG
|
||||
- name: versions
|
||||
run: |
|
||||
$HC --version || true
|
||||
$HC --print-project-git-commit-id || true
|
||||
$CABAL --version || true
|
||||
- name: update cabal index
|
||||
run: |
|
||||
$CABAL v2-update -v
|
||||
- name: cache (tools)
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
key: ${{ runner.os }}-${{ matrix.ghc }}-tools-426a339d
|
||||
path: ~/.haskell-ci-tools
|
||||
- name: install cabal-plan
|
||||
run: |
|
||||
mkdir -p $HOME/.cabal/bin
|
||||
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz
|
||||
echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
|
||||
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
|
||||
rm -f cabal-plan.xz
|
||||
chmod a+x $HOME/.cabal/bin/cabal-plan
|
||||
cabal-plan --version
|
||||
- name: install hlint
|
||||
run: |
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then HLINTVER=$(cd /tmp && (${CABAL} v2-install -v $ARG_COMPILER --dry-run hlint --constraint='hlint ==3.2.*' | perl -ne 'if (/\bhlint-(\d+(\.\d+)*)\b/) { print "$1"; last; }')); echo "HLint version $HLINTVER" ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then if [ ! -e $HOME/.haskell-ci-tools/hlint-$HLINTVER/hlint ]; then echo "Downloading HLint version $HLINTVER"; mkdir -p $HOME/.haskell-ci-tools; curl --write-out 'Status Code: %{http_code} Redirects: %{num_redirects} Total time: %{time_total} Total Dsize: %{size_download}\n' --silent --location --output $HOME/.haskell-ci-tools/hlint-$HLINTVER.tar.gz "https://github.com/ndmitchell/hlint/releases/download/v$HLINTVER/hlint-$HLINTVER-x86_64-linux.tar.gz"; tar -xzv -f $HOME/.haskell-ci-tools/hlint-$HLINTVER.tar.gz -C $HOME/.haskell-ci-tools; fi ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then mkdir -p $CABAL_DIR/bin && ln -sf "$HOME/.haskell-ci-tools/hlint-$HLINTVER/hlint" $CABAL_DIR/bin/hlint ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then hlint --version ; fi
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: source
|
||||
- name: sdist
|
||||
run: |
|
||||
mkdir -p sdist
|
||||
cd source || false
|
||||
$CABAL sdist all --output-dir $GITHUB_WORKSPACE/sdist
|
||||
- name: unpack
|
||||
run: |
|
||||
mkdir -p unpacked
|
||||
find sdist -maxdepth 1 -type f -name '*.tar.gz' -exec tar -C $GITHUB_WORKSPACE/unpacked -xzvf {} \;
|
||||
- name: generate cabal.project
|
||||
run: |
|
||||
PKGDIR_prettyprinter="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/prettyprinter-[0-9.]*')"
|
||||
echo "PKGDIR_prettyprinter=${PKGDIR_prettyprinter}" >> $GITHUB_ENV
|
||||
PKGDIR_prettyprinter_ansi_terminal="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/prettyprinter-ansi-terminal-[0-9.]*')"
|
||||
echo "PKGDIR_prettyprinter_ansi_terminal=${PKGDIR_prettyprinter_ansi_terminal}" >> $GITHUB_ENV
|
||||
PKGDIR_prettyprinter_compat_wl_pprint="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/prettyprinter-compat-wl-pprint-[0-9.]*')"
|
||||
echo "PKGDIR_prettyprinter_compat_wl_pprint=${PKGDIR_prettyprinter_compat_wl_pprint}" >> $GITHUB_ENV
|
||||
PKGDIR_prettyprinter_compat_ansi_wl_pprint="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/prettyprinter-compat-ansi-wl-pprint-[0-9.]*')"
|
||||
echo "PKGDIR_prettyprinter_compat_ansi_wl_pprint=${PKGDIR_prettyprinter_compat_ansi_wl_pprint}" >> $GITHUB_ENV
|
||||
PKGDIR_prettyprinter_convert_ansi_wl_pprint="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/prettyprinter-convert-ansi-wl-pprint-[0-9.]*')"
|
||||
echo "PKGDIR_prettyprinter_convert_ansi_wl_pprint=${PKGDIR_prettyprinter_convert_ansi_wl_pprint}" >> $GITHUB_ENV
|
||||
PKGDIR_prettyprinter_compat_annotated_wl_pprint="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/prettyprinter-compat-annotated-wl-pprint-[0-9.]*')"
|
||||
echo "PKGDIR_prettyprinter_compat_annotated_wl_pprint=${PKGDIR_prettyprinter_compat_annotated_wl_pprint}" >> $GITHUB_ENV
|
||||
touch cabal.project
|
||||
touch cabal.project.local
|
||||
echo "packages: ${PKGDIR_prettyprinter}" >> cabal.project
|
||||
echo "packages: ${PKGDIR_prettyprinter_ansi_terminal}" >> cabal.project
|
||||
echo "packages: ${PKGDIR_prettyprinter_compat_wl_pprint}" >> cabal.project
|
||||
echo "packages: ${PKGDIR_prettyprinter_compat_ansi_wl_pprint}" >> cabal.project
|
||||
echo "packages: ${PKGDIR_prettyprinter_convert_ansi_wl_pprint}" >> cabal.project
|
||||
echo "packages: ${PKGDIR_prettyprinter_compat_annotated_wl_pprint}" >> cabal.project
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package prettyprinter" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package prettyprinter-ansi-terminal" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package prettyprinter-compat-wl-pprint" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package prettyprinter-compat-ansi-wl-pprint" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package prettyprinter-convert-ansi-wl-pprint" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package prettyprinter-compat-annotated-wl-pprint" >> cabal.project ; fi
|
||||
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
|
||||
cat >> cabal.project <<EOF
|
||||
EOF
|
||||
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(prettyprinter|prettyprinter-ansi-terminal|prettyprinter-compat-annotated-wl-pprint|prettyprinter-compat-ansi-wl-pprint|prettyprinter-compat-wl-pprint|prettyprinter-convert-ansi-wl-pprint)$/; }' >> cabal.project.local
|
||||
cat cabal.project
|
||||
cat cabal.project.local
|
||||
- name: dump install plan
|
||||
run: |
|
||||
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
|
||||
cabal-plan
|
||||
- name: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
|
||||
path: ~/.cabal/store
|
||||
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
|
||||
- name: install dependencies
|
||||
run: |
|
||||
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
|
||||
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dependencies-only -j2 all
|
||||
- name: build w/o tests
|
||||
run: |
|
||||
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
|
||||
- name: build
|
||||
run: |
|
||||
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
|
||||
- name: tests
|
||||
run: |
|
||||
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct ; fi
|
||||
- name: hlint
|
||||
run: |
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then (cd ${PKGDIR_prettyprinter} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml --cpp-include=misc src) ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then (cd ${PKGDIR_prettyprinter} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml --cpp-include=misc app) ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then (cd ${PKGDIR_prettyprinter_ansi_terminal} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml --cpp-include=misc src) ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then (cd ${PKGDIR_prettyprinter_compat_wl_pprint} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml --cpp-include=misc src) ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then (cd ${PKGDIR_prettyprinter_compat_ansi_wl_pprint} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml --cpp-include=misc src) ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then (cd ${PKGDIR_prettyprinter_convert_ansi_wl_pprint} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml --cpp-include=misc src) ; fi
|
||||
if [ $((HCNUMVER >= 81000)) -ne 0 ] ; then (cd ${PKGDIR_prettyprinter_compat_annotated_wl_pprint} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml --cpp-include=misc src) ; fi
|
||||
- name: haddock
|
||||
run: |
|
||||
$CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
|
||||
- name: unconstrained build
|
||||
run: |
|
||||
rm -f cabal.project.local
|
||||
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
|
116
.travis.yml
116
.travis.yml
@ -1,116 +0,0 @@
|
||||
# Use new container infrastructure to enable caching
|
||||
sudo: false
|
||||
|
||||
# Choose a lightweight base image; we provide our own build tools.
|
||||
language: c
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
# GHC depends on GMP. You can add other dependencies here as well.
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libgmp-dev
|
||||
|
||||
env:
|
||||
- >
|
||||
STACK_RESOLVER="--resolver nightly"
|
||||
RUN_TESTSUITE=true
|
||||
RUN_RELEASE_CHECKS=true
|
||||
BUILD_SOURCE_DIST=true
|
||||
ALLOW_FAILURE=true
|
||||
CLEAR_STACK_CACHE=true
|
||||
|
||||
- >
|
||||
STACK_RESOLVER="--resolver lts"
|
||||
RUN_TESTSUITE=true
|
||||
RUN_RELEASE_CHECKS=true
|
||||
BUILD_SOURCE_DIST=true
|
||||
|
||||
# LTS 13 uses GHC 8.6
|
||||
- >
|
||||
STACK_RESOLVER="--resolver lts-13"
|
||||
RUN_TESTSUITE=true
|
||||
RUN_RELEASE_CHECKS=true
|
||||
BUILD_BENCHMARKS=true
|
||||
BUILD_SOURCE_DIST=true
|
||||
|
||||
# LTS 12 uses GHC 8.4
|
||||
- >
|
||||
STACK_RESOLVER="--resolver lts-12"
|
||||
RUN_RELEASE_CHECKS=true
|
||||
|
||||
# LTS 10 and 11 uses GHC 8.2
|
||||
- >
|
||||
STACK_RESOLVER="--resolver lts-10"
|
||||
|
||||
# LTS 7 to 9 use GHC 8.0.{1,2}
|
||||
- >
|
||||
STACK_RESOLVER="--resolver lts-9 --stack-yaml stack-older-snapshots.yaml"
|
||||
|
||||
# LTS 3 to 6 use GHC 7.10.{2,3}
|
||||
- >
|
||||
STACK_RESOLVER="--resolver lts-6 --stack-yaml stack-older-snapshots.yaml"
|
||||
|
||||
# LTS 1 and 2 use GHC 7.8.4
|
||||
- >
|
||||
STACK_VERSION="1.9.1"
|
||||
STACK_RESOLVER="--resolver lts-2 --stack-yaml stack-older-snapshots.yaml"
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- env: ALLOW_FAILURE=true
|
||||
|
||||
before_install:
|
||||
- export PATH="$HOME/.local/bin:$HOME/.stack/bin:$PATH"
|
||||
- travis_retry scripts/ci/install/stack
|
||||
- stack $STACK_RESOLVER --no-terminal setup
|
||||
- |
|
||||
if "${RUN_RELEASE_CHECKS:-false}"; then
|
||||
./scripts/ci/install/hlint
|
||||
fi
|
||||
|
||||
script:
|
||||
- |
|
||||
_stack() {
|
||||
if [[ $# -ge 1 ]] && [[ $1 == --travis_wait ]]; then
|
||||
shift
|
||||
travis_wait stack $STACK_RESOLVER --no-terminal "$@" ${STACK_BUILD_ARGS:-""}
|
||||
else
|
||||
stack $STACK_RESOLVER --no-terminal "$@" ${STACK_BUILD_ARGS:-""}
|
||||
fi
|
||||
}
|
||||
- _stack --travis_wait build
|
||||
- |
|
||||
if "${RUN_TESTSUITE:-false}"; then
|
||||
# -j1 to work around https://github.com/commercialhaskell/stack/issues/5159.
|
||||
_stack --travis_wait test -j1 && _stack --travis_wait haddock --no-haddock-deps
|
||||
fi
|
||||
- |
|
||||
if "${BUILD_BENCHMARKS:-false}"; then
|
||||
_stack --travis_wait bench --no-run-benchmarks
|
||||
fi
|
||||
- |
|
||||
if "${BUILD_SOURCE_DIST:-false}"; then
|
||||
stack sdist
|
||||
fi
|
||||
- |
|
||||
if "${RUN_RELEASE_CHECKS:-false}"; then
|
||||
for check in scripts/ci/checks/*; do
|
||||
echo "Running check: $(basename "$check")"
|
||||
"./$check"
|
||||
done
|
||||
fi
|
||||
|
||||
before_cache:
|
||||
- |
|
||||
if "${CLEAR_STACK_CACHE:-false}"; then
|
||||
rm -rf $HOME/.stack
|
||||
fi
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.stack
|
@ -5,12 +5,7 @@
|
||||
A modern Wadler/Leijen Prettyprinter
|
||||
====================================
|
||||
|
||||
[![](https://img.shields.io/travis/quchen/prettyprinter/master.svg?style=flat-square&label=Master%20build)](https://travis-ci.org/quchen/prettyprinter)
|
||||
[![](https://img.shields.io/hackage/v/prettyprinter.svg?style=flat-square&label=Hackage&colorB=0a7bbb)](https://hackage.haskell.org/package/prettyprinter)
|
||||
[![](https://www.stackage.org/package/prettyprinter/badge/lts?style=flat-square&colorB=0a7bbb)](https://www.stackage.org/package/prettyprinter)
|
||||
[![](https://www.stackage.org/package/prettyprinter/badge/nightly?style=flat-square&label=stackage%20nightly&colorB=0a7bbb)](https://www.stackage.org/package/prettyprinter)
|
||||
|
||||
|
||||
|
||||
tl;dr
|
||||
-----
|
||||
|
20
cabal.haskell-ci
Normal file
20
cabal.haskell-ci
Normal file
@ -0,0 +1,20 @@
|
||||
-- configuration for haskell-ci
|
||||
-- so we don't need to pass all via command line arguments
|
||||
|
||||
-- build only master branch, or PRs to master branch
|
||||
branches: master
|
||||
|
||||
-- gauge works only with newer GHC
|
||||
benchmarks: >=7.8.4
|
||||
|
||||
-- Doctests fail with GHC 7.10
|
||||
tests: >=8.0
|
||||
|
||||
cabal-check: False
|
||||
|
||||
hlint: True
|
||||
hlint-yaml: .hlint.yaml
|
||||
hlint-download-binary: True
|
||||
-- haskell-ci runs hlint within the package directories, so the CPP include
|
||||
-- path has to be adjusted so it can find version-compatibility-macros.h.
|
||||
hlint-options: --cpp-include=misc
|
@ -14,12 +14,7 @@ maintainer: Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky
|
||||
bug-reports: http://github.com/quchen/prettyprinter/issues
|
||||
homepage: http://github.com/quchen/prettyprinter
|
||||
build-type: Simple
|
||||
tested-with: GHC == 7.8.4
|
||||
, GHC == 7.10.2
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.1
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
tested-with: GHC==8.10.3, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
@ -13,12 +13,7 @@ maintainer: David Luposchainsky <dluposchainsky at google>
|
||||
bug-reports: http://github.com/quchen/prettyprinter/issues
|
||||
homepage: http://github.com/quchen/prettyprinter
|
||||
build-type: Simple
|
||||
tested-with: GHC == 7.8.4
|
||||
, GHC == 7.10.2
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.1
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
tested-with: GHC==8.10.3, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
@ -12,12 +12,7 @@ maintainer: David Luposchainsky <dluposchainsky at google>
|
||||
bug-reports: http://github.com/quchen/prettyprinter/issues
|
||||
homepage: http://github.com/quchen/prettyprinter
|
||||
build-type: Simple
|
||||
tested-with: GHC == 7.8.4
|
||||
, GHC == 7.10.2
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.1
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
tested-with: GHC==8.10.3, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
@ -12,12 +12,7 @@ maintainer: David Luposchainsky <dluposchainsky at google>
|
||||
bug-reports: http://github.com/quchen/prettyprinter/issues
|
||||
homepage: http://github.com/quchen/prettyprinter
|
||||
build-type: Simple
|
||||
tested-with: GHC == 7.8.4
|
||||
, GHC == 7.10.2
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.1
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
tested-with: GHC==8.10.3, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
@ -12,12 +12,7 @@ maintainer: Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky
|
||||
bug-reports: http://github.com/quchen/prettyprinter/issues
|
||||
homepage: http://github.com/quchen/prettyprinter
|
||||
build-type: Simple
|
||||
tested-with: GHC == 7.8.4
|
||||
, GHC == 7.10.2
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.1
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
tested-with: GHC==8.10.3, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
@ -14,6 +14,7 @@ maintainer: Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky
|
||||
bug-reports: http://github.com/quchen/prettyprinter/issues
|
||||
homepage: http://github.com/quchen/prettyprinter
|
||||
build-type: Simple
|
||||
tested-with: GHC==8.10.3, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
||||
|
||||
|
||||
|
||||
@ -136,7 +137,7 @@ test-suite testsuite
|
||||
, prettyprinter
|
||||
|
||||
, pgp-wordlist >= 0.1
|
||||
, bytestring >= 0.10
|
||||
, bytestring
|
||||
, quickcheck-instances >= 0.3
|
||||
, tasty >= 0.10
|
||||
, tasty-hunit >= 0.9
|
||||
|
Loading…
Reference in New Issue
Block a user