title: gitlab-ci : php -v bash: line 24: php: command not found
body: <p>I'm experiencing a random problem.</p>
  
  <pre><code>before_script:
    - cd sources
    - php -v
  
  test:
      script:
          - phpunit -c mypath
  </code></pre>
  
  <p>70% of the time I'm getting this error:</p>
  
  <pre><code>$ php -v
  bash: line 24: php: command not found
  
  ERROR: Build failed with: exit code 1
  </code></pre>
  
  <p>But the weird thing is if I keep re running the same build it'll pass.</p>
  
  <p>Any ideas?</p>