Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #22178

Re: entrypoint per eseguire tutti i test di un progetto

From Flavix <imeil@a.a>
Newsgroups it.comp.www.php
Subject Re: entrypoint per eseguire tutti i test di un progetto
Date 2018-08-09 13:19 +0200
Organization Aioe.org NNTP Server
Message-ID <pkh804$16d5$1@gioia.aioe.org> (permalink)
References <pkgupd$kp4$1@gioia.aioe.org> <ft2iq1F3350U1@mid.individual.net>

Show all headers | View raw


Il 09/08/2018 12:19, Alessandro Pellizzari ha scritto:
> 
> Se usi composer non ti serve uno script. Puoi definire un comando e poi 
> chiamare
> 
> composer run test

Ecco il comando che vorrei eseguire

$ docker run -it --rm --volumes-from test_wordpress_1 --network 
container:test_wordpress_1 wordpress:cli plugin activate myplugin
Success: Plugin activated.

Ed ecco i soliti capricci:

$ cat composer.json
{
     "scripts": {
         "test": "docker run -it --rm --volumes-from test_wordpress_1 
--network container:test_wordpress_1 wordpress:cli plugin activate myplugin"
     }
}

$ composer run-script test
 > docker run ... the input device is not a TTY
Script docker run ... handling the test event returned with an error


   [RuntimeException]
   Error Output: the input device is not a TTY


run-script [--timeout TIMEOUT] [--dev] [--no-dev] [-l|--list] [--] 
[<script>] [<args>]...


Sembra tutto bello, tutto facile, tutto scontato, sembra...

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

entrypoint per eseguire tutti i test di un progetto Flavix <imeil@a.a> - 2018-08-09 10:42 +0200
  Re: entrypoint per eseguire tutti i test di un progetto Alessandro Pellizzari <shuriken@amiran.it> - 2018-08-09 11:19 +0100
    Re: entrypoint per eseguire tutti i test di un progetto Flavix <imeil@a.a> - 2018-08-09 13:19 +0200
      Re: entrypoint per eseguire tutti i test di un progetto Alessandro Pellizzari <shuriken@amiran.it> - 2018-08-10 10:20 +0100

csiph-web