title: File not found in Gitlab-CI
body: <p>I've already seen this <a href="https://stackoverflow.com/questions/45751331/file-not-found-in-docker-container-using-gitlab-ci">question/answer</a> here, but the solution isn't working for a Flutter project I'm working on.</p>
  <p>Here's my yaml file:</p>
  <pre><code>image: cirrusci/flutter
  
  variables:
  before_script:
    - flutter channel beta
    - flutter upgrade
    
  stages:
  #  - build
    - test
  
  #build:
  #  stage: build
  #  script:
  #    - flutter build apk
  
  
  unitTests:
    stage: test
    script:
     # - ls -la /opt/application/
     # - ls -la ~/
      - bash -c &quot;echo \&quot;$APP_VARS\&quot; &gt; ./cfg/env.json&quot;
      - flutter test test/widget_test.dart
  </code></pre>
  <p>Which yielded a <code>cannot access &lt;filename/directory&gt;: File or Directory Not Found</code> error with both <code>ls -la /opt/application/</code> and <code>bash -c &quot;echo \&quot;$APP_VARS\&quot; &gt; ./cfg/env.json&quot;</code></p>
  <p>Her's the output from <code>ls -la ~/</code>:</p>
  <pre><code>$ ls -la ~/
  total 72
  drwxr-xr-x. 1 cirrus cirrus 4096 Jul  9 19:16 .
  drwxr-xr-x. 1 root   root   4096 Mar  7  2018 ..
  drwxr-xr-x. 1 cirrus cirrus 4096 Jul  9 19:17 .android
  -rw-r--r--. 1 cirrus cirrus  220 May 15  2017 .bash_logout
  -rw-r--r--. 1 cirrus cirrus 3526 May 15  2017 .bashrc
  -rw-r--r--. 1 cirrus cirrus   24 Jul  9 19:16 .flutter
  -rw-r--r--. 1 cirrus cirrus  675 May 15  2017 .profile
  drwxr-xr-x. 1 cirrus cirrus 4096 Jul  9 19:16 .pub-cache
  drwxr-xr-x. 1 cirrus cirrus 4096 Jul  9 19:16 sdks
  </code></pre>
  <p>My intent is to inject environment variables via the CI for use during testing (and hopefully deployment, although I haven't gotten that far yet).</p>