2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-08 22:31:07 +00:00
frappe_docker/.travis.yml
vishalseshagiri dc5add7526 mend
Former-commit-id: e5ee9da08c
2017-10-02 09:48:51 +05:30

31 lines
1.2 KiB
YAML

language: python
python:
- "2.7"
env:
- DOCKER_COMPOSE_VERSION: 1.8.0
services:
- docker
install:
- docker-compose build
- docker-compose up -d
- docker exec -it -u root frappe bash -c "cd /home/frappe && chown -R frappe:frappe ./*"
- docker exec -i frappe bash -c "cd .. && bench init frappe-bench --skip-bench-mkdir --skip-redis-config-generation && cd frappe-bench"
- docker exec -i frappe bash -c "mv Procfile_docker Procfile && mv sites/common_site_config_docker.json sites/common_site_config.json"
- docker exec -i frappe bash -c "bench new-site site1.local"
- docker exec -i frappe bash -c "bench get-app erpnext https://github.com/frappe/erpnext"
- docker exec -i frappe bash -c "bench --site site1.local install-app erpnext"
- docker exec -i -u root frappe bash -c "echo 127.0.0.1 site1.local >> /etc/hosts"
- sudo su -c 'echo 127.0.0.1 site1.local >> /etc/hosts'
- docker exec -id frappe bash -c "bench start"
- 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