diff --git a/.circleci/config.yml b/.circleci/config.yml index b694fd24d80..6ded9961fe3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,7 @@ aliases: NOKOGIRI_USE_SYSTEM_LIBRARIES: 1 EAGER_LOAD: 1 <<: *cc_test_reporter_id + user: frontend - image: registry.opensuse.org/obs/server/unstable/container/sle12/sp3/images/openbuildservice/mariadb:latest command: | /bin/bash -c 'echo -e "[mysqld]\ndatadir = /dev/shm" > /etc/my.cnf.d/obs.cnf && cp -a /var/lib/mysql/* /dev/shm && /usr/lib/mysql/mysql-systemd-helper start' @@ -18,23 +19,24 @@ aliases: environment: NOKOGIRI_USE_SYSTEM_LIBRARIES: 1 <<: *cc_test_reporter_id + user: frontend - image: registry.opensuse.org/obs/server/unstable/container/sle12/sp3/images/openbuildservice/mariadb:latest command: | /bin/bash -c 'echo -e "[mysqld]\ndatadir = /dev/shm" > /etc/my.cnf.d/obs.cnf && cp -a /var/lib/mysql/* /dev/shm && /usr/lib/mysql/mysql-systemd-helper start' name: db - &restore_bundle_cache keys: - - v2-dependencies-{{ checksum "./src/api/Gemfile.lock" }} + - v3-dependencies-{{ checksum "./src/api/Gemfile.lock" }} # fallback to using the latest cache if no exact match is found - - v2-dependencies- + - v3-dependencies- - &save_bundle_cache paths: - - ./src/api/vendor/bundle + - /usr/lib64/ruby/gems/2.5.0/gems/ key: v2-dependencies-{{ checksum "./src/api/Gemfile.lock" }} - &install_dependencies name: install dependencies command: | - cd ./src/api && bundle install --jobs=4 --retry=3 --path vendor/bundle + cd ./src/api && bundle install --jobs=4 --retry=3 - &wait_for_database name: Wait for DB command: mysqladmin ping -h db @@ -184,6 +186,7 @@ jobs: - image: registry.opensuse.org/obs/server/unstable/container/sle12/sp3/images/openbuildservice/frontend-base:latest environment: <<: *cc_test_reporter_id + user: frontend steps: - attach_workspace: at: /tmp