Code Monkey home page Code Monkey logo

install-oxid-for-module's Introduction

Description

This package installs an OXID Shop in CI to make testing standalone OXID modules repositories easier.

Usage

Install it via composer:

composer require --dev oxid-professional-services/install-oxid-for-module

You can then run this command to install an OXID shop and configure it:

vendor/bin/install-oxid

This will:

  1. Install an OXID shop in the ~/OXID directory
  2. Fill config.inc.php with some parameters
  3. Configure the test_config.yml to test the module
  4. Import the database (& run PE/EE migrations)
  5. Install the module to the shop via composer

Environment Variables:

Variable Name default description
OXID 6.0 OXID Version to use, e.g. 6.0, 6.1, 6.2-rc
OXID_EDITION ce pe and ee are also possible
DB_HOST 127.0.0.1
DB_NAME oxid
DB_USER root
DB_PWD
SHOP_URL http://127.0.0.1
SHOP_LOG_LEVEL info
USE_OPTIONAL_PACKAGES 1 does not install third-party payment modules and the testing library if set to 0

You can see an example here: https://github.com/OXIDprojects/oxid-module-internals/blob/1973b16bbe56f972a4061725ec1ce96d371c1f7f/.travis.yml

install-oxid-for-module's People

Contributors

alfredbez avatar keywan-ghadami-oxid avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

install-oxid-for-module's Issues

allow installing PE & EE versions

We're currently only able to install the CE version, so this will not work for modules which require an EE installation.

What needs to be done?

  • extract the string ce to a bash variable and make it overwriteable just like the other variables (OXID, DB_HOST, etc.)
  • check if an auth.json in the module directory exist and copy it to ~/OXID
  • if the auth.json is missing, abort and show an error
  • configure the composer repository for EE & PE: composer config repositories.ee composer https://enterprise-edition.packages.oxid-esales.com/

install only needed composer packages

In most cases, we do not need all packages specified in the meta-package. It would be great if there is a method to not even include these packages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.