1
0
Fork 0
hswro-alarm-bot/.build.yml

29 lines
640 B
YAML

image: alpine/latest
packages:
- go
- python3-dev
- tar
- xz
tasks:
- go-get: |
cd hswro-alarm-bot
go get -t
- precommit: |
cd hswro-alarm-bot
python3 -m venv .venv
source .venv/bin/activate
pip3 install pre-commit
pre-commit install
pre-commit run -a
- test: |
cd hswro-alarm-bot
go test --count=10000
- build-x86_64: |
cd hswro-alarm-bot
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o alarm_bot.x86-64
- compress: |
cd hswro-alarm-bot
tar cJvf alarm_bot.tar.xz alarm_bot.x86-64
artifacts:
- hswro-alarm-bot/alarm_bot.tar.xz