-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-verify.fish
More file actions
34 lines (29 loc) · 879 Bytes
/
build-verify.fish
File metadata and controls
34 lines (29 loc) · 879 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
# Copyright (c) 2017, Josh Filstrup
# Licensed under MIT(see LICENSE file for details)
#
# A script used by travis to verify a build, including:
# - Build the code
# - Run tests
function runcmd
if eval $argv >>$ROOT/build_log.txt 2>&1
echo '✓ ' $argv
else
echo '✗ ' $argv
exit 1
end
end
set IDRISCC $argv
set ROOT (pwd)
runcmd "which $IDRISCC"
echo '-------------------------------------'
echo 'Idris compiler found!'
echo '-------------------------------------'
runcmd "$IDRISCC --clean tp.ipkg"
runcmd "$IDRISCC --build tp.ipkg"
echo '-------------------------------------'
echo 'Compilation ran successfully!'
echo '-------------------------------------'
runcmd "$IDRISCC --testpkg tp.ipkg | grep -v 'failed'"
echo '-------------------------------------'
echo 'Tests ran successfully!'
echo '-------------------------------------'