-
Notifications
You must be signed in to change notification settings - Fork 66
/
ci.bat
67 lines (51 loc) · 1.31 KB
/
ci.bat
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@echo off
@setlocal
setlocal EnableDelayedExpansion
echo Unit Tests
echo "Test for successful release build"
dub build -b release --compiler=%DC%
dub clean --all-packages -q
echo "Running tests"
dub test --compiler=%DC% -v
echo "Running example tests"
pushd examples\simple_arithmetic
dub test --compiler=%DC% -q
popd
dub test :numbers --compiler=%DC% -q
dub test :arithmetic --compiler=%DC% -q
dub test :strings --compiler=%DC% -q
dub test :csv --compiler=%DC% -q
dub test :json --compiler=%DC% -q
pushd examples\composition
dub test --compiler=%DC% -q
popd
rem TODO Actually doesn't compiles
rem pushd examples\c
rem dub test --compiler=%DC% -q
rem popd
pushd examples\dgrammar
dub test --compiler=%DC% -q
popd
pushd examples\markdown
dub test --compiler=%DC% -q
popd
pushd examples\oberon2
dub test --compiler=%DC% -q
popd
pushd examples\parameterized
dub test --compiler=%DC% -q
popd
pushd examples\PEG
dub test --compiler=%DC% -q
popd
pushd examples\peggedgrammar
dub test --compiler=%DC% -q
popd
pushd examples\xml
dub test --compiler=%DC% -q
popd
echo Execute extended_pascal build
pushd examples\extended_pascal
rem Hack to workaround dub bug with preGenerateCommands
dub build -b release --compiler=%DC% || dub build -b release --compiler=%DC%
popd