JOJ3/.drone.yml
张佳澈520370910044 4455304db9
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
style(main_test.go,-.drone.yml,-scoreboard.go): reformats
2024-07-03 00:22:20 +08:00

39 lines
816 B
YAML

---
kind: pipeline
type: ssh
name: CI
server:
host: 111.186.59.59
user: drone
ssh_key:
from_secret: joj3-test
steps:
- name: prepare
commands:
- go env -w GOPROXY=https://goproxy.cn,direct
- whoami
- pwd
- env
- go version
- go env
- git status -v
- git log -1
- name: build
commands:
- make
- name: test
commands:
- make prepare-test
- make test
- name: scoreboard
environment:
GITEA_ACCESS_TOKEN:
from_secret: gitea-token
GITEA_ORG_NAME: FOCS-dev
commands:
- bash scripts/submit_scoreboard_failedtable.sh
- name: store
commands:
- cp build/joj3 /home/drone/.local/bin/joj3