travis: Split test jobs into two files.
This commit is contained in:
		
							parent
							
								
									e1758945de
								
							
						
					
					
						commit
						f5d01826f2
					
				
					 3 changed files with 12 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -4,14 +4,15 @@ python:
 | 
			
		|||
  - "3.4"
 | 
			
		||||
  - "3.5"
 | 
			
		||||
  - "3.6"
 | 
			
		||||
env: TEST_SUITE=test-main
 | 
			
		||||
matrix:
 | 
			
		||||
  include:
 | 
			
		||||
  - python: "3.6"
 | 
			
		||||
    env: TEST_SUITE=linter
 | 
			
		||||
    env: TEST_SUITE=lint
 | 
			
		||||
install:
 | 
			
		||||
  - pip install pycodestyle==2.3.1
 | 
			
		||||
  - pip install ./zulip
 | 
			
		||||
  - pip install ./zulip_bots
 | 
			
		||||
  - pip install ./zulip_botserver
 | 
			
		||||
script:
 | 
			
		||||
  - tools/travis_tests
 | 
			
		||||
  - tools/$TEST_SUITE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								tools/test-main
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								tools/test-main
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
set -ev
 | 
			
		||||
 | 
			
		||||
CURRENT_DIR=$(dirname $(dirname "$0"))
 | 
			
		||||
cd "$CURRENT_DIR"
 | 
			
		||||
 | 
			
		||||
python -m unittest discover -v zulip_botserver
 | 
			
		||||
tools/test-bots
 | 
			
		||||
| 
						 | 
				
			
			@ -1,15 +0,0 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
set -ev
 | 
			
		||||
 | 
			
		||||
CURRENT_DIR=$(dirname "$0")
 | 
			
		||||
cd "$CURRENT_DIR"
 | 
			
		||||
cd ..
 | 
			
		||||
 | 
			
		||||
if [ "$TEST_SUITE" == "linter" ]
 | 
			
		||||
then
 | 
			
		||||
    tools/lint
 | 
			
		||||
else
 | 
			
		||||
    python -m unittest discover -v zulip_botserver
 | 
			
		||||
    tools/test-bots
 | 
			
		||||
fi
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue