Update test locations in Travis and Appveyor
This commit is contained in:
parent
5a59e6c9b0
commit
ffb1474865
@ -18,10 +18,10 @@ before_install:
|
|||||||
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/2.0.0/codacy-coverage-reporter-2.0.0-assembly.jar
|
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/2.0.0/codacy-coverage-reporter-2.0.0-assembly.jar
|
||||||
# create test database for mysql, mariadb and postgresql
|
# create test database for mysql, mariadb and postgresql
|
||||||
- mysql -u root -e 'CREATE DATABASE test_db;'
|
- mysql -u root -e 'CREATE DATABASE test_db;'
|
||||||
- mysql -u root test_db < extensions/database/test/conf/travis-mysql.sql
|
- mysql -u root test_db < extensions/database/tests/conf/travis-mysql.sql
|
||||||
- psql -c 'CREATE DATABASE test_db;' -U postgres
|
- psql -c 'CREATE DATABASE test_db;' -U postgres
|
||||||
- psql -U postgres test_db < extensions/database/test/conf/travis-pgsql.sql
|
- psql -U postgres test_db < extensions/database/tests/conf/travis-pgsql.sql
|
||||||
- cp extensions/database/test/conf/travis_tests.xml extensions/database/test/conf/tests.xml
|
- cp extensions/database/tests/conf/travis_tests.xml extensions/database/tests/conf/tests.xml
|
||||||
- mvn process-resources
|
- mvn process-resources
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -26,7 +26,7 @@ before_test:
|
|||||||
PATH=C:\Program Files\PostgreSQL\9.6\bin\;C:\Program Files\MySQL\MySQL Server 5.7\bin\;%PATH%
|
PATH=C:\Program Files\PostgreSQL\9.6\bin\;C:\Program Files\MySQL\MySQL Server 5.7\bin\;%PATH%
|
||||||
SET MYSQL_PWD=Password12!
|
SET MYSQL_PWD=Password12!
|
||||||
mysql -u root --password=Password12! -e "create database test_db;"
|
mysql -u root --password=Password12! -e "create database test_db;"
|
||||||
mysql -u root test_db --password=Password12! < extensions\database\test\conf\travis-mysql.sql
|
mysql -u root test_db --password=Password12! < extensions\database\tests\conf\travis-mysql.sql
|
||||||
echo "localhost:*:test_db:postgres:Password12!" > C:\Program Files\PostgreSQL\9.6\pgpass.conf
|
echo "localhost:*:test_db:postgres:Password12!" > C:\Program Files\PostgreSQL\9.6\pgpass.conf
|
||||||
echo "localhost:*:test_db:postgres:Password12!" > pgpass.conf
|
echo "localhost:*:test_db:postgres:Password12!" > pgpass.conf
|
||||||
echo "localhost:*:test_db:postgres:Password12!" > %userprofile%\pgpass.conf
|
echo "localhost:*:test_db:postgres:Password12!" > %userprofile%\pgpass.conf
|
||||||
@ -34,9 +34,9 @@ before_test:
|
|||||||
SET PGPASSWORD=Password12!
|
SET PGPASSWORD=Password12!
|
||||||
SET PGUSER=postgres
|
SET PGUSER=postgres
|
||||||
createdb test_db
|
createdb test_db
|
||||||
psql -U postgres test_db < extensions\database\test\conf\travis-pgsql.sql
|
psql -U postgres test_db < extensions\database\tests\conf\travis-pgsql.sql
|
||||||
|
|
||||||
copy extensions\database\test\conf\appveyor_tests.xml extensions\database\test\conf\tests.xml
|
copy extensions\database\tests\conf\appveyor_tests.xml extensions\database\tests\conf\tests.xml
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cmd: echo Running test_script...
|
- cmd: echo Running test_script...
|
||||||
|
Loading…
Reference in New Issue
Block a user