1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00

Merge remote-tracking branch 'origin/cache-cow' into hlint-in-ci-again

This commit is contained in:
Patrick Thomson 2019-10-21 14:12:46 -04:00
commit a767642ab9
4 changed files with 20 additions and 14 deletions

View File

@ -17,10 +17,14 @@ before_cache:
- rm -rfv $HOME/.cabal/packages/head.hackage - rm -rfv $HOME/.cabal/packages/head.hackage
# remove files from old compilers
- rm -rfv $HOME/.cabal/store/{!(ghc-8.6.5)}
- rm -rfv $TRAVIS_BUILD_DIR/dist-newstyle/build/*/{!(ghc-8.6.5)}
matrix: matrix:
include: include:
- compiler: "ghc-8.6.4" - compiler: "ghc-8.6.5"
addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.4], sources: [hvr-ghc]}} addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.5], sources: [hvr-ghc]}}
before_install: before_install:
- mkdir -p $HOME/.local/bin - mkdir -p $HOME/.local/bin
@ -29,19 +33,19 @@ before_install:
- cabal --version - cabal --version
install: install:
- cabal new-update -v - cabal v2-update -v
- cabal new-configure --enable-tests --enable-benchmarks --disable-optimization --write-ghc-environment-files=always --jobs=2 - cabal v2-configure --enable-tests --enable-benchmarks --disable-optimization --write-ghc-environment-files=always --jobs=2
- cabal new-build --only-dependencies - cabal v2-build --only-dependencies
script: script:
- cabal new-build - cabal v2-build
- cabal new-run semantic:test - cabal v2-run semantic:test
- cabal new-run semantic-core:test - cabal v2-run semantic-core:test
- cabal new-run semantic-python:test - cabal v2-run semantic-python:test
- cabal new-run semantic-source:test - cabal v2-run semantic-source:test
- cabal new-run semantic-source:doctest - cabal v2-run semantic-source:doctest
# parse-examples is disabled because it slaughters our CI # parse-examples is disabled because it slaughters our CI
# - cabal new-run semantic:parse-examples # - cabal v2-run semantic:parse-examples
# Downloads an hlint binary rather than going through cabal-install # Downloads an hlint binary rather than going through cabal-install
- curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s src semantic-python - curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s src semantic-python

View File

@ -16,6 +16,8 @@ copyright: (c) 2019 GitHub, Inc.
category: Language category: Language
extra-source-files: CHANGELOG.md extra-source-files: CHANGELOG.md
tested-with: GHC == 8.6.5
library library
exposed-modules: exposed-modules:
-- other-modules: -- other-modules:

View File

@ -16,7 +16,7 @@ build-type: Simple
stability: alpha stability: alpha
extra-source-files: README.md extra-source-files: README.md
tested-with: GHC == 8.6.4 tested-with: GHC == 8.6.5
common haskell common haskell
default-language: Haskell2010 default-language: Haskell2010

View File

@ -16,7 +16,7 @@ build-type: Simple
stability: alpha stability: alpha
extra-source-files: README.md extra-source-files: README.md
tested-with: GHC == 8.6.4 tested-with: GHC == 8.6.5
flag release flag release
description: Build with optimizations on (for CI or deployment builds) description: Build with optimizations on (for CI or deployment builds)