# Used to test and build on gitlab-ci
before_script:
    - composer install --quiet -o

phpunit:
    script:
        - bin/phpunit --color=never
        - php -dphar.readonly=0 bin/compile
    cache:
        paths:
            - vendor

# Automatic build and test against SugarCRM 7.X
# Push to github on success.

stages:
    - test
    - build
    - publish

phpunit:
    stage: test
    script:
        - composer install --quiet -o
        - bin/phpunit --color=never
phar:
    stage: build
    script:
        - composer install --no-dev --quiet -o
        - php -dphar.readonly=0 bin/compile
    artifacts:
        paths:
            - build/sugarcli.phar
mirror:
    stage: publish
    only:
        - master
    script:
        - git push --mirror git@github.com:inetprocess/sugarcli.git


Add push to github in ci tasks.
Add push to github in ci tasks.
