.circleci/config.yml in sym-2.8.5 vs .circleci/config.yml in sym-2.10.0

- old
+ new

@@ -5,16 +5,16 @@ version: 2 jobs: build: docker: # specify the version you desire here - - image: circleci/ruby:2.4.1-node-browsers - environment: + - image: circleci/ruby:2.6.2-node-browsers-legacy + environment: TEST_DRB: false - - image: memcached:1.4-alpine - + - image: memcached:latest + working_directory: ~/repo steps: - checkout - restore_cache: @@ -28,26 +28,33 @@ - save_cache: paths: - ./vendor/bundle key: v1-dependencies-{{ checksum "Gemfile" }} - - - run: + + - run: name: install dockerize command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz environment: DOCKERIZE_VERSION: v0.3.0 - run: - name: Wait for memcached + name: Wait for the memcached command: dockerize -wait tcp://localhost:11211 -timeout 1m - run: - name: run tests + name: RSpecs command: | + export PATH=".:$PATH" bundle exec rspec --version bundle exec exe/sym --version - if [[ -t 1 ]]; then echo "this is a TTY!"; else echo "this is NOT a tty"; fi - if [[ -p /dev/stdout ]]; then echo "this is a PIPE!"; else echo "this is NOT a pipe"; fi - if [[ ! -t 1 && ! -p /dev/stdout ]]; then echo "this is a REDIRECT!"; else echo "this is NOT a redirect"; fi - CI=true timeout -k 2 -s HUP 30 bundle exec rspec --order random --format documentation --backtrace + # flush memcached + printf "flush_all\r\nquit\r\n" | timeout -k 2 -s HUP 10 nc -G 4 127.0.0.1 11211 || true + timeout -k 2 -s HUP 30 bundle exec rspec --order random --backtrace + + - run: + name: Rubocop + command: | + bundle exec rubocop --version + bundle exec rubocop +