2014-01-25 19:24:31 +00:00
|
|
|
machine:
|
2015-10-19 19:28:51 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2014-01-25 19:24:31 +00:00
|
|
|
node:
|
|
|
|
version:
|
2016-10-20 05:56:19 +00:00
|
|
|
6.1.0
|
2014-01-26 14:51:07 +00:00
|
|
|
python:
|
|
|
|
version:
|
2014-01-26 14:54:32 +00:00
|
|
|
2.7.3
|
2014-01-25 19:24:31 +00:00
|
|
|
dependencies:
|
|
|
|
pre:
|
2015-07-27 18:44:31 +00:00
|
|
|
- pip install -r requirements_dev.txt
|
2014-02-06 09:09:39 +00:00
|
|
|
- pip install -r requirements.txt
|
2016-03-13 21:32:54 +00:00
|
|
|
- pip install pymongo==3.2.1
|
2016-02-03 08:20:07 +00:00
|
|
|
- if [ "$CIRCLE_BRANCH" = "master" ]; then make deps; fi
|
2014-02-06 09:09:39 +00:00
|
|
|
cache_directories:
|
2016-06-06 06:24:13 +00:00
|
|
|
- node_modules/
|
2014-02-06 09:09:39 +00:00
|
|
|
- rd_ui/node_modules/
|
|
|
|
- rd_ui/app/bower_components/
|
2014-01-25 19:24:31 +00:00
|
|
|
test:
|
2014-02-06 09:09:39 +00:00
|
|
|
override:
|
2015-12-27 08:12:19 +00:00
|
|
|
- nosetests --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/junit.xml --with-coverage --cover-package=redash tests/
|
2014-01-26 14:30:16 +00:00
|
|
|
deployment:
|
2015-12-04 14:18:58 +00:00
|
|
|
github_and_docker:
|
2014-01-26 14:30:16 +00:00
|
|
|
branch: master
|
|
|
|
commands:
|
2015-12-27 21:35:57 +00:00
|
|
|
- make pack
|
2014-01-26 14:30:16 +00:00
|
|
|
- make upload
|
2015-12-04 14:18:58 +00:00
|
|
|
- echo "rd_ui/app" >> .dockerignore
|
2016-02-03 09:06:09 +00:00
|
|
|
- docker pull redash/redash:latest
|
2015-12-04 14:18:58 +00:00
|
|
|
- docker build -t redash/redash:$(./manage.py version | sed -e "s/\+/./") .
|
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- docker push redash/redash:$(./manage.py version | sed -e "s/\+/./")
|
2014-09-14 15:23:02 +00:00
|
|
|
notify:
|
|
|
|
webhooks:
|
|
|
|
- url: https://webhooks.gitter.im/e/895d09c3165a0913ac2f
|
2015-03-16 07:03:52 +00:00
|
|
|
general:
|
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
- gh-pages
|