This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
cd " $( dirname " $0 " ) /.."
6
6
7
+ travis_cmd_prelude () {
8
+ if [[ -n " $TRAVIS " ]]; then
9
+ echo " travis_fold:start:_"
10
+ fi
11
+ }
12
+
13
+ travis_cmd_postlude () {
14
+ declare elapsed_seconds=$1
15
+ if [[ -n " $TRAVIS " ]]; then
16
+ echo " travis_fold:end:_"
17
+ # TODO: Use "travis_time" annotations instead of this fold hack:
18
+ echo " travis_fold:start:${elapsed_seconds} s"
19
+ echo " travis_fold:end:${elapsed_seconds} s"
20
+ fi
21
+ }
22
+
7
23
_ () {
8
- echo " travis_fold:start:_ "
24
+ travis_cmd_prelude
9
25
SECONDS=
10
26
(
11
27
set -x
12
28
" $@ "
13
29
) || exit 1
14
- echo " travis_fold:end:_"
15
- declare elapsed_seconds=$SECONDS
16
-
17
- # TODO: Use "travis_time" annotations instead of this fold hack:
18
- echo " travis_fold:start:${elapsed_seconds} s"
19
- echo " travis_fold:end:${elapsed_seconds} s"
30
+ travis_cmd_postlude $SECONDS
20
31
}
21
32
22
33
export RUSTFLAGS=" -D warnings"
@@ -55,7 +66,7 @@ for Xargo_toml in $(git ls-files -- '*/Xargo.toml'); do
55
66
done
56
67
57
68
# Run SPL Token's performance monitor
58
- cargo test --manifest-path=token/perf-monitor/Cargo.toml -- --nocapture
69
+ _ cargo test --manifest-path=token/perf-monitor/Cargo.toml -- --nocapture
59
70
60
71
61
72
# Test token js bindings
You can’t perform that action at this time.
0 commit comments