2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-02-09 07:28:39 +00:00
frappe_docker/.travis.yml
chabad360 2b1334d5a5 improvements to travis and dbench (#53)
This PR adds the `bench` script, which aims for near parity with frappe bench, it makes setting up far easier, because instead of running `./dbench -c "new-site site1.local"` you only white what you would if bench was installed on the local system (i.e. `./bench new-site site1.local`), it also adds other features as well.
2018-10-13 03:05:29 +00:00

29 lines
647 B
YAML

language: python
python:
- "2.7"
env:
- DOCKER_COMPOSE_VERSION: 1.22.0
services:
- docker
install:
- chmod ugo+x ./dbench
- ./dbench setup docker
- ./dbench init frappe-bench
- ./dbench new-site site1.local
- sudo ./dbench setup hosts
- pip install --upgrade virtualenv
- virtualenv -p python3 testenv
- source testenv/bin/activate
- pip install requests
script:
- docker-compose ps | grep -i frappe
- docker-compose ps | grep -i redis-cache
- docker-compose ps | grep -i redis-queue
- docker-compose ps | grep -i redis-socketio
- docker-compose ps | grep -i mariadb
- python test.py
- docker-compose stop