2016-08-31 12:27:07 -04:00
|
|
|
|
2015-09-28 14:51:20 -04:00
|
|
|
language: python
|
2016-06-09 21:05:58 -04:00
|
|
|
addons:
|
2016-08-31 12:27:07 -04:00
|
|
|
code_climate:
|
|
|
|
repo_token: 5f3a06c425eef7be4b43627d7d07a3e46c45bdc07155217825ff7c49cb6a470c
|
2016-06-09 21:05:58 -04:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- deadsnakes
|
|
|
|
packages:
|
|
|
|
- python3.5
|
2015-10-20 01:27:13 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.wheelhouse/
|
2016-06-09 21:05:58 -04:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- TRAVIS_CACHE=$HOME/.travis_cache/
|
2016-08-31 12:27:07 -04:00
|
|
|
- TRAVIS_NODE_VERSION="5.11"
|
2016-06-09 21:05:58 -04:00
|
|
|
matrix:
|
|
|
|
#- TOX_ENV=py27-mysql
|
|
|
|
- TOX_ENV=py27-sqlite
|
2016-06-12 14:01:16 -04:00
|
|
|
- TOX_ENV=py27-postgres
|
2016-06-09 21:05:58 -04:00
|
|
|
- TOX_ENV=py34-sqlite
|
|
|
|
- TOX_ENV=py34-mysql
|
2016-06-12 14:01:16 -04:00
|
|
|
- TOX_ENV=py34-postgres
|
2016-06-09 21:05:58 -04:00
|
|
|
- TOX_ENV=javascript
|
2016-03-27 17:22:28 -04:00
|
|
|
before_install:
|
2016-08-31 12:27:07 -04:00
|
|
|
- npm install -g npm@'>=3.9.5'
|
2016-06-09 21:05:58 -04:00
|
|
|
before_script:
|
|
|
|
- mysql -e 'drop database if exists caravel; create database caravel DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci' -u root
|
2016-09-19 18:14:00 -04:00
|
|
|
- mysql -u root -e "CREATE USER 'mysqluser'@'localhost' IDENTIFIED BY 'mysqluserpassword';"
|
|
|
|
- mysql -u root -e "GRANT ALL ON caravel.* TO 'mysqluser'@'localhost';"
|
2016-06-09 21:05:58 -04:00
|
|
|
- psql -c 'create database caravel;' -U postgres
|
2016-09-19 18:14:00 -04:00
|
|
|
- psql -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';" -U postgres
|
2016-06-09 21:05:58 -04:00
|
|
|
- export PATH=${PATH}:/tmp/hive/bin
|
2015-09-28 16:58:47 -04:00
|
|
|
install:
|
2016-06-09 21:05:58 -04:00
|
|
|
- pip install --upgrade pip
|
|
|
|
- pip install tox tox-travis
|
2016-08-31 12:27:07 -04:00
|
|
|
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
|
|
|
|
- npm install
|
2016-06-09 21:05:58 -04:00
|
|
|
script: tox -e $TOX_ENV
|