2020-04-15 07:45:18 +00:00
|
|
|
variables:
|
|
|
|
GIT_SSL_NO_VERIFY: "1"
|
|
|
|
|
|
|
|
# Commit of ghc/ci-images repository from which to pull Docker images
|
2020-06-26 12:51:30 +00:00
|
|
|
DOCKER_REV: 1ac7f435c9312f10422a82d304194778378e2a1a
|
2020-04-15 07:45:18 +00:00
|
|
|
|
|
|
|
############################################################
|
|
|
|
# CI Step
|
|
|
|
############################################################
|
|
|
|
|
|
|
|
.debian:
|
|
|
|
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
|
|
|
|
tags:
|
|
|
|
- x86_64-linux
|
2020-04-19 15:00:05 +00:00
|
|
|
variables:
|
|
|
|
OS: "LINUX"
|
|
|
|
|
2020-04-19 17:23:54 +00:00
|
|
|
.alpine:64bit:
|
2020-04-19 15:00:05 +00:00
|
|
|
image: "alpine:edge"
|
|
|
|
tags:
|
|
|
|
- x86_64-linux
|
|
|
|
variables:
|
|
|
|
OS: "LINUX"
|
2020-04-19 17:23:54 +00:00
|
|
|
BIT: "64"
|
|
|
|
|
|
|
|
.alpine:32bit:
|
|
|
|
image: "i386/alpine:edge"
|
|
|
|
tags:
|
|
|
|
- x86_64-linux
|
|
|
|
variables:
|
|
|
|
OS: "LINUX"
|
|
|
|
BIT: "32"
|
2020-04-15 07:45:18 +00:00
|
|
|
|
|
|
|
.darwin:
|
|
|
|
tags:
|
|
|
|
- x86_64-darwin
|
2020-04-19 15:00:05 +00:00
|
|
|
variables:
|
|
|
|
OS: "DARWIN"
|
2020-04-15 07:45:18 +00:00
|
|
|
|
2020-04-18 19:16:03 +00:00
|
|
|
.freebsd:
|
|
|
|
tags:
|
|
|
|
- x86_64-freebsd
|
2020-04-19 15:00:05 +00:00
|
|
|
variables:
|
|
|
|
OS: "FREEBSD"
|
|
|
|
|
|
|
|
.root_cleanup:
|
|
|
|
after_script:
|
|
|
|
- BUILD_DIR=$CI_PROJECT_DIR
|
|
|
|
- echo "Cleaning $BUILD_DIR"
|
|
|
|
- cd $HOME
|
|
|
|
- test -n "$BUILD_DIR"
|
|
|
|
- shopt -s extglob
|
|
|
|
- rm -Rf "$BUILD_DIR"/!(out)
|
|
|
|
- exit 0
|
2020-04-18 19:16:03 +00:00
|
|
|
|
2020-04-15 07:45:18 +00:00
|
|
|
.test_ghcup_version:
|
|
|
|
script:
|
|
|
|
- ./.gitlab/script/ghcup_version.sh
|
|
|
|
variables:
|
2020-04-25 11:02:34 +00:00
|
|
|
JSON_VERSION: "0.0.2"
|
2020-04-15 07:45:18 +00:00
|
|
|
|
|
|
|
.test_ghcup_version:linux:
|
|
|
|
extends:
|
|
|
|
- .test_ghcup_version
|
|
|
|
- .debian
|
|
|
|
before_script:
|
|
|
|
- ./.gitlab/before_script/linux/install_deps.sh
|
|
|
|
|
|
|
|
.test_ghcup_version:darwin:
|
|
|
|
extends:
|
|
|
|
- .test_ghcup_version
|
|
|
|
- .darwin
|
2020-04-19 15:00:05 +00:00
|
|
|
- .root_cleanup
|
2020-04-15 07:45:18 +00:00
|
|
|
before_script:
|
|
|
|
- ./.gitlab/before_script/darwin/install_deps.sh
|
|
|
|
|
2020-04-18 19:16:03 +00:00
|
|
|
.test_ghcup_version:freebsd:
|
|
|
|
extends:
|
|
|
|
- .test_ghcup_version
|
|
|
|
- .freebsd
|
2020-04-19 15:00:05 +00:00
|
|
|
- .root_cleanup
|
2020-04-18 19:16:03 +00:00
|
|
|
before_script:
|
|
|
|
- ./.gitlab/before_script/freebsd/install_deps.sh
|
|
|
|
|
2020-04-19 15:00:05 +00:00
|
|
|
.release_ghcup:
|
|
|
|
script:
|
|
|
|
- ./.gitlab/script/ghcup_release.sh
|
|
|
|
artifacts:
|
|
|
|
expire_in: 2 week
|
|
|
|
paths:
|
|
|
|
- out
|
|
|
|
only:
|
|
|
|
- tags
|
2020-04-15 07:45:18 +00:00
|
|
|
|
2020-04-18 19:16:03 +00:00
|
|
|
######## linux test ########
|
2020-04-15 07:45:18 +00:00
|
|
|
|
|
|
|
test:linux:recommended:
|
|
|
|
extends: .test_ghcup_version:linux
|
|
|
|
variables:
|
2020-07-20 20:25:09 +00:00
|
|
|
GHC_VERSION: "8.8.4"
|
2020-04-18 19:16:03 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
2020-04-15 07:45:18 +00:00
|
|
|
|
|
|
|
test:linux:latest:
|
|
|
|
extends: .test_ghcup_version:linux
|
|
|
|
variables:
|
2020-07-11 21:03:04 +00:00
|
|
|
GHC_VERSION: "8.10.1"
|
2020-04-18 19:16:03 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
2020-04-15 07:45:18 +00:00
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
|
2020-04-18 19:16:03 +00:00
|
|
|
######## darwin test ########
|
2020-04-15 07:45:18 +00:00
|
|
|
|
|
|
|
test:mac:recommended:
|
|
|
|
extends: .test_ghcup_version:darwin
|
|
|
|
variables:
|
2020-07-20 21:57:26 +00:00
|
|
|
GHC_VERSION: "8.8.4"
|
2020-04-18 19:16:03 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
2020-04-15 07:45:18 +00:00
|
|
|
|
|
|
|
test:mac:latest:
|
|
|
|
extends: .test_ghcup_version:darwin
|
|
|
|
variables:
|
2020-07-11 21:03:04 +00:00
|
|
|
GHC_VERSION: "8.10.1"
|
2020-04-18 19:16:03 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
|
|
|
|
######## freebsd test ########
|
|
|
|
|
|
|
|
test:freebsd:recommended:
|
|
|
|
extends: .test_ghcup_version:freebsd
|
|
|
|
variables:
|
2020-07-20 21:57:26 +00:00
|
|
|
GHC_VERSION: "8.8.4"
|
2020-04-18 19:16:03 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
|
|
|
|
|
|
|
test:freebsd:latest:
|
|
|
|
extends: .test_ghcup_version:freebsd
|
|
|
|
variables:
|
2020-07-11 21:03:04 +00:00
|
|
|
GHC_VERSION: "8.10.1"
|
2020-04-18 19:16:03 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
2020-04-15 07:45:18 +00:00
|
|
|
allow_failure: true
|
|
|
|
|
2020-04-19 15:00:05 +00:00
|
|
|
|
|
|
|
######## linux release ########
|
|
|
|
|
2020-04-19 17:23:54 +00:00
|
|
|
release:linux:64bit:
|
|
|
|
extends:
|
|
|
|
- .alpine:64bit
|
|
|
|
- .release_ghcup
|
|
|
|
before_script:
|
|
|
|
- ./.gitlab/before_script/linux/alpine/install_deps.sh
|
|
|
|
variables:
|
|
|
|
ARTIFACT: "x86_64-linux-ghcup"
|
2020-07-20 20:24:21 +00:00
|
|
|
GHC_VERSION: "8.8.4"
|
2020-04-19 17:23:54 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
|
|
|
|
|
|
|
|
|
|
|
release:linux:32bit:
|
2020-04-19 15:00:05 +00:00
|
|
|
extends:
|
2020-04-19 17:23:54 +00:00
|
|
|
- .alpine:32bit
|
2020-04-19 15:00:05 +00:00
|
|
|
- .release_ghcup
|
|
|
|
before_script:
|
|
|
|
- ./.gitlab/before_script/linux/alpine/install_deps.sh
|
|
|
|
variables:
|
2020-04-27 14:23:44 +00:00
|
|
|
ARTIFACT: "i386-linux-ghcup"
|
2020-07-20 21:57:26 +00:00
|
|
|
GHC_VERSION: "8.8.4"
|
2020-04-19 17:23:54 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
2020-04-19 15:00:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
######## darwin release ########
|
|
|
|
|
|
|
|
release:darwin:
|
|
|
|
extends:
|
|
|
|
- .darwin
|
|
|
|
- .release_ghcup
|
|
|
|
- .root_cleanup
|
|
|
|
before_script:
|
|
|
|
- ./.gitlab/before_script/darwin/install_deps.sh
|
|
|
|
variables:
|
|
|
|
ARTIFACT: "x86_64-apple-darwin-ghcup"
|
2020-07-13 18:48:37 +00:00
|
|
|
GHC_VERSION: "8.8.3"
|
2020-04-19 15:00:05 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
|
|
|
MACOSX_DEPLOYMENT_TARGET: "10.7"
|
|
|
|
|
|
|
|
|
|
|
|
######## freebsd release ########
|
|
|
|
|
|
|
|
release:freebsd:
|
|
|
|
extends:
|
|
|
|
- .freebsd
|
|
|
|
- .release_ghcup
|
|
|
|
- .root_cleanup
|
|
|
|
before_script:
|
|
|
|
- ./.gitlab/before_script/freebsd/install_deps.sh
|
|
|
|
variables:
|
|
|
|
ARTIFACT: "x86_64-portbld-freebsd-ghcup"
|
2020-07-13 18:48:37 +00:00
|
|
|
GHC_VERSION: "8.8.3"
|
2020-07-13 19:29:13 +00:00
|
|
|
CABAL_VERSION: "3.2.0.0"
|
2020-04-19 15:00:05 +00:00
|
|
|
|