Fix GitLab CI YAML quoting

This commit is contained in:
Daniel Schädler 2026-04-11 13:44:56 +02:00
parent 39ba1cff22
commit 35d81b53fd
1 changed files with 9 additions and 9 deletions

View File

@ -35,13 +35,13 @@ rails e2e spec:
when: never when: never
- when: always - when: always
script: script:
- cd /app - 'cd /app'
- bundle exec rails db:migrate - 'bundle exec rails db:migrate'
- bundle exec rails runner -e test "user = User.find_or_initialize_by(email: 'e2e@example.com'); user.username = 'e2e-user'; user.password = 'password123'; user.password_confirmation = 'password123'; user.confirmed_at = Time.current; user.uid = user.email; user.provider = 'email'; user.save!" - 'bundle exec rails runner -e test "user = User.find_or_initialize_by(email: ''e2e@example.com''); user.username = ''e2e-user''; user.password = ''password123''; user.password_confirmation = ''password123''; user.confirmed_at = Time.current; user.uid = user.email; user.provider = ''email''; user.save!"'
- bundle exec rails s -e test -p 3000 -b 0.0.0.0 > /tmp/turniere-e2e-server.log 2>&1 & - 'bundle exec rails s -e test -p 3000 -b 0.0.0.0 > /tmp/turniere-e2e-server.log 2>&1 &'
- SERVER_PID=$! - 'SERVER_PID=$!'
- ruby script/wait_for_http.rb http://127.0.0.1:3000 60 - 'ruby script/wait_for_http.rb http://127.0.0.1:3000 60'
- TURNIERE_E2E_BASE_URL=http://127.0.0.1:3000 TURNIERE_E2E_EMAIL=e2e@example.com TURNIERE_E2E_PASSWORD=password123 TURNIERE_E2E_USERNAME=e2e-user bundle exec rspec spec/e2e/http - 'TURNIERE_E2E_BASE_URL=http://127.0.0.1:3000 TURNIERE_E2E_EMAIL=e2e@example.com TURNIERE_E2E_PASSWORD=password123 TURNIERE_E2E_USERNAME=e2e-user bundle exec rspec spec/e2e/http'
- kill $SERVER_PID - 'kill $SERVER_PID'
after_script: after_script:
- test -f /tmp/turniere-e2e-server.log && tail -n 200 /tmp/turniere-e2e-server.log || true - 'test -f /tmp/turniere-e2e-server.log && tail -n 200 /tmp/turniere-e2e-server.log || true'