add Gemfile and build extension in before_script