Add scripts

This commit is contained in:
R Tyler Croy 2024-04-21 15:47:25 +00:00
parent b434c7e50c
commit f8f7faea9f
4 changed files with 16 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -15,12 +15,12 @@ pipeline {
}
stage('Build') {
steps {
sh 'cargo build'
sh './ci/build.sh'
}
}
stage('Test') {
steps {
sh 'cargo test'
sh './ci/test.sh'
}
}
}

3
ci/build.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cargo lambda build

8
ci/setup.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
which cargo-lambda
if [ $? -ne 0 ]; then
cargo install cargo-lambda
fi;

3
ci/test.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cargo test --verbose