dmd/semaphoreci.sh
Martin Nowak 1e81c60cde run tests without activated host compiler
- fixes issues where the activated release dmd overrides and hijacks the link
  paths of the generated dmd (by it's set LIBRARY_PATH/LD_LIBRARY_PATH)
- build and test commands already activate and deactivate host compiler where necessary
2018-02-08 21:21:43 +01:00

37 lines
1.2 KiB
Bash
Executable file

#!/bin/bash
set -uexo pipefail
################################################################################
# Set by the Semaphore job runner
################################################################################
export MODEL=${MODEL:-64} # can be {32,64}
export DMD=${DMD:-dmd} # can be {dmd,ldc,gdc}
################################################################################
# Static variables or inferred from Semaphore
# See also: https://semaphoreci.com/docs/available-environment-variables.html
################################################################################
export N=4
export OS_NAME=linux
export BRANCH=$BRANCH_NAME
export FULL_BUILD="${PULL_REQUEST_NUMBER+false}"
source ci.sh
################################################################################
# Always source a DMD instance
################################################################################
install_d "$DMD"
################################################################################
# Define commands
################################################################################
case $1 in
setup) setup_repos ;;
testsuite) testsuite ;;
esac