This commit is contained in:
parent
2061f6f684
commit
980414b794
5 changed files with 33 additions and 66 deletions
24
.drone.yml
Normal file
24
.drone.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
- tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Test
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||||
|
commands:
|
||||||
|
- dotnet tool restore
|
||||||
|
- dotnet restore
|
||||||
|
- dotnet nuke test
|
|
@ -1,61 +0,0 @@
|
||||||
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- test
|
|
||||||
- release
|
|
||||||
|
|
||||||
variables:
|
|
||||||
DOCKER_TLS_CERTDIR: "/certs"
|
|
||||||
DOCKER_CERT_PATH: "/certs/client"
|
|
||||||
DOCKER_TLS_VERIFY: 1
|
|
||||||
DOCKER_HOST: 'tcp://docker:2376'
|
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
before_script:
|
|
||||||
- |
|
|
||||||
curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.14.tgz | tar -xzv -C /usr/local/
|
|
||||||
|
|
||||||
docker run --rm -d \
|
|
||||||
--cap-add CAP_NET_RAW \
|
|
||||||
--cap-add CAP_NET_ADMIN \
|
|
||||||
--cap-add CAP_NET_BIND_SERVICE \
|
|
||||||
-u root \
|
|
||||||
-p 6767:6767 \
|
|
||||||
-e INETMOCK_API_LISTEN=tcp://0.0.0.0:6767 \
|
|
||||||
--name inetmock \
|
|
||||||
registry.gitlab.com/inetmock/inetmock:latest
|
|
||||||
|
|
||||||
for i in `seq 1 10`
|
|
||||||
do
|
|
||||||
docker exec -i inetmock /usr/lib/inetmock/bin/imctl health container 2>&1 > /dev/null || sleep 1;
|
|
||||||
done;
|
|
||||||
after_script:
|
|
||||||
- docker stop inetmock
|
|
||||||
variables:
|
|
||||||
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/docker
|
|
||||||
INETMOCK_SOCKET: http://docker:6767
|
|
||||||
script:
|
|
||||||
- dotnet tool restore
|
|
||||||
- dotnet nuke Test
|
|
||||||
|
|
||||||
protobuf-lint:
|
|
||||||
stage: test
|
|
||||||
image:
|
|
||||||
name: docker.io/bufbuild/buf:latest
|
|
||||||
entrypoint: [ "" ]
|
|
||||||
script:
|
|
||||||
- cd api/proto/
|
|
||||||
- buf ls-files
|
|
||||||
- buf lint
|
|
||||||
|
|
||||||
nuget-publish:
|
|
||||||
stage: release
|
|
||||||
only:
|
|
||||||
refs:
|
|
||||||
- tags
|
|
||||||
script:
|
|
||||||
- dotnet tool restore
|
|
||||||
- dotnet nuke NuGetPush
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
"title": "Build Schema",
|
|
||||||
"$ref": "#/definitions/build",
|
"$ref": "#/definitions/build",
|
||||||
|
"title": "Build Schema",
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"build": {
|
"build": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -29,6 +29,7 @@
|
||||||
"AppVeyor",
|
"AppVeyor",
|
||||||
"AzurePipelines",
|
"AzurePipelines",
|
||||||
"Bamboo",
|
"Bamboo",
|
||||||
|
"Bitbucket",
|
||||||
"Bitrise",
|
"Bitrise",
|
||||||
"GitHubActions",
|
"GitHubActions",
|
||||||
"GitLab",
|
"GitLab",
|
||||||
|
@ -38,8 +39,8 @@
|
||||||
"TeamCity",
|
"TeamCity",
|
||||||
"Terminal",
|
"Terminal",
|
||||||
"TravisCI",
|
"TravisCI",
|
||||||
"VisualStudio",
|
"VSCode",
|
||||||
"VSCode"
|
"VisualStudio"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"NoLogo": {
|
"NoLogo": {
|
||||||
|
@ -116,4 +117,4 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
.editorconfig = .editorconfig
|
.editorconfig = .editorconfig
|
||||||
.gitignore = .gitignore
|
.gitignore = .gitignore
|
||||||
.gitlab-ci.yml = .gitlab-ci.yml
|
|
||||||
.pre-commit-config.yaml = .pre-commit-config.yaml
|
.pre-commit-config.yaml = .pre-commit-config.yaml
|
||||||
README.md = README.md
|
README.md = README.md
|
||||||
global.json = global.json
|
global.json = global.json
|
||||||
|
|
|
@ -17,4 +17,8 @@
|
||||||
<PackageDownload Include="GitVersion.Tool" Version="[5.8.0]"/>
|
<PackageDownload Include="GitVersion.Tool" Version="[5.8.0]"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="ci\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Reference in a new issue