Add CI Files for jenkins

This commit is contained in:
Till Wegmueller 2021-04-25 21:05:28 -03:00
parent af324e31f8
commit a058692822
2 changed files with 34 additions and 0 deletions

22
Jenkinsfile vendored Normal file
View 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
View 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/