Giter Site home page Giter Site logo

Integrate phan tests with Travis CI about phan HOT 6 CLOSED

phan avatar phan commented on May 22, 2024
Integrate phan tests with Travis CI

from phan.

Comments (6)

jazzdan avatar jazzdan commented on May 22, 2024

Note that this is going to be slightly tricky because of the dependency on the php-ast extension which isn't in pecl yet. I think we'll have to build the extension manually in the travis environment.

This restriction also means that we will not be able to run tests agains the nightly builds of PHP which is a bit of a bummer.

from phan.

cweagans avatar cweagans commented on May 22, 2024
  1. Do we really need to run it against PHP nightlies? I think 7.0.0 is probably adequate for now.
  2. You could run it in a Docker container with the ast extension pre-installed. Happy to build this image if needed. I'm doing something similar for https://github.com/cweagans/mcrypt-polyfill, so happy to set it up for this project too if needed.

from phan.

jazzdan avatar jazzdan commented on May 22, 2024

Hey @cweagans,

We definitely don't need to run it against the nightlies, but this feels like the type of code that might break with new versions of PHP so running it against nightlies will be valuable I think.

Also I know very little about Travis CI, this would be my first time setting it up! Can you provide them an arbitrary Docker container to run the tests in? If so then I think that's a great solution.

from phan.

cweagans avatar cweagans commented on May 22, 2024

@jazzdan Well, it's not really "officially" supported, I guess. I'm just running arbitrary containers in https://github.com/cweagans/mcrypt-polyfill/blob/master/tests/run-tests.sh (and the specific contents of the container vary by environment).

phpseclib takes a different approach (https://github.com/phpseclib/phpseclib/blob/master/.travis.yml#L30) which also works well.

from phan.

scaytrase avatar scaytrase commented on May 22, 2024

Returning to this thread - travis is already integrated and add (or not) nightly would be easy implementation, so I suggest to decide and close this.

from phan.

cweagans avatar cweagans commented on May 22, 2024

I think we can close this now.

from phan.

Related Issues (20)

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.