Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,20 @@ jobs:
- run:
name: Check beta contract
command: scripts/check_beta_contract.sh
# `crystal spec` keeps the compiler process, and its multi-GiB heap,
# alive until the spec binary exits. The fixture specs then start a
# second compiler (spec/support/fixture_compiler.cr), and the two
# together exceeded the medium class's 4 GiB: the kernel killed the
# outer compiler partway through the run (builds 348, 349, 357). Build
# the suite first so that compiler exits, then run the binary on its own.
- run:
name: Build framework specs
command: |
find spec -name "*_spec.cr" | LC_ALL=C sort | sed "s|^|require \"./|; s|\$|\"|" > spec_suite.cr
crystal build spec_suite.cr -o amber-specs
- run:
name: Run framework specs
command: crystal spec
command: ./amber-specs
environment:
# Spec fixture programs build with the compiler that runs the
# suite (spec/support/fixture_compiler.cr).
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Amber.path = "./spec/support/config"
Amber.env=(ENV["AMBER_ENV"])

require "http"
# The websocket helpers open clients with HTTP::WebSocket.new(String). Since
# agent-crystal 1.22.3-incremental-1 (crimson-knight/crystal#45) that constructor
# lives in http/web_socket/client, which require "http/web_socket" loads.
require "http/web_socket"
require "spec"
require "../src/amber"
require "./support/fixtures"
Expand Down
Loading