From: Frank Duncan Date: Sun, 19 Dec 2021 05:19:47 +0000 (-0600) Subject: Migrate from travis to candle X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=commitdiff_plain;h=5a49e356591a22a60b66a8064bf8ff7371a55075;p=wolf Migrate from travis to candle --- diff --git a/.candle b/.candle new file mode 100644 index 0000000..a69e7fd --- /dev/null +++ b/.candle @@ -0,0 +1,11 @@ +(:packages :style-checker :style-checker-test :docgen) +(:name :style-checker + :tasks + ((:name :test + :directions (style-checker-test:run-all-tests)) + (:name :checkstyle :directions + (syntax-checker:pretty-print-check-directory "src")) + (:name :docgen :directions + (docgen:pretty-print-validate-packages :syntax-checker)))) + +; vim:ft=lisp diff --git a/.gitmodules b/.gitmodules index e90c9cf..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "wiki"] - path = wiki - url = https://github.com/frankduncan/style-checker.wiki.git diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5d8ce2e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -before_install: - - wget http://frank.kank.net/travissbcl/style-checker/ef117ac/$(git rev-parse HEAD)/travissbcl - - chmod +x travissbcl - -script: - - ./travissbcl --script bin/travis.lisp diff --git a/README.md b/README.md index 209be70..37409b9 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,3 @@ If you like, you can [download it](https://github.com/frankduncan/style-checker/ * comments * multiline strings * exclude in-package check from package.lisp - -## Usage - -See the [wiki](https://github.com/frankduncan/style-checker/wiki). - -Also, see bin/travis.lisp to see how it's used in this package. diff --git a/bin/buildtravisexec.sh b/bin/buildtravisexec.sh deleted file mode 100755 index 84c870c..0000000 --- a/bin/buildtravisexec.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -e - -mkdir -p tmp/sbcl - -cwd=$PWD -( cd tmp && - tar jxf ../deps/tarpit/sbcl-1.2.6-x86-64-linux-binary.tar.bz2 && - cd sbcl-1.2.6-x86-64-linux/ && - SBCL_HOME="" INSTALL_ROOT=$cwd/tmp/sbcl/ bash install.sh ) - -mkdir -p tmp/deps/ - -( cd tmp/deps && - tar zxf ../../deps/tarpit/cl-ppcre.tar.gz && - tar zxf ../../deps/tarpit/docgen_0.1.tar.gz && - ln -s cl-ppcre-2.0.10/cl-ppcre.asd . && - ln -s docgen_0.1/docgen.asd . -) - - -SBCL_HOME="" tmp/sbcl/bin/sbcl --core tmp/sbcl/lib/sbcl/sbcl.core --no-sysinit --no-userinit \ - --eval "(require 'asdf)" \ - --eval "(asdf:initialize-source-registry '(:source-registry (:tree \"${PWD}/tmp/deps\") :IGNORE-INHERITED-CONFIGURATION))" \ - --eval "(asdf:load-system :cl-ppcre)" \ - --eval "(asdf:load-system :docgen)" \ - --eval "(push :travis *features*)" \ - --eval "(asdf:clear-output-translations)" \ - --eval '(sb-ext:save-lisp-and-die "travissbcl" :executable t)' \ - -chmod +x travissbcl -travisname=travissbcl-$(git rev-parse --short HEAD) -mv travissbcl $travisname - -echo "You should upload via the command: scp $travisname nami:/var/travis/sbcls/style-checker/" -echo "You should also set travisname in .travis.yml to $travisname" - -rm -rf tmp diff --git a/bin/travis.lisp b/bin/travis.lisp deleted file mode 100644 index d562ba3..0000000 --- a/bin/travis.lisp +++ /dev/null @@ -1,26 +0,0 @@ -(setf *compile-print* nil) -(require 'asdf) -(asdf:initialize-source-registry `(:source-registry (:tree ,(car (directory "src"))) :INHERIT-CONFIGURATION)) -(asdf:load-system :style-checker) -(asdf:load-system :style-checker-test) -#-travis (asdf:load-system :docgen) - -(format t "~%~c[1;33mRunning Tests~c[0m~%" #\Esc #\Esc) -(when (not (style-checker-test:run-all-tests)) - (format t "~c[1;31mFailed tests!~c[0m~%" #\Esc #\Esc) - (sb-ext:exit :code 1)) - -(format t "~%~c[1;33mChecking Style~c[0m~%" #\Esc #\Esc) -(when (not (syntax-checker:pretty-print-check-directory "src")) - (format t "~c[1;31mFailed style check!~c[0m~%" #\Esc #\Esc) - (sb-ext:exit :code 1)) -(format t "~c[1;32m- Style Passed!~c[0m~%" #\Esc #\Esc) - -(format t "~%~c[1;33mChecking Docs~c[0m~%" #\Esc #\Esc) -(when (not (docgen:pretty-print-validate-packages :docgen)) - (format t "~c[1;31mFailed doc check!~c[0m~%" #\Esc #\Esc) - (sb-ext:exit :code 1)) -(format t "~c[1;32m- Doc Check Passed!~c[0m~%" #\Esc #\Esc) - -(format t "~c[1;32mSuccess!~c[0m~%" #\Esc #\Esc) -(sb-ext:exit :code 0) diff --git a/deps/tarpit/cl-ppcre.tar.gz b/deps/tarpit/cl-ppcre.tar.gz deleted file mode 100644 index 67d6e15..0000000 Binary files a/deps/tarpit/cl-ppcre.tar.gz and /dev/null differ diff --git a/deps/tarpit/docgen_0.1.tar.gz b/deps/tarpit/docgen_0.1.tar.gz deleted file mode 100644 index bad2c6e..0000000 Binary files a/deps/tarpit/docgen_0.1.tar.gz and /dev/null differ diff --git a/deps/tarpit/sbcl-1.2.6-x86-64-linux-binary.tar.bz2 b/deps/tarpit/sbcl-1.2.6-x86-64-linux-binary.tar.bz2 deleted file mode 100644 index 9d09cb4..0000000 Binary files a/deps/tarpit/sbcl-1.2.6-x86-64-linux-binary.tar.bz2 and /dev/null differ diff --git a/src/main/style-checker.asd b/src/main/style-checker.asd index 29862ff..efbec3e 100644 --- a/src/main/style-checker.asd +++ b/src/main/style-checker.asd @@ -5,4 +5,4 @@ :author "Frank Duncan (frank@kank.com)" :components ((:file "package") (:file "syntax-checker")) :serial t - :depends-on #-travis (:cl-ppcre) #+travis nil) ; We don't load up systems if in travis mode + :depends-on (:cl-ppcre)) diff --git a/wiki b/wiki deleted file mode 160000 index 3e6a2ca..0000000 --- a/wiki +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3e6a2caa124f2537f8ff9ad2c53f4bbaa285cb63