raitraidma / pgapex

APEX for ProstgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI build

pgApex

pgApex requirements

  • Postgresql 9.4
  • PHP 5.5

Prerequisites

Windows host (vagrant < 1.7.3)

To enable longer paths than 260 chars:

  • Open C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.2\plugins\providers\virtualbox\driver\version_4_3.rb (Path may vary)
  • Find method 'share_folders' (lines 495-510)
  • Relpace: folder[:hostpath]] with '\\\\?\\' + folder[:hostpath].gsub(/[\/\\]/,'\\')]

Start VM

  • Open command line as Administrator
  • Go to the folder where is Vagrantfile
  • Run command: vagrant up

Access VM

  • Log into the VM, open Putty
    • Host name: localhost
    • Port: 2222
    • Press Open button
    • Username: vagrant
    • Password: vagrant

Shared folder is in /vagrant directory: cd /vagrant

Deploy db evolutions

  • Execute deploy script: /vagrant/db_evolutions.sh

Access UI

http://localhost:8000

Stop VM

  • Open command line
  • Go to the folder where is Vagrantfile
  • Run command: vagrant halt

Run tests in VM

  • Go to /vagrant folder: cd /vagrant
  • Run js tests once: npm run test-single-run
  • Run js tests when code changes: npm run test
  • Run php tests: composer test

CI

  • https://travis-ci.org/
  • deploy.sh (SERVER_PASSWORD, SERVER_USER_HOST, DB_PASSWORD, DB_USER and DB_DATABASE are variables defined in repository settings)

Demo

About

APEX for ProstgreSQL

License:MIT License


Languages

Language:JavaScript 22.2%Language:TeX 22.0%Language:PLpgSQL 19.5%Language:PHP 18.2%Language:HTML 17.0%Language:Shell 1.1%Language:CSS 0.1%