Skip to content

Commit d83c0ec

Browse files
committed
Build and test scripts
1 parent e34dfb8 commit d83c0ec

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
process_exporter
22
prcexpintdum
33
dummyfile
4+
/testing

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -e
3+
set -x
4+
go build -o process_exporter github.com/setlog/process_exporter/cmd/exporter

test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e
3+
set -x
4+
go test -v ./...
5+
go build -o testing/integration_test github.com/setlog/process_exporter/integration_test
6+
cd testing
7+
./integration_test
8+
cd ..
9+
rm -rf testing

0 commit comments

Comments
 (0)