mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +00:00
fix stupid mistake
This commit is contained in:
@@ -9,8 +9,10 @@ COPY cmd /go/src/github.com/dominicbreuker/pspy/cmd
|
|||||||
COPY internal /go/src/github.com/dominicbreuker/pspy/internal
|
COPY internal /go/src/github.com/dominicbreuker/pspy/internal
|
||||||
COPY vendor /go/src/github.com/dominicbreuker/pspy/vendor
|
COPY vendor /go/src/github.com/dominicbreuker/pspy/vendor
|
||||||
|
|
||||||
# build executable
|
# run tests
|
||||||
WORKDIR /go/src/github.com/dominicbreuker/pspy
|
WORKDIR /go/src/github.com/dominicbreuker/pspy
|
||||||
|
RUN go test ./...
|
||||||
|
# build executable
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o bin/pspy main.go
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o bin/pspy main.go
|
||||||
|
|
||||||
### Prepare integration test ###
|
### Prepare integration test ###
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# run unit tests
|
|
||||||
echo "[+] running unit tests"
|
|
||||||
sudo /bin/sh -c 'GOPATH=/go /usr/local/go/bin/go test ./...'
|
|
||||||
|
|
||||||
# run integration test
|
|
||||||
sudo cron -f &
|
sudo cron -f &
|
||||||
sleep 1
|
sleep 1
|
||||||
sudo ps | grep cron 1>/dev/null
|
sudo ps | grep cron 1>/dev/null
|
||||||
|
|||||||
0
internal/fswatcher/inotify/testdata/folder/.keep
vendored
Normal file
0
internal/fswatcher/inotify/testdata/folder/.keep
vendored
Normal file
Reference in New Issue
Block a user