Skip to content

Commit b3ecdf4

Browse files
komagataclaude
andcommitted
CIにlibheifを追加してHEICテストのskipを削除
- CircleCIにlibheif-devをインストールしてHEICサポートを有効化 - テストからskipとheic_supported?ヘルパーを削除 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 60b1352 commit b3ecdf4

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
name: Update package list
4141
command: sudo apt-get update
4242
- run:
43-
name: Install libvips
44-
command: sudo apt-get install -y libvips
43+
name: Install libvips and libheif
44+
command: sudo apt-get install -y libvips libheif-dev
4545
- run:
4646
name: Traceroute
4747
command: FAIL_ON_ERROR=1 bundle exec rake traceroute
@@ -95,8 +95,8 @@ jobs:
9595
name: Install japanese font
9696
command: sudo apt-get install -y fonts-noto-cjk
9797
- run:
98-
name: Install libvips
99-
command: sudo apt-get install -y libvips
98+
name: Install libvips and libheif
99+
command: sudo apt-get install -y libvips libheif-dev
100100
- run:
101101
name: Wait for DB
102102
command: 'dockerize -wait tcp://localhost:5432 -timeout 1m'

test/system/users/profile_test.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ class ProfileTest < ApplicationSystemTestCase
162162
end
163163

164164
test 'can upload heic image and converts it to webp with login_name' do
165-
skip 'HEICのサポートがないため、スキップします。' unless heic_supported?
166-
167165
visit_with_auth '/current_user/edit', 'hajime'
168166
attach_file 'user[avatar]', 'test/fixtures/files/images/heic-sample-file.heic', make_visible: true
169167
click_button '更新する'
@@ -203,13 +201,5 @@ class ProfileTest < ApplicationSystemTestCase
203201
assert_selector 'h2.card-header__title', text: '主な活動予定時間'
204202
end
205203

206-
private
207-
208-
def heic_supported?
209-
Vips::Image.new_from_file('test/fixtures/files/images/heic-sample-file.heic')
210-
true
211-
rescue Vips::Error
212-
false
213-
end
214204
end
215205
end

0 commit comments

Comments
 (0)