From 473cdd4cc8f417684a98e8a5861c7cb59f5893ff Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Tue, 24 Oct 2017 15:30:03 +0200 Subject: [PATCH] Ok CI --- .travis.yml | 34 ++++++++++++++++++++++++++++++++++ build.sh | 3 +++ travis.yml | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 .travis.yml create mode 100755 build.sh create mode 100644 travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3ea7484 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: emacs-lisp +sudo: false +cache: + - directories: + # Cache stable Emacs binaries (saves 1min per job) + - "$HOME/emacs/" +# Allow Emacs snapshot builds to fail and don’t wait for these as they can take +# a looooong time +matrix: + fast_finish: true + allow_failures: + - env: EMACS_VERSION=snapshot +env: + - EMACS_VERSION=24.3 + - EMACS_VERSION=24.5 + - EMACS_VERSION=25.1 + - EMACS_VERSION=25.2 + - EMACS_VERSION=snapshot +before_install: + # Configure $PATH: Executables are installed to $HOME/bin + - export PATH="$HOME/bin:$PATH" + # Download the makefile to emacs-travis.mk + - wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk' + # Install Emacs (according to $EMACS_VERSION) and Cask + - make -f emacs-travis.mk install_emacs + - make -f emacs-travis.mk install_cask + # Install Texinfo, if you need to build info manuals for your project + - make -f emacs-travis.mk install_texinfo +install: + # Install your dependencies + - cask install +script: + # Run your tests + - sh ./build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d50c00b --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh +emacs --batch --eval "(progn (package-initialize) (package-refresh-contents) (package-install 'org))" +emacs Lineare_Algebra.org --batch -f org-html-export-to-html --kill diff --git a/travis.yml b/travis.yml new file mode 100644 index 0000000..3ea7484 --- /dev/null +++ b/travis.yml @@ -0,0 +1,34 @@ +language: emacs-lisp +sudo: false +cache: + - directories: + # Cache stable Emacs binaries (saves 1min per job) + - "$HOME/emacs/" +# Allow Emacs snapshot builds to fail and don’t wait for these as they can take +# a looooong time +matrix: + fast_finish: true + allow_failures: + - env: EMACS_VERSION=snapshot +env: + - EMACS_VERSION=24.3 + - EMACS_VERSION=24.5 + - EMACS_VERSION=25.1 + - EMACS_VERSION=25.2 + - EMACS_VERSION=snapshot +before_install: + # Configure $PATH: Executables are installed to $HOME/bin + - export PATH="$HOME/bin:$PATH" + # Download the makefile to emacs-travis.mk + - wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk' + # Install Emacs (according to $EMACS_VERSION) and Cask + - make -f emacs-travis.mk install_emacs + - make -f emacs-travis.mk install_cask + # Install Texinfo, if you need to build info manuals for your project + - make -f emacs-travis.mk install_texinfo +install: + # Install your dependencies + - cask install +script: + # Run your tests + - sh ./build.sh