mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 21:30:41 +00:00
Add CI Files for jenkins
This commit is contained in:
parent
af324e31f8
commit
a058692822
2 changed files with 34 additions and 0 deletions
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'gmake'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'gmake test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Release') {
|
||||||
|
when { tag "v*" }
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: 'artifacts/**', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
12
Makefile
Normal file
12
Makefile
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
.PHONY: all release test
|
||||||
|
|
||||||
|
|
||||||
|
all: release
|
||||||
|
|
||||||
|
test:
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
release:
|
||||||
|
cargo build --release
|
||||||
|
mkdir artifacts
|
||||||
|
cp target/release/pkg6dev artifacts/
|
||||||
Loading…
Add table
Reference in a new issue