Talk:Continuous integration/Phan

About this board

Instructions to run Phan not working on Fedora 25

6
AKlapper (WMF) (talkcontribs)

The command for "Composer" under https://www.mediawiki.org/wiki/Continuous_integration/Phan#Running_Phan does not work here (though I set up Phan with Composer on Fedora 25).

[acko@canis mediawiki-core]$ pwd
/home/acko/coding/mediawiki-core
[acko@canis mediawiki-core]$ PHAN=/home/acko/coding/mediawiki-core/vendor/etsy/phan/phan /home/acko/coding/mediawiki-core/tests/phan/bin/phan
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Could not find a phan config file to apply in
/tests/phan/config.php

Obviously, /home/acko/coding/mediawiki-core/.git/ exists.

AKlapper (WMF) (talkcontribs)

Adding a "pwd" in /home/acko/coding/mediawiki-core/tests/phan/bin right before the error says "/home/acko/"...

AKlapper (WMF) (talkcontribs)

Garrr. Well, trying "/home/acko/coding/mediawiki-core/tests/phan/bin/phan --help" says "line 60: php7.0: command not found"...

EBernhardson (WMF) (talkcontribs)

phan works directly on the AST, which is new as of php7. not sure best way to get php7 packages on fedora

Legoktm (talkcontribs)

Fedora 25 has PHP 7, just not a binary called "php7.0". Submitted gerrit:328883.

AKlapper (WMF) (talkcontribs)

Thanks Lego! Still baffled why the script here on F25 thinks it's in a completely different directory than it actually is (and hence fails with the "Not a git repo" error)...

Reply to "Instructions to run Phan not working on Fedora 25"
There are no older topics