diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml
index 3069e48..09b4bc2 100644
--- a/.woodpecker/build.yml
+++ b/.woodpecker/build.yml
@@ -7,7 +7,17 @@ clone:
recursive: false
pipeline:
+ Linters:
+ group: build
+ image: lxsameer/serene_ci:13
+ commands:
+ - export SERENE_CI=true
+ - ./builder setup
+ - export FILES="$(git diff --name-only HEAD HEAD~1)"
+ - pre-commit run --files "$FILES"
+
Build:
+ group: build
image: lxsameer/serene_ci:13
commands:
# Uncomment this when running with a new toolchain for the
@@ -17,3 +27,37 @@ pipeline:
volumes:
- serene_config:/root/.serene/
+
+ ChatNotify:
+ image: lxsameer/notify:3
+ settings:
+ matrix_room_id:
+ from_secret: matrix_room
+ matrix_access_token:
+ from_secret: matrix_token
+
+ matrix_user:
+ from_secret: matrix_user
+
+ matrix_msg: "[${CI_REPO}] Job #${CI_BUILD_NUMBER} failed for branch ${CI_COMMIT_BRANCH}. ${CI_BUILD_LINK}"
+ secrets: [ matrix_room, matrix_token, matrix_user ]
+ when:
+ - status: [failure]
+
+ MailNotify:
+ image: lxsameer/woodpecker_mailer:4
+ settings:
+ from: ci@serene-lang.org
+ user:
+ from_secret: mailer_user
+ password:
+ from_secret: mailer_password
+ to: ${CI_COMMIT_AUTHOR_EMAIL}
+ subject: "[${CI_REPO}] JOB #${CI_BUILD_NUMBER} failed for branch '${CI_COMMIT_BRANCH}'."
+ text: |
+ BUILD: ${CI_BUILD_LINK}
+ COMMIT: ${CI_COMMIT_LINK}
+ when:
+ - status: [failure]
+
+ secrets: [ mail_pass, mail_user ]
diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml
deleted file mode 100644
index 76c3959..0000000
--- a/.woodpecker/lint.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-clone:
- git:
- image: woodpeckerci/plugin-git
- settings:
- depth: 1
- lfs: false
- recursive: false
-
-pipeline:
- Linters:
- image: lxsameer/serene_ci:13
- commands:
- - export SERENE_CI=true
- - ./builder setup
- - export FILES="$(git diff --name-only HEAD HEAD~1)"
- - pre-commit run --files "$FILES"
diff --git a/.woodpecker/notify.yml b/.woodpecker/notify.yml
deleted file mode 100644
index 8a33193..0000000
--- a/.woodpecker/notify.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-pipeline:
- Notify:
- image: lxsameer/notify:3
- settings:
- matrix_room_id:
- from_secret: matrix_room
- matrix_access_token:
- from_secret: matrix_token
-
- matrix_user:
- from_secret: matrix_user
-
- matrix_msg: "[${CI_REPO}][FAILED] Branch: ${CI_BRANCH} - Job #${CI_BUILD_NUMBER}"
- when:
- status: [ failure ]
-
- Mailer:
- image: lxsameer/woodpecker_mailer:4
- settings:
- from: ci@serene-lang.org
- user:
- from_secret: mail_user
- password:
- from_secret: mail_pass
- to: ${CI_COMMIT_AUTHOR_EMAIL}
- subject: "[${CI_REPO}] JOB #${CI_BUILD_NUMBER} - ${CI_PREV_STEP_STATUS}"
- text: |
- BUILD: ${CI_BUILD_LINK}
- COMMIT: ${CI_COMMIT_LINK}
- when:
- status: [ failure ]
-
-depends_on:
- - lint
- - build
-
-runs_on: [ failure ]
-skip_clone: true