Beef up the tests
This commit is contained in:
7
.gitlab/before_script/darwin/install_deps.sh
Executable file
7
.gitlab/before_script/darwin/install_deps.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
#sudo brew reinstall gmp
|
||||
|
||||
exit 0
|
||||
6
.gitlab/before_script/linux/install_deps.sh
Executable file
6
.gitlab/before_script/linux/install_deps.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y libnuma-dev
|
||||
11
.gitlab/before_script/linux/install_shellcheck.sh
Executable file
11
.gitlab/before_script/linux/install_shellcheck.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
# install shellcheck
|
||||
wget https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz
|
||||
tar -xJf shellcheck-latest.linux.x86_64.tar.xz
|
||||
mkdir -p "$CI_PROJECT_DIR"/.local/bin/
|
||||
mv shellcheck-latest/shellcheck "$CI_PROJECT_DIR"/.local/bin/shellcheck
|
||||
|
||||
|
||||
8
.gitlab/ghcup_env
Normal file
8
.gitlab/ghcup_env
Normal file
@@ -0,0 +1,8 @@
|
||||
GHCUP_META_DOWNLOAD_URL="file://${CI_PROJECT_DIR}/.download-urls"
|
||||
export GHCUP_META_DOWNLOAD_URL
|
||||
GHCUP_META_VERSION_URL="file://${CI_PROJECT_DIR}/.available-versions"
|
||||
export GHCUP_META_VERSION_URL
|
||||
|
||||
export GHCUP_INSTALL_BASE_PREFIX="$CI_PROJECT_DIR"
|
||||
export PATH="$CI_PROJECT_DIR/.ghcup/bin:$CI_PROJECT_DIR/.local/bin:$PATH"
|
||||
|
||||
13
.gitlab/script/ghcup_cached_tarball.sh
Executable file
13
.gitlab/script/ghcup_cached_tarball.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"
|
||||
|
||||
mkdir -p "$CI_PROJECT_DIR"/.local/bin
|
||||
cp ./ghcup "$CI_PROJECT_DIR"/.local/bin/ghcup
|
||||
|
||||
ghcup -v -c install 8.6.5
|
||||
test -f "$CI_PROJECT_DIR/.ghcup/cache/ghc-8.6.5-x86_64-deb9-linux.tar.xz"
|
||||
ghcup -v -c install 8.6.5
|
||||
|
||||
33
.gitlab/script/ghcup_version.sh
Executable file
33
.gitlab/script/ghcup_version.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"
|
||||
|
||||
mkdir -p "$CI_PROJECT_DIR"/.local/bin
|
||||
|
||||
cp ./ghcup "$CI_PROJECT_DIR"/.local/bin/ghcup
|
||||
|
||||
ghcup --version
|
||||
|
||||
ghcup -v install ${GHC_VERSION}
|
||||
ghcup -v set ${GHC_VERSION}
|
||||
ghcup -v install-cabal
|
||||
|
||||
cabal --version
|
||||
|
||||
ghcup -v debug-info
|
||||
|
||||
ghcup -v list
|
||||
ghcup -v list -t ghc
|
||||
ghcup -v list -t cabal-install
|
||||
|
||||
ghc --version
|
||||
ghci --version
|
||||
ghc-$(ghc --numeric-version) --version
|
||||
ghci-$(ghc --numeric-version) --version
|
||||
|
||||
ghcup -v upgrade
|
||||
|
||||
ghcup -v rm -f ${GHC_VERSION}
|
||||
|
||||
8
.gitlab/script/shellcheck.sh
Executable file
8
.gitlab/script/shellcheck.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"
|
||||
|
||||
shellcheck ghcup
|
||||
|
||||
Reference in New Issue
Block a user