Custom chromedriver

I’ve added

    - wget https://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip
    - unzip chromedriver_linux64.zip

to dependencies.pre which adds chromedriver to the root of the project on the circleci machine. I haven’t found a way to add it to PATH though.

So far I’ve tried adding PATH=directory/with/chromedriver:$PATH to machine.environment in config.yml and I’ve also tried prepending the command with the modified PATH i.e.

PATH=directory/with/chromedriver:$PATH bundle exec spinach

but when I check the ENV[‘PATH’] in ruby it doesn’t include the additional directory.

What should I be doing here?