Skip to content

pboethig/TestPhpProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testPHPProject

This is a PHP project skelleton for your ant:ivy nexus buildsystem

components:

  • ant build task chain
  • composer dependencies
    • phpmd
    • phpcs
    • phpcpd
    • dpend
    • phploc
    • phpdox

prerequisits

  • composer installed
  • ant installed
    • apt-get install ant
  • nexus installed use this docker infrastructure
    • installs jenkins, gitlab, nexus, a webserver (jenkins lave) and some webtools as single container in a docker network
you have to store a build.properties under ~/.ant/config/build.properties witb following code
repo.protocoll=http
repo.host=dockergitlab_nexus_1
repo.port=8081
repo.realm=Sonatype Nexus Repository Manager
repo.username=admin
repo.password=admin123

usage:

  • clone project
  • cd to app

resolve dependency

composer install

init ant

ant init

or run a release

- run "ant package -DTAG_TO_BUILD=1.2.3.7"

or run a release and deploy to nexus

ant package -DTAG_TO_BUILD=1.2.3.8 release-nexus