forked from dlang/dmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsemaphoreci.sh
executable file
·37 lines (27 loc) · 1.18 KB
/
semaphoreci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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