Skip to content

Commit

Permalink
Use http instead of https for Melpa for Travis tests to pass
Browse files Browse the repository at this point in the history
and to get around this bug in emacs-26+ for now:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25061
  • Loading branch information
kaushalmodi committed Dec 18, 2017
1 parent ae41198 commit f70937a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/setup-ox-hugo.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;; Time-stamp: <2017-12-01 10:43:44 kmodi>
;; Time-stamp: <2017-12-18 17:50:48 kmodi>

;; Setup to test ox-hugo using emacs -Q and the latest stable version
;; of Org.
Expand Down Expand Up @@ -85,10 +85,11 @@ Emacs installation. If Emacs is installed using
;; Below require will auto-create `package-user-dir' it doesn't exist.
(require 'package)

(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(url (concat (if no-ssl "http" "https") "://melpa.org/packages/")))
(add-to-list 'package-archives (cons "melpa" url) :append))
;; (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
;; (not (gnutls-available-p))))
;; (url (concat (if no-ssl "http" "https") "://melpa.org/packages/")))
;; (add-to-list 'package-archives (cons "melpa" url) :append))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") :append)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") :append) ;For latest `org'
(add-to-list 'load-path ox-hugo-git-root) ;For ox-hugo.el, ox-blackfriday.el
(add-to-list 'load-path (concat ox-hugo-git-root "doc/")) ;For ox-hugo-export-gh-doc.el
Expand Down

0 comments on commit f70937a

Please sign in to comment.