Can shell script

rails
ruby
bash

#1

Hello.
I have a rails project on circleci, https://circleci.com/gh/brasilct/finder/47
but couldn’t manage to make the build work.
I keep getting this error:
sudo: ./test/bin/install-freetds.sh: command not found

My circle.yml file is as simple as that:
machine:
ruby:
version: 2.4.1
environment:
RAILS_ENV: test
services:
- docker

dependencies:
override:
- sudo ./test/bin/install-freetds.sh

test:
override:
- bundle exec rails test:

I’ve tried to follow the same patterns of this gem https://github.com/rails-sqlserver/tiny_tds which uses circleci as well, but after few hours debuging I’m on a dead end.
Any help is very wellcome.


#2

Is this file executable? Can you run

ls -al test/bin in a build and paste the output here


#3

Thank you so much @levlaz
I forgot to make that file executable:

I run:
chmod 744 test/bin/install-freetds.sh

and now is working.


#4