add more tests to Jenkinsfile
This commit is contained in:
		
							parent
							
								
									40e471f1a2
								
							
						
					
					
						commit
						ef89528750
					
				
							
								
								
									
										18
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@ -10,13 +10,27 @@ pipeline {
 | 
			
		||||
 | 
			
		||||
        stage('Build') {
 | 
			
		||||
            steps {
 | 
			
		||||
                sh 'make -j$(nproc) test'
 | 
			
		||||
                sh 'make -j$(nproc) build test'
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        stage('Test') {
 | 
			
		||||
            steps {
 | 
			
		||||
                sh './tester'
 | 
			
		||||
                sh './tester test/testcases_sort_official'
 | 
			
		||||
                sh './tester test/testcases_sort_custom'
 | 
			
		||||
 | 
			
		||||
                script {
 | 
			
		||||
                    try {
 | 
			
		||||
                        sh './tester test/testcases_sort_wrong'
 | 
			
		||||
                        error("Wrong test indicates success!")
 | 
			
		||||
                    } catch (Exception e) {}
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        stage('Clean Up') {
 | 
			
		||||
            steps {
 | 
			
		||||
                sh 'make clean'
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user