-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from henrykironde/change_regrestion_tests
improve tests platform
- Loading branch information
Showing
17 changed files
with
625 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
environment: | ||
|
||
matrix: | ||
|
||
- PYTHON: "C:\\Python27-x64" | ||
PYTHON_VERSION: "2.7.x" | ||
PYTHON_ARCH: "64" | ||
|
||
# postgres | ||
POSTGRES_PORT: tcp://localhost:5432 | ||
POSTGRES_ENV_POSTGRES_USER: postgres | ||
POSTGRES_ENV_POSTGRES_PASSWORD: Password12! | ||
POSTGRES_ENV_POSTGRES_DB: testdb | ||
POSTGRES_PATH: C:\Program Files\PostgreSQL\9.4 | ||
PGUSER: postgres | ||
PGPASSWORD: Password12! | ||
|
||
# mysql | ||
MYSQL_PORT: tcp://localhost:3306 | ||
MYSQL_ENV_MYSQL_USER: root | ||
MYSQL_ENV_MYSQL_PASSWORD: Password12! | ||
MYSQL_ENV_MYSQL_DATABASE: sqlectron | ||
MYSQL_PATH: C:\Program Files\MySql\MySQL Server 5.7 | ||
MYSQL_PWD: Password12! | ||
|
||
services: | ||
- mysql | ||
- postgresql94 | ||
|
||
init: | ||
- SET PATH=%POSTGRES_PATH%\bin;%MYSQL_PATH%\bin;%PATH% | ||
|
||
install: | ||
- "%PYTHON%\\python.exe -m pip install --upgrade pip" | ||
- "%PYTHON%\\python.exe -m pip install wheel" | ||
- "%PYTHON%\\python.exe -m pip install -r requirements.txt" | ||
- "%PYTHON%\\python.exe -m pip install codecov" | ||
- "%PYTHON%\\python.exe -m pip install nose-cov" | ||
- "%PYTHON%\\python.exe -m pip install -U pytest" | ||
|
||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | ||
- "%PYTHON%\\python.exe -m pip --version" | ||
- "python --version" | ||
- "python -c \"import struct; print(struct.calcsize('P') * 8)\"" | ||
- echo localhost:*:testdb:postgres:Password12! > C:\Program Files\PostgreSQL\9.4\pgpass.conf | ||
- echo "localhost:*:testdb:postgres:Password12!" > pgpass.conf | ||
- echo "localhost:*:testdb:postgres:Password12!" > %userprofile%\pgpass.conf | ||
- SET PGPASSFILE=C:\Program Files\PostgreSQL\9.4\pgpass.conf | ||
- set PGPASSWORD=Password12! | ||
|
||
build_script: | ||
# postgres | ||
- createdb testdb | ||
# mysql | ||
- mysql -e "create database sqlectron;" --user=root | ||
- mysql -e "CREATE USER 'travis'@'localhost';GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost';GRANT FILE ON *.* TO 'travis'@'localhost';" -uroot | ||
- dir | ||
- cd C:\projects\retriever | ||
- "python setup.py install" | ||
- echo "Installed retriever:" | ||
- retriever --version | ||
- cd C:\projects\retriever | ||
|
||
test_script: | ||
- py.test -k "not test_postgres_regression" -v | ||
# - py.test -v currently, we run pytest excluding postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"postgres", | ||
"sqlite", | ||
"msaccess", | ||
"csv", | ||
"csvengine", | ||
"download_only", | ||
"jsonengine", | ||
"xmlengine" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.