added travis env file
This commit is contained in:
		
							
								
								
									
										28
									
								
								.env.travis
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.env.travis
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					APP_NAME=Akaunting
 | 
				
			||||||
 | 
					APP_ENV=testing
 | 
				
			||||||
 | 
					APP_LOCALE=en-GB
 | 
				
			||||||
 | 
					APP_INSTALLED=true
 | 
				
			||||||
 | 
					APP_KEY=base64:xBC+BxlC7sXhYAtpTZv8TYAHqoPgsJaXL0S5Id6BbBc=
 | 
				
			||||||
 | 
					APP_DEBUG=true
 | 
				
			||||||
 | 
					APP_LOG_LEVEL=debug
 | 
				
			||||||
 | 
					APP_URL=http://akaunting.test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DB_CONNECTION=mysql
 | 
				
			||||||
 | 
					DB_HOST=localhost
 | 
				
			||||||
 | 
					DB_PORT=3306
 | 
				
			||||||
 | 
					DB_DATABASE=akaunting
 | 
				
			||||||
 | 
					DB_USERNAME=root
 | 
				
			||||||
 | 
					DB_PASSWORD=
 | 
				
			||||||
 | 
					DB_PREFIX=ak_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					BROADCAST_DRIVER=log
 | 
				
			||||||
 | 
					CACHE_DRIVER=file
 | 
				
			||||||
 | 
					SESSION_DRIVER=file
 | 
				
			||||||
 | 
					QUEUE_DRIVER=database
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MAIL_DRIVER=mail
 | 
				
			||||||
 | 
					MAIL_HOST=localhost
 | 
				
			||||||
 | 
					MAIL_PORT=2525
 | 
				
			||||||
 | 
					MAIL_USERNAME=null
 | 
				
			||||||
 | 
					MAIL_PASSWORD=null
 | 
				
			||||||
 | 
					MAIL_ENCRYPTION=null
 | 
				
			||||||
@@ -7,8 +7,12 @@ php:
 | 
				
			|||||||
  - '7.2'
 | 
					  - '7.2'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
before_script:
 | 
					before_script:
 | 
				
			||||||
  - composer self-update
 | 
					  - cp .env.travis .env
 | 
				
			||||||
 | 
					  - mysql -e 'CREATE DATABASE akaunting;'
 | 
				
			||||||
  - composer install --no-interaction
 | 
					  - composer install --no-interaction
 | 
				
			||||||
 | 
					  - php artisan migrate --force
 | 
				
			||||||
 | 
					  - php artisan db:seed --class=Database\Seeds\TestCompany
 | 
				
			||||||
 | 
					  - php artisan company:seed company 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
script:
 | 
					script:
 | 
				
			||||||
  - vendor/bin/phpunit
 | 
					  - vendor/bin/phpunit
 | 
				
			||||||
@@ -16,6 +16,6 @@ abstract class TestCase extends BaseTestCase
 | 
				
			|||||||
        parent::setUp();
 | 
					        parent::setUp();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Artisan::call('db:seed', ['--class' => '\Database\Seeds\TestCompany', '--force' => true]);
 | 
					        Artisan::call('db:seed', ['--class' => '\Database\Seeds\TestCompany', '--force' => true]);
 | 
				
			||||||
        Artisan::call('company:seed',['company' => 1]);
 | 
					        Artisan::call('company:seed', ['company' => 1]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user