Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires silverstripe/versioned? #31

Open
robingram opened this issue Oct 25, 2018 · 4 comments
Open

Requires silverstripe/versioned? #31

robingram opened this issue Oct 25, 2018 · 4 comments

Comments

@robingram
Copy link

Should this recipe require silverstripe/versioned? On a clean install I had to add it myself via composer to get /dev/build to run.

@robbieaverill
Copy link
Contributor

There were a couple of PRs recently to remotely some coupling on versioned in other modules. I think the objective should be to keep it separate and fix the points that are broken, rather than add it to the dependencies

@maxime-rainville
Copy link
Contributor

I'm with Robbie. If Core doesn't build without versioned that problem should be addressed by decoupling versioned from core.

We don't currently have unit test on recipe-core. We might to add some basic ones to confirm, core can build and be functional by itself.

@robbieaverill
Copy link
Contributor

We do have Travis builds now, we could add some with and without versioned. To be fair, if it’s not a dependency then Travis should mostly be running tests without versioned as well

@maxime-rainville
Copy link
Contributor

I manage to get recipe-core to build by itself without issue.

My composer file looked like this:

{
    "name": "maxime/recipe-core-project",
    "require": {
        "silverstripe/recipe-core": "^4.2"
    },
    "authors": [
        {
            "name": "Maxime Rainville"
        }
    ],
    "require-dev": {
        "phpunit/phpunit": "^5.7"
    },
    "extra": {
        "project-files-installed": [
            "app/.htaccess",
            "app/_config.php",
            "app/_config/mysite.yml"
        ],
        "public-files-installed": [
            ".htaccess",
            "index.php",
            "install-frameworkmissing.html",
            "install.php",
            "web.config"
        ]
    }
}

Here's the output I got

image

The unit tests for framework won't pass if versioned is not installed, but that's expected.

Probably still worth adding some basic unit test to recipe core to make sure the thing build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants