Skip to content
Snippets Groups Projects
Jenkinsfile 681 B
node {

    try {
        stage('Checkout') {
            checkout scm
        }
        stage('Test'){
            sh """
            virtualenv --python=python2.7 env
            . env/bin/activate
            pip install -r requirements.txt
            pip install selenium
            cp VIPSWeb/local_settings_sample.py VIPSWeb/local_settings.py
            ./manage.py collectstatic
            ./manage.py runserver &
            ./manage.py test

            """
        }
        stage ('Build') {
        
        }
            
    }

    catch (err) {
        
        throw err
    }
    
    finally {
        sh """
            rm -rf static
        """
        }
}