-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathjenkins-mac-build.sh
More file actions
executable file
·42 lines (32 loc) · 986 Bytes
/
jenkins-mac-build.sh
File metadata and controls
executable file
·42 lines (32 loc) · 986 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
#!/bin/bash
set -e
export CD=(`pwd`)
export GOPATH=$CD
export APP_DATA_PATH=$CD
install () {
echo "building the go app...."
ruby get_go_deps.rb
(go clean -i)
}
test () {
echo "Starting tests execution...."
#files=`grep -r 'debug #t' deviceSpecifications/*.device`
#if [ $? -eq 0 ]; then
# echo "*****************************************************************************************"
# echo "HeHe!! Found Device files with DEBUG statements. Did you get warning when running tests??"
# echo "Files: $files"
# echo "*****************************************************************************************"
# exit -1
#fi
mkdir -p reports
go test -i -ldflags=-linkmode=external github.com/steelseries/golisp
TEST_DIRS=$(find src/github.com/steelseries/golisp -name *test.go | xargs -n 1 dirname | sort -u)
for d in $TEST_DIRS
do
TEST_PKG="${d/src\//}"
go test -i $TEST_PKG
go test $TEST_PKG
done
}
install
test