Add a simple Jenkinsfile
This commit is contained in:
parent
a5c501665e
commit
5f08f7a13c
|
@ -0,0 +1,35 @@
|
||||||
|
/*
|
||||||
|
* This Jenkinsfile is for internal use
|
||||||
|
*/
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
label 'rust'
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Prepare') {
|
||||||
|
steps {
|
||||||
|
sh './ci/setup.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh './ci/build.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh './ci/test.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// vim: ft=groovy sw=2 ts=2 et
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cargo lambda build
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
which cargo-lambda
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
cargo install cargo-lambda
|
||||||
|
fi;
|
||||||
|
|
||||||
|
which virtualenv
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo ">> Virtualenv is required in order to setup cargo-lambda here!"
|
||||||
|
exit 1;
|
||||||
|
fi;
|
||||||
|
|
||||||
|
virtualenv venv
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cargo test --verbose
|
Loading…
Reference in New Issue