diff options
Diffstat (limited to 'vendor/cabal-helper-0.8.1.2/scripts/ci/steps')
7 files changed, 29 insertions, 0 deletions
diff --git a/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/00-config.sh b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/00-config.sh new file mode 100644 index 0000000..eb8280a --- /dev/null +++ b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/00-config.sh @@ -0,0 +1,12 @@ +if [ -w . ]; then + sandbox="$PWD"/.cabal-sandbox + sandbox_config="$PWD"/cabal.sandbox.config +else + sandbox="$HOME"/cabal-sandbox + sandbox_config="$HOME"/cabal.sandbox.config +fi + +source_dir="$(mktemp --tmpdir -d "cabal-helper.sdistXXXXXXXXX")" +build_dir="$(mktemp --tmpdir -d "cabal-helper.distXXXXXXXXX")" + +NPROC=${NPROC:-1} diff --git a/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/05-print-packages.sh b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/05-print-packages.sh new file mode 120000 index 0000000..4a3479a --- /dev/null +++ b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/05-print-packages.sh @@ -0,0 +1 @@ +../print-packages.sh
\ No newline at end of file diff --git a/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/10-dependencies.sh b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/10-dependencies.sh new file mode 100644 index 0000000..0d0254c --- /dev/null +++ b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/10-dependencies.sh @@ -0,0 +1,3 @@ +"$CI_SCRIPTS_DIR"/retry.sh cabal update +cabal --sandbox-config="$sandbox_config" sandbox init --sandbox="$sandbox" +cabal --sandbox-config="$sandbox_config" install --only-dependencies --enable-tests diff --git a/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/15-print-packages.sh b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/15-print-packages.sh new file mode 120000 index 0000000..4a3479a --- /dev/null +++ b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/15-print-packages.sh @@ -0,0 +1 @@ +../print-packages.sh
\ No newline at end of file diff --git a/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/20-sdist.sh b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/20-sdist.sh new file mode 100644 index 0000000..bd8fbe1 --- /dev/null +++ b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/20-sdist.sh @@ -0,0 +1,6 @@ +mkdir -p "$source_dir" +mkdir -p "$build_dir" + +cabal --sandbox-config="$sandbox_config" sdist --builddir="$build_dir" --output-directory="$source_dir" + +cd "$source_dir" diff --git a/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/30-build.sh b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/30-build.sh new file mode 100644 index 0000000..8e71aa3 --- /dev/null +++ b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/30-build.sh @@ -0,0 +1,4 @@ +# -fdev enables building the helper "main" exe directly and enables more warnings +cabal --sandbox-config="$sandbox_config" configure --builddir="$build_dir" --enable-tests -fdev +cabal --sandbox-config="$sandbox_config" build --builddir="$build_dir" +cabal --sandbox-config="$sandbox_config" haddock --builddir="$build_dir" diff --git a/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/40-test.sh b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/40-test.sh new file mode 100644 index 0000000..cfdf05c --- /dev/null +++ b/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/40-test.sh @@ -0,0 +1,2 @@ +cabal_helper_libexecdir="$build_dir"/build/cabal-helper-wrapper \ + cabal --sandbox-config="$sandbox_config" test --builddir="$build_dir" --show-details=streaming |