atom/ci

apm and atom not added to the PATH on Travis

pvdlg opened this issue · 0 comments

pvdlg commented

Running the script on Travis the apm and atom are available in ~/atom/usr/bin but they are not added to the PATH.

apm can be used within a npm script, as on Travis the home folder is part of the npm bin path.
But it's not possible to execute apm nor atom directly as a script.

.travis.ymlexample:

script:
  - curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
  - chmod u+x build-package.sh
  - ./build-package.sh
  - atom -v

It fails with the error sh: 1: atom: not found.

This can be solved with export PATH=$PATH:~/atom/usr/bin