Here are few things to look at when setting up Travis in your project
-
Correct file name
.travis.yml
-
Inside .travis.yml file
language: node_js env: - DATABASE_URL=postgresql://postgres@localhost:5432/<your_database_here> node_js: - 12 before_script: - psql -c 'create database <your_database_here>;' -U postgres - psql -U postgres -d <your_database_here> -a -f <table_name.sql> services: - postgresql
- pay attention to spaces inbetween
- path to correct sql file.