Skip to content

Commit

Permalink
Feature/hex1 (#283)
Browse files Browse the repository at this point in the history
* update dependencies

* update travis

* typo

* git clone in home folder

* add tag support in travis script git branch checking

* Fix website deployment

* fix doc generation

* install haxelib lib globally in travis
  • Loading branch information
aliokan authored May 14, 2018
1 parent 0730bc6 commit 7f681a5
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 111 deletions.
62 changes: 34 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: haxe

# haxe versions : http://haxe.org/website-content/downloads/versions.json
haxe:
- "3.4.0"
- "3.4.7"
- development

matrix:
Expand All @@ -20,7 +20,7 @@ env:

before_install:
- echo $TRAVIS_BRANCH
- if [[ "$TRAVIS_BRANCH" != "master" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=master; fi
- if [[ "$TRAVIS_BRANCH" != "master" ]]; then export DEPENDENCIES_BRANCH=$TRAVIS_BRANCH; else export DEPENDENCIES_BRANCH=master; fi
- echo $TRAVIS_TAG
- if [[ "$TRAVIS_TAG" != "" ]]; then export DEPENDENCIES_BRANCH=$TRAVIS_TAG; fi
- echo $DEPENDENCIES_BRANCH
Expand All @@ -35,44 +35,50 @@ before_install:
- sudo apt-get install -qq libxcursor1:i386
- sudo apt-get install -qq libnss3:i386
- sudo apt-get install -qq libgtk2.0-0:i386

install:
- haxelib newrepo
#hexLog
- export BRANCH_REF=$DEPENDENCIES_BRANCH
# hexLog
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexLog.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexLog.git ~/hexlog
- haxelib dev hexlog ~/hexlog
#hexCore
# hexCore
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexCore.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexCore.git ~/hexcore
- haxelib install ~/hexcore/haxelib.json --always
- haxelib dev hexcore ~/hexcore
#hexUnit
# hexUnit
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexUnit.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexUnit.git ~/hexunit
- haxelib dev hexunit ~/hexunit
#hexReflection
# hexReflection
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexReflection.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexReflection.git ~/hexreflection
- haxelib dev hexreflection ~/hexreflection
#hexAnnotation
# hexAnnotation
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexAnnotation.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexAnnotation.git ~/hexannotation
- haxelib dev hexannotation ~/hexannotation
#hexInject
# hexInject
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexInject.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexInject.git ~/hexinject
- haxelib dev hexinject ~/hexinject
#hexDSL
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexDSL.git ~/hexdsl
# hexDsl
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexDsl.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexDsl.git ~/hexdsl
- haxelib dev hexdsl ~/hexdsl
#hexMVC
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexMVC.git ~/hexmvc
- haxelib dev hexmvc ~/hexmvc
#hexService
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexService.git ~/hexservice
- haxelib dev hexservice ~/hexservice
#hexState
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexState.git ~/hexstate
- haxelib dev hexstate ~/hexstate
#hexIoC
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexIoC.git ~/hexioc
- haxelib dev hexioc ~/hexioc
#tink_macro
- haxelib install tink_macro 0.16.1
# hexCommand
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexCommand.git $DEPENDENCIES_BRANCH | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=develop; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexCommand.git ~/hexcommand
- haxelib dev hexcommand ~/hexcommand
#hexMachina
- haxelib dev hexmachina .
#---- dependencies done ----
Expand All @@ -94,7 +100,7 @@ script:
- haxe build-flash.hxml -D fdb && haxe flash/run.hxml bin/MainTest.swf

before_deploy:
- if [ $TRAVIS_HAXE_VERSION == "3.4.0" ]; then ./.travis/pre-deploy.sh; fi
- if [ $TRAVIS_HAXE_VERSION == "3.4.7" ]; then ./.travis/pre-deploy.sh; fi

deploy:
provider: releases
Expand All @@ -110,7 +116,7 @@ deploy:
tags: true

after_deploy:
- if [ $TRAVIS_HAXE_VERSION == "3.4.0" ]; then ./.travis/post-deploy.sh; fi
- if [ $TRAVIS_HAXE_VERSION == "3.4.7" ]; then ./.travis/post-deploy.sh; fi

notifications:
email:
Expand Down
10 changes: 5 additions & 5 deletions .travis/make-documentation.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
cd $HOME

#Generate documentation
haxe -cp ./hexcore/src -cp ./hexlog/src -cp ./hexreflection/src -cp ./hexinject/src -cp ./hexmvc/src -cp ./hexioc/src -cp ./hexservice/src -cp ./hexannotation/src -cp ./hexstate/src -cp ./hexunit/src -cp ./hexdsl/src --macro "include('hex')" -D doc-gen --no-output -xml xml/php.xml -php bin
haxe -cp ./hexcore/src -cp ./hexlog/src -cp ./hexreflection/src -cp ./hexinject/src -cp ./hexmvc/src -cp ./hexioc/src -cp ./hexservice/src -cp ./hexannotation/src -cp ./hexstate/src -cp ./hexunit/src -cp ./hexdsl/src --macro "include('hex')" -D doc-gen --no-output -xml xml/neko.xml -neko bin/docs.n
haxe -cp ./hexcore/src -cp ./hexlog/src -cp ./hexreflection/src -cp ./hexinject/src -cp ./hexmvc/src -cp ./hexioc/src -cp ./hexservice/src -cp ./hexannotation/src -cp ./hexstate/src -cp ./hexunit/src -cp ./hexdsl/src --macro "include('hex')" -D doc-gen --no-output -xml xml/js.xml -js bin/docs.js
haxe -cp ./hexcore/src -cp ./hexlog/src -cp ./hexreflection/src -cp ./hexinject/src -cp ./hexmvc/src -cp ./hexioc/src -cp ./hexservice/src -cp ./hexannotation/src -cp ./hexstate/src -cp ./hexunit/src -cp ./hexdsl/src --macro "include('hex')" -D doc-gen --no-output -xml xml/flash.xml -swf-version 11 -swf bin/docs.swf
# Generate documentation
haxe -lib hexunit -lib hexdsl -lib hexcommand --macro "include('hex')" -D doc-gen --no-output -xml xml/php.xml -php bin
haxe -lib hexunit -lib hexdsl -lib hexcommand --macro "include('hex')" -D doc-gen --no-output -xml xml/neko.xml -neko bin/docs.n
haxe -lib hexunit -lib hexdsl -lib hexcommand --macro "include('hex')" -D doc-gen --no-output -xml xml/js.xml -js bin/docs.js
haxe -lib hexunit -lib hexdsl -lib hexcommand --macro "include('hex')" -D doc-gen --no-output -xml xml/flash.xml -swf-version 11 -swf bin/docs.swf

haxelib install dox

Expand Down
44 changes: 16 additions & 28 deletions .travis/make-hexMachina-bundle.sh
Original file line number Diff line number Diff line change
@@ -1,46 +1,34 @@
#!/bin/bash
cd $HOME
mkdir hexmachina-bundle hexmachina-bundle/src hexmachina-bundle/test
# hexLog
rsync -a ./hexlog/src ./hexmachina-bundle
rsync -a ./hexlog/test ./hexmachina-bundle
cp ./hexlog/README.md ./hexmachina-bundle/README-hexlog.md
# hexCore
rsync -a ./hexcore/src ./hexmachina-bundle
rsync -a ./hexcore/test ./hexmachina-bundle
cp ./hexcore/README.md ./hexmachina-bundle/README-hexcore.md
# hexLog
rsync -a ./hexlog/src ./hexmachina-bundle
rsync -a ./hexlog/test ./hexmachina-bundle
cp ./hexlog/README.md ./hexmachina-bundle/README-hexlog.md
# hexReflection
rsync -a ./hexreflection/src ./hexmachina-bundle
rsync -a ./hexreflection/test ./hexmachina-bundle
cp ./hexreflection/README.md ./hexmachina-bundle/README-hexreflection.md
# hexAnnotation
rsync -a ./hexannotation/src ./hexmachina-bundle
rsync -a ./hexannotation/test ./hexmachina-bundle
cp ./hexannotation/README.md ./hexmachina-bundle/README-hexannotation.md
# hexInject
rsync -a ./hexinject/src ./hexmachina-bundle
rsync -a ./hexinject/test ./hexmachina-bundle
cp ./hexinject/README.md ./hexmachina-bundle/README-hexinject.md
# hexDsl
rsync -a ./hexdsl/src ./hexmachina-bundle
rsync -a ./hexdsl/test ./hexmachina-bundle
cp ./hexdsl/README.md ./hexmachina-bundle/README-hexdsl.md
# hexInject
rsync -a ./hexinject/src ./hexmachina-bundle
rsync -a ./hexinject/test ./hexmachina-bundle
cp ./hexinject/README.md ./hexmachina-bundle/README-hexinject.md
# hexNVC
rsync -a ./hexmvc/src ./hexmachina-bundle
rsync -a ./hexmvc/test ./hexmachina-bundle
cp ./hexmvc/README.md ./hexmachina-bundle/README-hexmvc.md
# hexIoC
rsync -a ./hexioc/src ./hexmachina-bundle
rsync -a ./hexioc/test ./hexmachina-bundle
cp ./hexioc/README.md ./hexmachina-bundle/README-hexioc.md
# hexService
rsync -a ./hexservice/src ./hexmachina-bundle
rsync -a ./hexservice/test ./hexmachina-bundle
cp ./hexservice/README.md ./hexmachina-bundle/README-hexservice.md
# hexAnnotation
rsync -a ./hexannotation/src ./hexmachina-bundle
rsync -a ./hexannotation/test ./hexmachina-bundle
cp ./hexannotation/README.md ./hexmachina-bundle/README-hexannotation.md
# hexState
rsync -a ./hexstate/src ./hexmachina-bundle
rsync -a ./hexstate/test ./hexmachina-bundle
cp ./hexstate/README.md ./hexmachina-bundle/README-hexstate.md
# hexCommand
rsync -a ./hexcommand/src ./hexmachina-bundle
rsync -a ./hexcommand/test ./hexmachina-bundle
cp ./hexcommand/README.md ./hexmachina-bundle/README-hexcommand.md
# hexUnit
rsync -a ./hexunit/src ./hexmachina-bundle
rsync -a ./hexunit/test ./hexmachina-bundle
Expand Down
45 changes: 16 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ Source code is split in different repositories :
* [hexAnnotation](https://github.com/doclerlabs/hexAnnotation)
* [hexInject](https://github.com/doclerlabs/hexInject)
* [hexDSL](https://github.com/doclerlabs/hexDSL)
* [hexService](https://github.com/doclerlabs/hexService)
* [hexMVC](https://github.com/doclerlabs/hexMVC)
* [hexState](https://github.com/doclerlabs/hexState)
* [hexIoC](https://github.com/doclerlabs/hexIoC)
* [hexCommand](https://github.com/doclerlabs/hexCommand)

Organigramme :

Expand All @@ -24,14 +21,14 @@ Organigramme :
| +----------+ |
| | |
| v |
| +----------+ |
| | hexCore |----------+ |
| +----------+ | |
| | | |
| v v |
| +----------------+ +----------+ |
| | hexReflection | | hexUnit | |
| +----------------+ +----------+ |
| +----------+ | +---------------+
| +---------- | hexCore |<------------------+---| tink macro |
| | +----------+ | +---------------+
| | | |
| v v |
| +----------+ +----------------+ |
| | hexUnit | | hexReflection | |
| +----------+ +----------------+ |
| | |
| v |
| +----------------+ |
Expand All @@ -40,23 +37,13 @@ Organigramme :
| | |
| v |
| +----------------+ |
| +-----| hexInject |------+ |
| | +----------------+ | |
| | | | |
| v v v |
| +------------+ +------------+ +------------+ | +---------------+
| | hexMVC | | hexService | | hexDSL |<--+---| tink macro |
| +------------+ +------------+ +------------+ | +---------------+
| | | | |
| v | | |
| +------------+ | | |
| | hexState | | | |
| +------------+ | | |
| | | | |
| v v v |
| +------------------------------------------+ |
| | hexIoC | |
| +------------------------------------------+ |
| | hexInject | |
| +----------------+ |
| | | |
| v v |
| +------------+ +------------+ |
| | hexCommand | | hexDSL | |
| +------------+ +------------+ |
| |
+--------------------------------------------------+

Expand Down
8 changes: 3 additions & 5 deletions build-each.hxml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-main MainMachinaTest

-lib hexunit
-lib hexioc
-lib hexdsl
-lib hexcommand

#all test sources to run the whole test suite
-cp test
Expand All @@ -12,9 +13,6 @@
-cp /home/travis/hexannotation/test
-cp /home/travis/hexinject/test
-cp /home/travis/hexdsl/test
-cp /home/travis/hexservice/test
-cp /home/travis/hexmvc/test
-cp /home/travis/hexstate/test
-cp /home/travis/hexioc/test
-cp /home/travis/hexcommand/test

-D debug
3 changes: 2 additions & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"url": "https://github.com/DoclerLabs/hexMachina",
"dependencies":
{
"hexioc": "git:https://github.com/DoclerLabs/hexIoC.git",
"hexdsl": "git:https://github.com/DoclerLabs/hexDSL.git",
"hexcommand": "git:https://github.com/DoclerLabs/hexCommand.git",
"hexunit": "git:https://github.com/DoclerLabs/hexUnit.git"
}
}
24 changes: 9 additions & 15 deletions test/MachinaSuite.hx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package;

import hex.HexAnnotationSuite;
import hex.HexCoreSuite;
import hex.HexDslSuite;
import hex.HexInjectSuite;
import hex.HexIoCSuite;
import hex.HexLogSuite;
import hex.HexMVCSuite;
import hex.HexReflectionSuite;
import hex.HexServiceSuite;
import hex.HexCoreSuite;
import hex.HexUnitSuite;
import hex.HexStateSuite;
import hex.HexReflectionSuite;
import hex.HexAnnotationSuite;
import hex.HexInjectSuite;
import hex.HexDslSuite;
import hex.HexCommandSuite;

/**
* ...
Expand All @@ -20,16 +17,13 @@ class MachinaSuite
{
@Suite( "Machina suite" )
public var list : Array<Class<Dynamic>> = [
HexUnitSuite,
HexLogSuite,
HexCoreSuite,
HexUnitSuite,
HexReflectionSuite,
HexAnnotationSuite,
HexInjectSuite,
HexDslSuite,
HexServiceSuite,
HexMVCSuite,
HexStateSuite,
HexIoCSuite,
HexLogSuite
HexCommandSuite,
];
}

0 comments on commit 7f681a5

Please sign in to comment.