Skip to content

Commit

Permalink
TST: Add CI for RMS testing
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Nov 9, 2021
1 parent 2e1cd44 commit 5c29c5c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions ci/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
pipeline {
agent { label 'scout-ci7' }
environment {
WORKING_DIR = sh(script: 'pwd', , returnStdout: true).trim()
}
stages {
stage('test') {
steps {
sh '''
source /opt/rh/devtoolset-9/enable
git clone --depth=1 https://github.com/equinor/xtgeo-testdata
set +e
source $ROXENVBASH $RMS_VERSION
set -e
unset PYTHONPATH
python -m virtualenv xtgeo_env --system-site-packages
source xtgeo_env/bin/activate
pip install -r requirements/requirements.txt
pip install -r requirements/requirements_dev.txt
pip install -r requirements/requirements_test.txt
pip install . --ignore-installed
export XTG_TESTPATH=./xtgeo-testdata/
python -m pytest -m requires_roxar
'''
}
}
}

post {
cleanup {
deleteDir()
}
}
}

0 comments on commit 5c29c5c

Please sign in to comment.