aliases: - &workspace-location at: /tmp/workspace - ©-ci-dotenv | cp -rf /tmp/workspace/roro . - &source-ci-variables | echo 'source roro/containers/app/ci.env' >> $BASH_ENV source $BASH_ENV defaults: &defaults executor: machine-executor working_directory: ~/project version: 2.1 executors: machine-executor: machine: true ruby-executor: docker: - image: cimg/ruby:2.7 jobs: build: <<: *defaults steps: - checkout test-rollon-rails: executor: ruby-executor steps: - checkout - setup_remote_docker: version: 19.03.12 - run: | rake install mkdir greenfield cd greenfield (yes || true) | roro greenfield - run: echo 'success' test: <<: *defaults steps: - checkout - run: RUBY_VERSION=2.5 docker-compose build ruby_gem - run: RUBY_VERSION=2.5 docker-compose up -d --force-recreate ruby_gem - run: RUBY_VERSION=2.5 docker-compose run ruby_gem bundle exec rake test - run: RUBY_VERSION=2.6 docker-compose build ruby_gem - run: RUBY_VERSION=2.6 docker-compose up -d --force-recreate ruby_gem - run: RUBY_VERSION=2.6 docker-compose run ruby_gem bundle exec rake test - run: RUBY_VERSION=2.7 docker-compose build ruby_gem - run: RUBY_VERSION=2.7 docker-compose up -d --force-recreate ruby_gem - run: RUBY_VERSION=2.7 docker-compose run ruby_gem bundle exec rake test release: <<: *defaults steps: - checkout - run: gem install roro - run: roro generate::exposed ci - run: | echo $(cat ./roro/containers/ruby_image/ci.env) >> $BASH_ENV source $BASH_ENV - run: chmod +x ./.circleci/setup-gem-credentials.sh - run: ./.circleci/setup-gem-credentials.sh - run: chmod 0600 ~/.gem/credentials - run: git checkout . - run: gem release workflows: version: 2 build-cli: jobs: - build - test-rollon-rails: filters: branches: only: development - test: filters: branches: only: master - release: requires: - build filters: branches: only: release