[Git][ghc/ghc][wip/junit-fixes] gitlab-ci: Add testsuite typechecking lint

Ben Gamari gitlab at gitlab.haskell.org
Sun Jun 23 14:28:53 UTC 2019



Ben Gamari pushed to branch wip/junit-fixes at Glasgow Haskell Compiler / GHC


Commits:
ca353444 by Ben Gamari at 2019-06-23T14:28:31Z
gitlab-ci: Add testsuite typechecking lint

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -71,6 +71,7 @@ ghc-linters:
     refs:
       - merge_requests
 
+# Run mypy Python typechecker on linter scripts.
 lint-linters:
   <<: *only-default
   stage: lint
@@ -81,6 +82,7 @@ lint-linters:
   tags:
     - lint
 
+# Check that .T files all parse by listing broken tests.
 lint-testsuite:
   <<: *only-default
   stage: lint
@@ -91,6 +93,17 @@ lint-testsuite:
   tags:
     - lint
 
+# Run mypy Python typechecker on testsuite driver
+typecheck-testsuite:
+  <<: *only-default
+  stage: lint
+  image: "registry.gitlab.haskell.org/ghc/ci-images/linters:$DOCKER_REV"
+  script:
+    - mypy testsuite/driver/runtests.py
+  dependencies: []
+  tags:
+    - lint
+
 # We allow the submodule checker to fail when run on merge requests (to
 # accomodate, e.g., haddock changes not yet upstream) but not on `master` or
 # Marge jobs.



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/ca35344482aefa868efe8698320d05fe3465f191

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/ca35344482aefa868efe8698320d05fe3465f191
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190623/69072b7a/attachment-0001.html>


More information about the ghc-commits mailing list