mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-09 23:00:56 +00:00
e1e1c6b6f9
erpnext-assets - ERPNext nginx config + static assets erpnext-worker - ERPNext python environment frappe-assets - Frappe nginx config + static assets frappe-worker - Frappe python environment frappe-socketio - Frappe socketio process common for apps
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
sudo: required
|
|
|
|
dist: xenial
|
|
|
|
services:
|
|
- docker
|
|
|
|
before_install:
|
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
|
- if [ $BUILD == "development" ];then
|
|
sudo apt-get update;
|
|
sudo apt-get -y install docker-compose;
|
|
fi
|
|
|
|
install:
|
|
- if [ $BUILD == "development" ];then
|
|
chmod ugo+x ./dbench;
|
|
chmod ugo+x ./test.sh;
|
|
./dbench setup docker;
|
|
./dbench init frappe-bench;
|
|
./dbench new-site site1.local;
|
|
./dbench setup hosts;
|
|
fi
|
|
|
|
after_success:
|
|
- docker --version
|
|
|
|
matrix:
|
|
include:
|
|
- name: "Test Frappe / ERPNext development"
|
|
env: BUILD=development
|
|
script:
|
|
- ./test.sh
|
|
- ./dbench setup docker stop
|
|
- name: "Build Frappe python environment"
|
|
script:
|
|
- docker build -t frappe-worker build/frappe-worker
|
|
- docker tag frappe-worker frappe/frappe-worker:edge
|
|
- docker push frappe/frappe-worker:edge
|
|
- name: "Build Frappe nginx + static assets"
|
|
script:
|
|
- docker build -t frappe-assets build/frappe-assets
|
|
- docker tag frappe-assets frappe/frappe-assets:edge
|
|
- docker push frappe/frappe-assets:edge
|
|
- name: "Build ERPNext python environment"
|
|
script:
|
|
- docker build -t erpnext-worker build/erpnext-worker
|
|
- docker tag erpnext-worker frappe/erpnext-worker:edge
|
|
- docker push frappe/erpnext-worker:edge
|
|
- name: "Build ERPNext nginx + static assets"
|
|
script:
|
|
- docker build -t erpnext-assets build/erpnext-assets
|
|
- docker tag erpnext-assets frappe/erpnext-assets:edge
|
|
- docker push frappe/erpnext-assets:edge
|
|
- name: "Build Frappe socketio service"
|
|
script:
|
|
- docker build -t frappe-socketio build/frappe-socketio
|
|
- docker tag frappe-socketio frappe/frappe-socketio:edge
|
|
- docker push frappe/frappe-socketio:edge
|