Skip to content

Commit

Permalink
Test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jez-stripe committed May 21, 2019
1 parent eceba6b commit 6634b56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .buildkite/release-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ if [[ "mac" == "$platform" ]]; then
rbenv exec gem install sorbet-*.gem
rbenv exec bundle
rbenv exec bundle exec rake test
test/snapshot/driver.sh
rbenv exec gem uninstall --all --executables --ignore-dependencies sorbet sorbet-static
fi
popd
Expand Down
3 changes: 3 additions & 0 deletions .buildkite/test-and-build-ruby-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ rbenv shell 2.4.3
rbenv exec bundle install --path vendor/bundle

echo "+++ tests"
# TODO(jez) This only tests unit tests right now.
# It should also run snapshot tests, but the snapshot tests don't currently
# work with debug versions of Sorbet.
rbenv exec bundle exec rake test

echo "--- build"
Expand Down
5 changes: 4 additions & 1 deletion gems/sorbet/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ task :test do

Dir.glob('./test/**/*.rb').reject {|f| f =~ /^\.\/test\/snapshot/}.each(&method(:require))

system(["test/snapshot/driver.sh", "test/snapshot/driver.sh"]) || exit(1)
# TODO(jez) Testing the snapshot tests does not currently work with debug versions of Sorbet.
# To run the snapshot tests, we're currently running the driver directly,
# instead of indirectly through `rake test` so that we can still run unit tests.
# system(["test/snapshot/driver.sh", "test/snapshot/driver.sh"]) || exit(1)
end

0 comments on commit 6634b56

Please sign in to comment.