mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
36 lines
923 B
YAML
36 lines
923 B
YAML
machine:
|
|
services:
|
|
- docker
|
|
- redis
|
|
node:
|
|
version:
|
|
6.9.1
|
|
dependencies:
|
|
override:
|
|
- pip install --upgrade setuptools
|
|
- pip install -r requirements_dev.txt
|
|
- pip install -r requirements.txt
|
|
- npm install
|
|
- npm run build
|
|
cache_directories:
|
|
- node_modules/
|
|
test:
|
|
override:
|
|
- pytest --junitxml=$CIRCLE_TEST_REPORTS/junit.xml tests/
|
|
deployment:
|
|
github_and_docker:
|
|
branch: [master, /release.*/]
|
|
commands:
|
|
- bin/pack
|
|
# - python bin/release_manager.py $(CIRCLE_SHA1) $(BASE_VERSION) $(FILENAME)
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
- docker build -t redash/redash:$(./manage.py version | sed -e "s/\+/./") .
|
|
- docker push redash/redash:$(./manage.py version | sed -e "s/\+/./")
|
|
notify:
|
|
webhooks:
|
|
- url: https://webhooks.gitter.im/e/895d09c3165a0913ac2f
|
|
general:
|
|
branches:
|
|
ignore:
|
|
- gh-pages
|