Skip to content

Commit

Permalink
Add typed checking to tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Sep 13, 2020
1 parent 90c059c commit 468d1f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ before_install:
- ruby ./travis-bundler.rb
- bundle install
before_script: yard gems
script: rspec
script: rake test
13 changes: 12 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@ end
desc "Open a Pry session preloaded with this library"
task :console do
sh "pry -I lib -r solargraph.rb"
end
end

desc "Run the type checker"
task :typecheck do
sh "bundle exec solargraph typecheck --level typed"
end

desc "Run all tests"
task :test do
Rake::Task["typecheck"].invoke
Rake::Task["spec"].invoke
end

0 comments on commit 468d1f5

Please sign in to comment.