File tree Expand file tree Collapse file tree 4 files changed +24
-38
lines changed
issue110_xref_to_package_d Expand file tree Collapse file tree 4 files changed +24
-38
lines changed Original file line number Diff line number Diff line change 4
4
node_modules
5
5
test /screenshots /* .diff.png
6
6
test /screenshots /* .fail.png
7
+ tests /* /test.json
8
+ tests /* /__dummy.html
9
+ tests /* /docs /file_hashes.json
10
+ tests /timestamp /docs /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -eo pipefail
3
+ set -ueo pipefail
4
4
5
5
dub test --compiler=${DC:= dmd}
6
6
dub build --compiler=${DC}
7
+
8
+ failure=0
9
+ shopt -s globstar # for **/*.d expansion
10
+ for dir in tests/* ; do
11
+ pushd $dir
12
+ ${DMD:- dmd} -Xftest.json -Df__dummy.html -c -o- ** /* .d
13
+ ../../ddox generate-html --html-style=pretty test.json docs
14
+ if [ ! -f .no_diff ] && ! git --no-pager diff --exit-code -- docs; then
15
+ failure=1
16
+ fi
17
+ popd
18
+ done
19
+ shopt -u globstar
20
+
7
21
./ddox serve-html test/test.json &
8
22
PID=$!
9
23
cleanup () { kill $PID ; }
@@ -18,8 +32,10 @@ if ! ./node_modules/phantomcss/node_modules/.bin/casperjs test test/test.js ; th
18
32
# upload failing screenshots
19
33
cd test/screenshots
20
34
for img in * .{diff,fail}.png; do
21
- ARGS=" $ARGS -F name=@$img "
35
+ ARGS=" ${ ARGS:- } -F name=@$img "
22
36
done
23
- curl -fsSL https://img.vim-cn.com/ $ARGS
24
- exit 1
37
+ curl -fsSL https://img.vim-cn.com/ ${ ARGS:- }
38
+ failure= 1
25
39
fi
40
+
41
+ exit $failure
You can’t perform that action at this time.
0 commit comments