chore(ci): fix e2e test directories and build path
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3f7484f0fc
commit
c8ed4a37c4
|
@ -90,15 +90,15 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deps') {
|
stage('Deps') {
|
||||||
steps { script {
|
steps { script { dir('test/e2e') {
|
||||||
sh "python3 -m venv ${VIRTUAL_ENV}"
|
sh "python3 -m venv ${VIRTUAL_ENV}"
|
||||||
sh 'pip3 install -r requirements.txt'
|
sh 'pip3 install -r requirements.txt'
|
||||||
} }
|
} } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Download') {
|
stage('Download') {
|
||||||
when { expression { params.BUILD_SOURCE.startsWith('http') } }
|
when { expression { params.BUILD_SOURCE.startsWith('http') } }
|
||||||
steps { timeout(5) { script {
|
steps { timeout(5) { script { dir('test/e2e') {
|
||||||
sh 'mkdir -p ./pkg/'
|
sh 'mkdir -p ./pkg/'
|
||||||
setBuildDescFromFile(params.BUILD_SOURCE)
|
setBuildDescFromFile(params.BUILD_SOURCE)
|
||||||
fileOperations([
|
fileOperations([
|
||||||
|
@ -110,12 +110,12 @@ pipeline {
|
||||||
password: '',
|
password: '',
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
} } }
|
} } } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Copy') {
|
stage('Copy') {
|
||||||
when { expression { ! params.BUILD_SOURCE.startsWith('http') } }
|
when { expression { ! params.BUILD_SOURCE.startsWith('http') } }
|
||||||
steps { timeout(5) { script {
|
steps { timeout(5) { script { dir('test/e2e') {
|
||||||
copyArtifacts(
|
copyArtifacts(
|
||||||
projectName: params.BUILD_SOURCE,
|
projectName: params.BUILD_SOURCE,
|
||||||
filter: 'pkg/*-x86_64.tar.gz',
|
filter: 'pkg/*-x86_64.tar.gz',
|
||||||
|
@ -123,19 +123,19 @@ pipeline {
|
||||||
target: './'
|
target: './'
|
||||||
)
|
)
|
||||||
setBuildDescFromFile(utils.findFile('pkg/*tar.gz'))
|
setBuildDescFromFile(utils.findFile('pkg/*tar.gz'))
|
||||||
} } }
|
} } } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Unpack') {
|
stage('Unpack') {
|
||||||
steps { timeout(5) { script {
|
steps { timeout(5) { script { dir('test/e2e') {
|
||||||
sh 'mkdir aut'
|
sh 'mkdir aut'
|
||||||
sh "tar -zxvf '${utils.findFile('pkg/*tar.gz')}' -C './aut'"
|
sh "tar -zxvf '${utils.findFile('pkg/*tar.gz')}' -C './aut'"
|
||||||
env.AUT_PATH = utils.findFile('aut/*.AppImage')
|
env.AUT_PATH = utils.findFile('aut/*.AppImage')
|
||||||
} } }
|
} } } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps { timeout(90) { script {
|
steps { timeout(90) { script { dir('test/e2e') {
|
||||||
def flags = []
|
def flags = []
|
||||||
if (params.TEST_NAME) { flags.add("-k=${params.TEST_NAME}") }
|
if (params.TEST_NAME) { flags.add("-k=${params.TEST_NAME}") }
|
||||||
if (params.TEST_SCOPE_FLAG) { flags.add(params.TEST_SCOPE_FLAG) }
|
if (params.TEST_SCOPE_FLAG) { flags.add(params.TEST_SCOPE_FLAG) }
|
||||||
|
@ -164,12 +164,12 @@ pipeline {
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} } }
|
} } } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always { script {
|
always { script { dir('test/e2e') {
|
||||||
archiveArtifacts('aut/*.log')
|
archiveArtifacts('aut/*.log')
|
||||||
|
|
||||||
/* Needed to categorize types of errors and add environment section in allure report. */
|
/* Needed to categorize types of errors and add environment section in allure report. */
|
||||||
|
@ -183,7 +183,7 @@ pipeline {
|
||||||
jdk: '',
|
jdk: '',
|
||||||
])
|
])
|
||||||
updateGitHubStatus()
|
updateGitHubStatus()
|
||||||
} }
|
} } }
|
||||||
failure { script {
|
failure { script {
|
||||||
discord.send(
|
discord.send(
|
||||||
header: '**Desktop E2E test failure!**',
|
header: '**Desktop E2E test failure!**',
|
||||||
|
@ -243,7 +243,7 @@ def getDefaultBuildSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
def getDefaultTestScopeFlag() {
|
def getDefaultTestScopeFlag() {
|
||||||
if (JOB_NAME == "status-desktop/systems/linux/x86_64/tests-e2e-new") {
|
if (JOB_NAME == "status-desktop/systems/linux/x86_64/tests-e2e") {
|
||||||
return ''
|
return ''
|
||||||
} else {
|
} else {
|
||||||
return '-m=critical'
|
return '-m=critical'
|
Loading…
Reference in New Issue