Commit afa9ee78 authored by Carlos Tadeu Panato Junior's avatar Carlos Tadeu Panato Junior Committed by Joram Wilander

remove stage with live server tests (#547)

parent 023c043a
......@@ -31,48 +31,5 @@ pipeline {
sh "npm run test || exit 1"
}
}
stage('Setup') {
when {
branch 'master'
}
environment {
MM_SQLSETTINGS_DATASOURCE="root:passwd@tcp(localhost:3306)/${BUILD_TAG}?charset=utf8mb4,utf8"
MM_TEAMSETTINGS_ENABLEOPENSERVER=true
MM_SERVICESETTINGS_ENABLECUSTOMEMOJI=true
MM_SERVICESETTINGS_ENABLELINKPREVIEWS=true
MM_SERVICESETTINGS_ENABLEOAUTHSERVICEPROVIDER=true
MM_SERVICESETTINGS_ENABLEONLYADMININTEGRATIONS=true
}
steps {
sh 'echo $MM_SQLSETTINGS_DATASOURCE'
sh "docker exec mattermost-mysql-57 mysql --user=root --password=passwd -e 'create database `'$BUILD_TAG'`;'"
echo 'Created database for mysql'
sh """
# Download and configure Mattermost
wget https://releases.mattermost.com/mattermost-platform/master/mattermost-enterprise-linux-amd64.tar.gz
tar -zxf mattermost-enterprise-linux-amd64.tar.gz
cd mattermost
echo mattermost version
bin/mattermost version
# Run Mattermost
bin/mattermost &
"""
echo 'Started Mattermost server'
}
}
stage('Run tests with mock server') {
when {
branch 'master'
}
steps {
sh "npm run test-no-mock || exit 1"
sh "docker exec mattermost-mysql-57 mysql --user=root --password=passwd -e 'drop database `'${BUILD_TAG}'`;'"
}
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment