# Building with tests and benchmarks... の後ぐらいに挿入すると良い
patch
diff --git a/.travis.yml b/.travis.ymlindex e6a7410..4bf16d5 100644--- a/.travis.yml+++ b/.travis.yml@@ -197,6 +197,7 @@ script: # this builds all libraries and executables (without tests/benchmarks) - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output # Building with tests and benchmarks...+ - ${CABAL} v2-install $WITHCOMPILER -j2 tasty-discover | color_cabal_output # build & run tests, build benchmarks - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output # Testing...
デフォルトの設定ファイル
default.haskell-ci
-- cabal-install version for all jobscabal-install-version:2.4-- jobs (N:M - cabal:ghc)jobs:-- distribution version (xenial, bionic)distribution:xenial-- Jobs selection across packagesjobs-selection:uniform-- Copy ? fields from cabal.project fieldscopy-fields:some-- --ghc-options for local packageslocal-ghc-options:-- Clone submodules, i.e. recursivelysubmodules:False-- Disable cachingcache:True-- Skip separate dependency installation stepinstall-dependencies:True-- Specify 'constraint:... installed' packagesinstalled:-- Build tests withtests:True-- Run tests with (note:only built tests are run)run-tests:True-- Build benchmarksbenchmarks:True-- Haddock stephaddock:True-- Build without tests and benchmarksno-tests-no-benchmarks:True-- Make unconstrained buildunconstrained:True-- Use head.hackage repository. Also marks as allow-failureshead-hackage:>=8.9-- Disable cabal check runcabal-check:True-- Enable builds only for specific branchesbranches:-- Enable IRC notifications to given channel (e.g. 'irc.freenode.org#haskell-lens')irc-channels:-- Project name (used for IRC notifications), defaults to package name or name of first package listed in cabal.project file
project-name:-- Build steps to foldfolds:-- Add ghc-head jobghc-head:False-- Add postgresql servicepostgresql:False-- Environment variables per job (e.g. `8.0.2:HADDOCK=false`)env:-- Allow failures of particular GHC versionallow-failures:False-- [Discouraged] Assume there are only GHCs last in major series:8.2.* will match only 8.2.2last-in-series:False-- Jobs to additionally build with OSXosx:-- Additional apt packages to installapt:-- .patch files to apply to the generated Travis YAML filetravis-patches:-- Don't insert the haskell-ci version into the generated Travis YAML fileinsert-version:True-- Disable coloring cabal outputcolor:True-- Enable Doctest jobdoctest:False-- Additional Doctest optionsdoctest-options:-- Doctest versiondoctest-version:==0.16.*-- Filter packages from .ghc.environment filedoctest-filter-packages:-- Enable HLint jobhlint:False-- Specify HLint jobhlint-job:latest-- Use specific .hlint.yamlhlint-yaml:-- Additional HLint optionshlint-options:-- HLint versionhlint-version:==2.1.*