Final Test
This commit is contained in:
parent
03da6fff38
commit
1cb11cf8cd
1 changed files with 4 additions and 26 deletions
|
@ -1,14 +1,4 @@
|
|||
steps:
|
||||
- name: Lint
|
||||
image: silkeh/clang:16
|
||||
commands:
|
||||
- echo "Linting C++ code..."
|
||||
- clang-tidy main.cpp -- -std=c++17
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
- name: Build
|
||||
image: alpine
|
||||
commands:
|
||||
|
@ -17,31 +7,19 @@ steps:
|
|||
- echo "Building project..."
|
||||
- g++ -o build/main main.cpp
|
||||
|
||||
- name: Test
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "Running tests..."
|
||||
- ./build/main
|
||||
depends_on:
|
||||
- Build
|
||||
|
||||
- name: discord notification
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id: 1357683988373704824
|
||||
webhook_token: wtAZM1Ps4upFV0Z5_HJKzWkJ19-lj0tagEwPofOJN4O3OHuET309RTkKQgakDWVrl0Ml
|
||||
message: >
|
||||
Repository {{repo.name}}
|
||||
Owner {{repo.owner}}
|
||||
Build Message {{build.message}}
|
||||
Commiter: {{build.author}}
|
||||
{{#success build.status}}
|
||||
build {{build.number}} succeeded. Good job.
|
||||
build {{build.number}} succeeded. Good job.
|
||||
{{else}}
|
||||
build {{build.number}} failed. Fix me please.
|
||||
build {{build.number}} failed. Fix me please.
|
||||
{{/success}}
|
||||
depends_on:
|
||||
- Build
|
||||
depends_on:
|
||||
- Build
|
||||
|
||||
- name: Release
|
||||
image: plugins/gitea-release
|
||||
|
|
Loading…
Add table
Reference in a new issue