forked from dlang/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis.sh
More file actions
executable file
·44 lines (32 loc) · 747 Bytes
/
travis.sh
File metadata and controls
executable file
·44 lines (32 loc) · 747 Bytes
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
38
39
40
41
42
43
44
#!/bin/bash
set -uexo pipefail
DIGGER_DIR="../digger"
DIGGER="../digger/digger"
# set to 64-bit by default
if [ -z ${MODEL:-} ] ; then
MODEL=64
fi
test_rdmd() {
# run rdmd internal tests
rdmd -m$MODEL -main -unittest rdmd.d
# compile rdmd & testsuite
dmd -m$MODEL rdmd.d
dmd -m$MODEL rdmd_test.d
# run rdmd testsuite
./rdmd_test
}
build_digger() {
git clone --recursive https://github.com/CyberShadow/Digger "$DIGGER_DIR"
(cd "$DIGGER_DIR" && rdmd --build-only -debug digger)
}
install_digger() {
$DIGGER build --model=$MODEL "master"
export PATH=$PWD/result/bin:$PATH
}
if ! [ -d "$DIGGER_DIR" ] ; then
build_digger
fi
install_digger
dmd --version
rdmd --help | head -n 1
test_rdmd