forked from beba/foerderbarometer
				
			added gitlab ci
This commit is contained in:
		
							parent
							
								
									858e8519bd
								
							
						
					
					
						commit
						61dcce3505
					
				| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
stages:
 | 
			
		||||
  - test
 | 
			
		||||
 | 
			
		||||
test:
 | 
			
		||||
  stage: test
 | 
			
		||||
  image: python:3.11-bookworm
 | 
			
		||||
  variables:
 | 
			
		||||
    DJANGO_SETTINGS_MODULE: foerderbarometer.settings
 | 
			
		||||
    ENVIRONMENT: test
 | 
			
		||||
    SECRET_KEY: this-is-not-a-secret-key
 | 
			
		||||
    DATABASE_ENGINE: sqlite3
 | 
			
		||||
    OAUTH_ENABLED: no
 | 
			
		||||
  tags:
 | 
			
		||||
    - docker
 | 
			
		||||
  coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
 | 
			
		||||
  before_script:
 | 
			
		||||
    - pip install -r requirements.txt coverage
 | 
			
		||||
  script:
 | 
			
		||||
    - coverage run manage.py test --noinput
 | 
			
		||||
  after_script:
 | 
			
		||||
    - coverage report
 | 
			
		||||
		Loading…
	
		Reference in New Issue