Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/move-script' into move-script
Browse files Browse the repository at this point in the history
  • Loading branch information
silvae86 committed Apr 7, 2017
2 parents 8085886 + 4f0b28a commit 6df7512
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pipeline {
stage('Test') {
steps {
sh "chmod +x $WORKSPACE/conf/scripts/test.sh"
sh "$WORKSPACE/conf/scripts/test.sh"
sh "$WORKSPACE/conf/scripts/test.sh JENKINSTESTSdendroVagrantDemo root r00t_p4ssw0rd"
}
}
stage('Deploy') {
Expand Down
6 changes: 6 additions & 0 deletions conf/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

mysql_database_to_create=$1
mysql_username=$2
mysql_root_password=$3

#install NVM, Node 6.10, Node Automatic Version switcher
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash &&
export NVM_DIR="$HOME/.nvm" &&
Expand All @@ -9,6 +13,8 @@ export COVERALLS_SERVICE_NAME="Jenkins"
export COVERALLS_REPO_TOKEN="kVeT2pSFVWDEoZCC5xN6wCS1j8YRaiG5e"
export RUNNING_IN_JENKINS="1"

echo "create database ${mysql_database_to_create};" | mysql -u $mysql_username -p$mysql_root_password

npm run test &&
npm run coverage > /dev/null &&
npm run report-coverage

0 comments on commit 6df7512

Please sign in to comment.