Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
# This script will setup Evm (Emacs Version Manager) and Cask on
# Travis to use for Emacs Lisp testing.
#
# In .travis.yml, add this:
#
# - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
#
# Emacs 24.3 is installed in the above script because Cask requires
# Emacs 24 to be installed. Because of this, when installing other
# environments in the .travis.yml configuration, use the --skip
# option, for example:
#
# - evm install $EVM_EMACS --use --skip
export PATH="/home/travis/.evm/bin:$PATH"
export PATH="/home/travis/.cask/bin:$PATH"
git clone https://github.com/rejeep/evm.git /home/travis/.evm
evm config path /tmp
evm install emacs-24.3-travis --use --skip
curl -fsSkL https://raw.github.com/cask/cask/master/go | python
@galaunay

This comment has been minimized.

Copy link

galaunay commented Feb 19, 2019

The last curl statement is timing out.
It seems to work with curl -fsSkL https://raw.githubusercontent.com/cask/cask/master/go | python.

@xuchunyang

This comment has been minimized.

Copy link

xuchunyang commented Feb 19, 2019

I got a similar error (Error 503 Backend unavailable, connection timeout
) on a different URL (https://raw.github.com/rejeep/evm/master/go), it seemsraw.github.com isn't working:

~ $ curl https://raw.github.com/rejeep/evm/master/go

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>503 Backend unavailable, connection timeout</title>
  </head>
  <body>
    <h1>Error 503 Backend unavailable, connection timeout</h1>
    <p>Backend unavailable, connection timeout</p>
    <h3>Guru Mediation:</h3>
    <p>Details: cache-hnd18725-HND 1550613606 165478686</p>
    <hr>
    <p>Varnish cache server</p>
  </body>
</html>

https://status.github.com says "Everything is operating normally.", not sure if github stops supporting raw.github.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.