add Gemfile and build extension in before_script
install cimg in before_install