mirror of https://github.com/apache/superset.git
31 lines
949 B
YAML
31 lines
949 B
YAML
language: python
|
|
services:
|
|
- redis-server
|
|
cache:
|
|
directories:
|
|
- $HOME/.wheelhouse/
|
|
env:
|
|
global:
|
|
- TRAVIS_CACHE=$HOME/.travis_cache/
|
|
matrix:
|
|
- TOX_ENV=flake8
|
|
- TOX_ENV=javascript
|
|
- TOX_ENV=pylint
|
|
- TOX_ENV=py34-postgres
|
|
- TOX_ENV=py34-sqlite
|
|
- TOX_ENV=py27-mysql
|
|
- TOX_ENV=py27-sqlite
|
|
before_script:
|
|
- mysql -u root -e "DROP DATABASE IF EXISTS superset; CREATE DATABASE superset DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci"
|
|
- mysql -u root -e "CREATE USER 'mysqluser'@'localhost' IDENTIFIED BY 'mysqluserpassword';"
|
|
- mysql -u root -e "GRANT ALL ON superset.* TO 'mysqluser'@'localhost';"
|
|
- psql -U postgres -c "CREATE DATABASE superset;"
|
|
- psql -U postgres -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';"
|
|
- export PATH=${PATH}:/tmp/hive/bin
|
|
install:
|
|
- pip install --upgrade pip
|
|
- pip install codecov tox tox-travis
|
|
script: tox -e $TOX_ENV
|
|
after_success:
|
|
- codecov
|