Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

ecaresoft/sihaybuild

Repository files navigation

Si Hay Build

A naive CI implementation made in django.

Installation

  1. Install Pipenv
sudo pip install pipenv
sudo pipenv install --two
pipenv shell
  1. Config database and setup env variables
psql# CREATE DATABASE databasename OWNER name;
pipenv run manage.py migrate
  1. Run the app with honcho
pipenv run honcho start

Usage

NOTE: This version requires that you SSH into the server and install the dependencies needed for your projects to run.

NOTE: You also need to clone the repos before running tests

./manage.py shell
>>> from webhooks import repos
>>> repos.install('GIT_URL_FOR_REPO')

Before starting, create an admin user

./manage.py createsuperuser

Once the server is running, enter localhost:8000/admin/, and configure your repos and pipelines.

  • Setup pipeline commands using a yaml syntax, for example:
setup:
- npm install
- bower install

test:
- ember test

deploy:
- ember deploy

After that, enter your repo settings in github and add a webhook pointing to <SERVER_URL>/webhooks/.

And thats it!