chore: remove testing

This commit is contained in:
Bo-Yi Wu 2022-06-15 23:16:34 +08:00
parent cf159c578b
commit f11e2ed931
3 changed files with 17 additions and 29 deletions

View File

@ -13,17 +13,6 @@ steps:
volumes: volumes:
- name: gopath - name: gopath
path: /go path: /go
- commands:
- apk add git make curl perl bash build-base zlib-dev ucl-dev
- make ssh-server
- make test
- make coverage
image: golang:1.18-alpine
name: test
pull: always
volumes:
- name: gopath
path: /go
- image: robertstettner/drone-codecov - image: robertstettner/drone-codecov
name: codecov name: codecov
pull: always pull: always

View File

@ -111,7 +111,6 @@ ssh-server:
cat tests/.ssh/test.pub >> /home/drone-scp/.ssh/authorized_keys cat tests/.ssh/test.pub >> /home/drone-scp/.ssh/authorized_keys
chmod 600 /home/drone-scp/.ssh/authorized_keys chmod 600 /home/drone-scp/.ssh/authorized_keys
chown -R drone-scp /home/drone-scp/.ssh chown -R drone-scp /home/drone-scp/.ssh
# install ssh and start server
apk add --update openssh openrc apk add --update openssh openrc
rm -rf /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_dsa_key rm -rf /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_dsa_key
sed -i 's/^#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config sed -i 's/^#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config

View File

@ -21,23 +21,23 @@
}, },
], ],
}, },
{ // {
name: 'test', // name: 'test',
image: 'golang:1.18-alpine', // image: 'golang:1.18-alpine',
pull: 'always', // pull: 'always',
commands: [ // commands: [
'apk add git make curl perl bash build-base zlib-dev ucl-dev', // 'apk add git make curl perl bash build-base zlib-dev ucl-dev',
'make ssh-server', // 'make ssh-server',
'make test', // 'make test',
'make coverage', // 'make coverage',
], // ],
volumes: [ // volumes: [
{ // {
name: 'gopath', // name: 'gopath',
path: '/go', // path: '/go',
}, // },
], // ],
}, // },
{ {
name: 'codecov', name: 'codecov',
image: 'robertstettner/drone-codecov', image: 'robertstettner/drone-codecov',