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

Missing test execution [MSSQL] [Travis-ci] #1596

Open
Incognito opened this issue Jul 2, 2020 · 0 comments
Open

Missing test execution [MSSQL] [Travis-ci] #1596

Incognito opened this issue Jul 2, 2020 · 0 comments

Comments

@Incognito
Copy link
Contributor

Incognito commented Jul 2, 2020

Presently there are no tests running against a MSSQL environment on Travis.

In theory this should be possible to do via adding a job like this:

    - name: MSSQL
      php: 7.4
      env: DB=mssql
      install:
        - >
          docker run \
          -d \
          -e 'ACCEPT_EULA=Y' \
          -e 'SA_PASSWORD=yourStrong(!)Password' \
          -p 1433:1433 \
          mcr.microsoft.com/mssql/server:2017-latest
        - rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
        - composer install -v

There will be some other steps need however:

  • Creating the build setup scripts for MSSQL: tests/bin/setup.mssql.sh, tests/mssql.phpunit.xml, tests/bin/phpunit.mssql.sh
  • Writing the actual MSSQL-friendly-syntax for these setup scripts, ports, password, etc. All the basic setup stuff isn't done for us out-of-the-box.
  • Installing the cli-client to run mssql commands against (or pass it through docker exec, that's also possible)
  • Installing the right PDO drivers for MSSQL
@PhilinTv PhilinTv modified the milestone: Alpha 11 Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants