good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 1e606557 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

Remove useless ci/lib.sh and add script to push docker image

parent 2d4daf33
No related branches found
No related tags found
No related merge requests found
......@@ -83,3 +83,6 @@ workflows:
test:
jobs:
- test
bench:
jobs:
- bench
\ No newline at end of file
......@@ -2,8 +2,9 @@
set -euo pipefail
cd "$(dirname "${0}")"
source ./lib.sh
cd "$(git rev-parse --show-toplevel)"
mkdir -p ci/out
go test -vet=off -run=^$ -bench=. -o=ci/out/websocket.test \
-cpuprofile=ci/out/cpu.prof \
-memprofile=ci/out/mem.prof \
......
......@@ -2,7 +2,7 @@
set -euo pipefail
cd "$(dirname "${0}")"
source ./lib.sh
cd "$(git rev-parse --show-toplevel)"
gen() {
# Unfortunately, this is the only way to ensure go.mod and go.sum are correct.
......
File moved
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${0}")"
cd "$(git rev-parse --show-toplevel)"
docker build -t nhooyr/websocket-ci .
docker push nhooyr/websocket-ci
......@@ -2,7 +2,7 @@
set -euo pipefail
cd "$(dirname "${0}")"
source ./lib.sh
cd "$(git rev-parse --show-toplevel)"
# shellcheck disable=SC2046
shellcheck -e SC1091 -x $(git ls-files "*.sh")
......
......@@ -4,7 +4,7 @@
set -euo pipefail
cd "$(dirname "${0}")"
source ./lib.sh
cd "$(git rev-parse --show-toplevel)"
./ci/fmt.sh
./ci/lint.sh
......
......@@ -2,8 +2,9 @@
set -euo pipefail
cd "$(dirname "${0}")"
source ./lib.sh
cd "$(git rev-parse --show-toplevel)"
mkdir -p ci/out
# If you'd like to modify the args to go test, just run go test directly, this script is meant
# for running tests at the end to get coverage and test under the race detector.
go test -race -vet=off -coverprofile=ci/out/coverage.prof -coverpkg=./... ./...
......
......@@ -40,4 +40,4 @@ installation of shellcheck, node and the Autobahn test suite on Debian or Ubuntu
For Go, please refer to the [offical docs](https://golang.org/doc/install).
You can benchmark the library with `./ci/benchmark.sh`. You only need Go to run that script. Benchmark
profiles generated by that script are also available as artifacts on the bench step.
\ No newline at end of file
profiles generated by that script are also available as artifacts on the bench step.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment