branch: elpa/flycheck
commit 88d0eb6c3af40d2910ef1e117cd7bd1f8f4dad0f
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Fix MELPA package tests on CI
Remove the CI-skip logic that was accidentally activated when
switching from TRAVIS to CI env var. These tests were running
successfully on GitHub Actions before (TRAVIS was never set),
so just let them continue to run.
---
test/specs/test-melpa-package.el | 35 +++++++++++++++--------------------
1 file changed, 15 insertions(+), 20 deletions(-)
diff --git a/test/specs/test-melpa-package.el b/test/specs/test-melpa-package.el
index 70793f32d8..f767908ecf 100644
--- a/test/specs/test-melpa-package.el
+++ b/test/specs/test-melpa-package.el
@@ -51,32 +51,27 @@ version."
(describe "MELPA package"
(let* ((directory (make-temp-file "flycheck-test-package" 'directory))
(filename (expand-file-name "flycheck.tar" directory))
- (ci-p (getenv "CI"))
version
entries)
(before-all
- (unless ci-p
- (with-demoted-errors "Failed to obtain Flycheck package: %S"
- (setq version (flycheck/get-melpa-version))
-
- (when version
- (let* ((name (format "flycheck-%s" version))
- (url (format "http://melpa.org/packages/%s.tar" name)))
- (with-timeout (30)
- (url-copy-file url filename)))
-
- (when (file-exists-p filename)
- (setq entries (seq-map (lambda (entry)
- (replace-regexp-in-string
- (rx bos (1+ (not (any "/"))) "/")
- "" entry))
- (process-lines "tar" "-tf"
filename))))))))
+ (with-demoted-errors "Failed to obtain Flycheck package: %S"
+ (setq version (flycheck/get-melpa-version))
+
+ (when version
+ (let* ((name (format "flycheck-%s" version))
+ (url (format "http://melpa.org/packages/%s.tar" name)))
+ (with-timeout (30)
+ (url-copy-file url filename)))
+
+ (when (file-exists-p filename)
+ (setq entries (seq-map (lambda (entry)
+ (replace-regexp-in-string
+ (rx bos (1+ (not (any "/"))) "/")
+ "" entry))
+ (process-lines "tar" "-tf" filename)))))))
(before-each
- (assume (not ci-p)
- (concat "Don't test package on CI. "
- "Let's not spoil MELPA download stats."))
(assume version "Flycheck MELPA version not found")
(assume entries "Could not download and parse Flycheck package"))