Skip to content

Commit

Permalink
feat: require pygments to be present at build time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Simpson committed Aug 28, 2020
1 parent 299de24 commit eb94797
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
@@ -1,13 +1,17 @@
language: lisp
sudo: required
language: python

python:
- 3.6

dist: xenial

os:
- linux
- osx

install:
- ./ci/install.sh
- pip install -r requirements.txt

script:
- make cycle
Expand All @@ -17,7 +21,7 @@ before_deploy:

deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
token: $GITHUB_OAUTH_TOKEN
file: cycle-$TRAVIS_OS_NAME
skip_cleanup: true
on:
Expand Down
8 changes: 1 addition & 7 deletions ci/install.sh
@@ -1,13 +1,7 @@
#!/bin/sh

if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt update -qy;
sudo apt install -qy curl zlib1g-dev sbcl build-essential git;
git clone --depth 1 -b sbcl-2.0.7 git://git.code.sf.net/p/sbcl/sbcl /tmp/sbcl;
cd /tmp/sbcl || exit;
sh make.sh --with-sb-core-compression;
sudo sh install.sh;
sudo apt remove sbcl;
. ./ci/linux.sh
fi

if [ "$TRAVIS_OS_NAME" = "osx" ]; then
Expand Down
9 changes: 9 additions & 0 deletions ci/linux.sh
@@ -0,0 +1,9 @@
#!/bin/sh

sudo apt update -qy;
sudo apt install -qy curl python3 zlib1g-dev sbcl build-essential git;
git clone --depth 1 -b sbcl-2.0.7 git://git.code.sf.net/p/sbcl/sbcl /tmp/sbcl;
cd /tmp/sbcl || exit;
sh make.sh --with-sb-core-compression;
sudo sh install.sh;
sudo apt remove -yq sbcl;
2 changes: 1 addition & 1 deletion cycle.asd
Expand Up @@ -4,7 +4,7 @@
:description "A opinionated static site builder."
:author "Adam Simpson <adam@adamsimpson.net>"
:license "GNU GPLv3"
:version "0.2.10"
:version "0.2.11"
:serial t
:depends-on (
:local-time
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
@@ -0,0 +1 @@
Pygments==2.3.1

0 comments on commit eb94797

Please sign in to comment.