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:
|
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
|
- name: Build
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
|
@ -17,31 +7,19 @@ steps:
|
||||||
- echo "Building project..."
|
- echo "Building project..."
|
||||||
- g++ -o build/main main.cpp
|
- g++ -o build/main main.cpp
|
||||||
|
|
||||||
- name: Test
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- echo "Running tests..."
|
|
||||||
- ./build/main
|
|
||||||
depends_on:
|
|
||||||
- Build
|
|
||||||
|
|
||||||
- name: discord notification
|
- name: discord notification
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
settings:
|
settings:
|
||||||
webhook_id: 1357683988373704824
|
webhook_id: 1357683988373704824
|
||||||
webhook_token: wtAZM1Ps4upFV0Z5_HJKzWkJ19-lj0tagEwPofOJN4O3OHuET309RTkKQgakDWVrl0Ml
|
webhook_token: wtAZM1Ps4upFV0Z5_HJKzWkJ19-lj0tagEwPofOJN4O3OHuET309RTkKQgakDWVrl0Ml
|
||||||
message: >
|
message: >
|
||||||
Repository {{repo.name}}
|
|
||||||
Owner {{repo.owner}}
|
|
||||||
Build Message {{build.message}}
|
|
||||||
Commiter: {{build.author}}
|
|
||||||
{{#success build.status}}
|
{{#success build.status}}
|
||||||
build {{build.number}} succeeded. Good job.
|
build {{build.number}} succeeded. Good job.
|
||||||
{{else}}
|
{{else}}
|
||||||
build {{build.number}} failed. Fix me please.
|
build {{build.number}} failed. Fix me please.
|
||||||
{{/success}}
|
{{/success}}
|
||||||
depends_on:
|
depends_on:
|
||||||
- Build
|
- Build
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
|
Loading…
Add table
Reference in a new issue