-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.yml
58 lines (47 loc) · 1.92 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 2
jobs:
build:
parallelism: 2
docker:
# specify the version you desire here
# https://circleci.com/developer/images/image/cimg/ruby
- image: cimg/ruby:3.2.2-browsers
environment:
RAILS_ENV: test
KNAPSACK_REPO_PATH: ~/gems/knapsack
working_directory: ~/repo
steps:
- checkout
- run: mkdir ~/gems
- run: cd ~/gems && (git clone -b $CIRCLE_BRANCH --single-branch git@github.com:ArturT/knapsack.git || git clone -b master --single-branch git@github.com:ArturT/knapsack.git)
- run: cd ~/gems/knapsack && git branch
- run: cd ~/gems/knapsack && git log -n 1 | more
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-bundler-{{ checksum "Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-bundler-
- run:
name: install ruby dependencies
command: |
bundle install --jobs=4 --retry=3 --path vendor/bundle
- save_cache:
paths:
- ./vendor/bundle
key: v2-dependencies-bundler-{{ checksum "Gemfile.lock" }}
# Database setup
- run: bin/rails db:setup
# run tests!
#- run: KNAPSACK_GENERATE_REPORT=true bundle exec rspec spec
- run: bundle exec rake knapsack:rspec
#- run: KNAPSACK_GENERATE_REPORT=true bundle exec cucumber features
- run: bundle exec rake knapsack:cucumber
#- run: KNAPSACK_GENERATE_REPORT=true bundle exec rake knapsack:minitest
- run: bundle exec rake "knapsack:minitest[--verbose]"
#- run: KNAPSACK_GENERATE_REPORT=true bundle exec spinach -f spinach_features
- run: KNAPSACK_TEST_FILE_PATTERN="spinach_features/**{,/*/**}/*.feature" bundle exec rake knapsack:spinach