Compare commits
No commits in common. "0f0838ae5aaee80f77f7fb5b5c4c3c9d7c040551" and "c93ac1028823ac4bd5e36949a10f53ab018d9c33" have entirely different histories.
0f0838ae5a
...
c93ac10288
|
|
@ -1,32 +0,0 @@
|
||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
|
|
||||||
environment {
|
|
||||||
APP_SESSION_SECRET = ''
|
|
||||||
DB_NAME = 'url_shortener.db'
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage('Init') {
|
|
||||||
steps {
|
|
||||||
sh 'rbenv local 3.2.2'
|
|
||||||
script {
|
|
||||||
env.APP_SESSION_SECRET = sh(script: 'ruby secret.rb', returnStdout: true)
|
|
||||||
}
|
|
||||||
sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb'
|
|
||||||
sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb'
|
|
||||||
sh 'cat .env.rb'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build dependencies') {
|
|
||||||
steps {
|
|
||||||
sh 'bundle install'
|
|
||||||
sh 'sequel -m db/migrations sqlite://db/${DB_NAME}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Run tests') {
|
|
||||||
steps {
|
|
||||||
sh 'cucumber'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -5,8 +5,7 @@ Roda, Falcon, Sequel, and SQLite
|
||||||
|
|
||||||
the point of this project is to quickly build something and work on continuous deployment while making small refinements to the functional pieces.
|
the point of this project is to quickly build something and work on continuous deployment while making small refinements to the functional pieces.
|
||||||
|
|
||||||
the outside pieces of software that this project relies on are sqlite3 and pkgconf.
|
the only outside piece of software that this project relies on is sqlite3.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
first you have to install the dependencies:
|
first you have to install the dependencies:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue