mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
* Deprecate support for Python < 3.6 This is a first step, beyond this we can: * remove all from future imports * remove 'six' lib as a dependency * start using f-strings * enjoy ourselves * fix tox * Rebasing * fix
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
cache:
|
|
pip: true
|
|
jobs:
|
|
include:
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=cypress
|
|
cache:
|
|
pip: true
|
|
yarn: true
|
|
directories:
|
|
- ~/.npm
|
|
- ~/.cache
|
|
services:
|
|
- redis-server
|
|
before_install:
|
|
- nvm install 8.9
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=py36-mysql
|
|
services:
|
|
- mysql
|
|
- redis-server
|
|
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';"
|
|
- language: node_js
|
|
node_js: 8.9
|
|
cache:
|
|
yarn: true
|
|
before_install:
|
|
- cd superset/assets
|
|
install:
|
|
- yarn install --frozen-lockfile
|
|
script:
|
|
- npm run lint
|
|
- npm run cover
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=flake8
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=py36-sqlite
|
|
services:
|
|
- redis-server
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=py36-postgres
|
|
services:
|
|
- postgres
|
|
- redis-server
|
|
before_script:
|
|
- psql -U postgres -c "CREATE DATABASE superset;"
|
|
- psql -U postgres -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';"
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=pylint
|
|
install:
|
|
- pip install --upgrade pip
|
|
- pip install codecov tox
|
|
script:
|
|
- tox
|
|
after_success:
|
|
- codecov
|