mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
c17de3940c
* aplit cypress tests * split into three
92 lines
2.2 KiB
YAML
92 lines
2.2 KiB
YAML
cache:
|
|
pip: true
|
|
jobs:
|
|
include:
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=cypress-dashboard
|
|
cache:
|
|
pip: true
|
|
yarn: true
|
|
directories:
|
|
- ~/.npm
|
|
- ~/.cache
|
|
services:
|
|
- redis-server
|
|
before_install:
|
|
- nvm install 8.9
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=cypress-explore
|
|
cache:
|
|
pip: true
|
|
yarn: true
|
|
directories:
|
|
- ~/.npm
|
|
- ~/.cache
|
|
services:
|
|
- redis-server
|
|
before_install:
|
|
- nvm install 8.9
|
|
- language: python
|
|
python: 3.6
|
|
env: TOXENV=cypress-sqllab
|
|
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
|