They gave a test task to write a simple service for data output from the database. Made using Spring boot. You also need to upload the project to git and display the build status (Travis CI), but how to tie the base there (so that the tests run)? And how to give this test company? give them the database creation scripts and tables? Or are there any advanced solutions?
- oneAdvanced solutions are Flyway and Liqubase. They automatically roll the SQL from the folder or JAR to the database when the application starts. - Nofate ♦
|
1 answer
- See the documentation for a list of supported Travis CI databases and how to connect them.
- You need to give in this form so that the verifier can a) easily pick up your application and b) read the code. Those. You give away all the sources, plus you write a brief instruction on how to pick everything up, or you create a batch file. As for the database - yes, the canonical version is a set of scripts for raising / filling the base. Their implementation can again be hidden in a batch file.
|