From 8da8d31f4b8bbf7b6fe3873337387043a0d1c36e Mon Sep 17 00:00:00 2001 From: Yen-Chin Lee Date: Wed, 11 Sep 2019 11:11:19 +0800 Subject: [PATCH 1/6] Add tracis-ci support pangu-spacing can work on emacs 24.1 or above, add travis-ci to help verify every PRs worked fine. Signed-off-by: Yen-Chin Lee --- .travis.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f75a67c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +language: ruby + +cache: + directories: + - $HOME/.evm + +before_install: + - (cd $HOME/.evm && git pull) || git clone https://github.com/rejeep/evm.git $HOME/.evm + - export PATH=$HOME/.evm/bin:$PATH + - evm config path /tmp + - evm install $EVM_EMACS --use --skip + - export PATH="$HOME/.cask/bin:$PATH" + - curl -fsSkL https://raw.github.com/cask/cask/master/go | python + +env: + - EVM_EMACS=emacs-24.1-travis + - EVM_EMACS=emacs-24.2-travis + - EVM_EMACS=emacs-24.3-travis + - EVM_EMACS=emacs-24.4-travis + - EVM_EMACS=emacs-24.5-travis + - EVM_EMACS=emacs-25.1-travis + - EVM_EMACS=emacs-25.2-travis + - EVM_EMACS=emacs-25.3-travis + - EVM_EMACS=emacs-26.1-travis + - EVM_EMACS=emacs-26.2-travis + - EVM_EMACS=emacs-git-snapshot-travis + - EVM_EMACS=remacs-git-snapshot-travis + +matrix: + allow_failures: + - env: EVM_EMACS=emacs-git-snapshot-travis + - env: EVM_EMACS=remacs-git-snapshot-travis + +script: + - emacs --version + - make clean + - make + - make test + +# Local Variables: +# indent-tabs-mode: nil +# coding: utf-8 +# End: From c6157af5eca2879ecd434d630a4e45b7bdf4ef71 Mon Sep 17 00:00:00 2001 From: Yen-Chin Lee Date: Thu, 19 Sep 2019 12:09:49 +0800 Subject: [PATCH 2/6] travis: use nix-emacs-ci instead of evm Signed-off-by: Yen-Chin Lee --- .travis.yml | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index f75a67c..c839398 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,35 +1,36 @@ -language: ruby +# +# Use nix-emacs-ci for travis CI +# URL: https://github.com/purcell/nix-emacs-ci +# -cache: - directories: - - $HOME/.evm +language: nix + +os: + - linux + - osx before_install: - - (cd $HOME/.evm && git pull) || git clone https://github.com/rejeep/evm.git $HOME/.evm - - export PATH=$HOME/.evm/bin:$PATH - - evm config path /tmp - - evm install $EVM_EMACS --use --skip - export PATH="$HOME/.cask/bin:$PATH" - curl -fsSkL https://raw.github.com/cask/cask/master/go | python env: - - EVM_EMACS=emacs-24.1-travis - - EVM_EMACS=emacs-24.2-travis - - EVM_EMACS=emacs-24.3-travis - - EVM_EMACS=emacs-24.4-travis - - EVM_EMACS=emacs-24.5-travis - - EVM_EMACS=emacs-25.1-travis - - EVM_EMACS=emacs-25.2-travis - - EVM_EMACS=emacs-25.3-travis - - EVM_EMACS=emacs-26.1-travis - - EVM_EMACS=emacs-26.2-travis - - EVM_EMACS=emacs-git-snapshot-travis - - EVM_EMACS=remacs-git-snapshot-travis + - EMACS_CI=emacs-24-4 + - EMACS_CI=emacs-24-5 + - EMACS_CI=emacs-25-1 + - EMACS_CI=emacs-25-2 + - EMACS_CI=emacs-25-3 + - EMACS_CI=emacs-26-1 + - EMACS_CI=emacs-26-2 + - EMACS_CI=emacs-26-3 + - EMACS_CI=emacs-snapshot matrix: allow_failures: - - env: EVM_EMACS=emacs-git-snapshot-travis - - env: EVM_EMACS=remacs-git-snapshot-travis + - env: EMACS_CI=emacs-snapshot + +install: + # The default "emacs" executable on the $PATH will now be the version named by $EMACS_CI + - bash <(curl https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install) script: - emacs --version From c97d3cc3d85ba3a400fbad073b6e8b0a6ee4bbee Mon Sep 17 00:00:00 2001 From: Yen-Chin Lee Date: Thu, 19 Sep 2019 12:22:19 +0800 Subject: [PATCH 3/6] travis: fix cask in osx Signed-off-by: Yen-Chin Lee --- .travis.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index c839398..32a6ca5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,10 +9,6 @@ os: - linux - osx -before_install: - - export PATH="$HOME/.cask/bin:$PATH" - - curl -fsSkL https://raw.github.com/cask/cask/master/go | python - env: - EMACS_CI=emacs-24-4 - EMACS_CI=emacs-24-5 @@ -28,9 +24,11 @@ matrix: allow_failures: - env: EMACS_CI=emacs-snapshot +# The default "emacs" executable on the $PATH will now be the version named by $EMACS_CI install: - # The default "emacs" executable on the $PATH will now be the version named by $EMACS_CI - bash <(curl https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install) + - export PATH="$HOME/.cask/bin:$PATH" + - curl -fsSkL https://raw.github.com/cask/cask/master/go | python script: - emacs --version From f427aa80dddd124c468ddb017b7a32c72b4dd682 Mon Sep 17 00:00:00 2001 From: Yen-Chin Lee Date: Thu, 19 Sep 2019 12:32:51 +0800 Subject: [PATCH 4/6] travis: add emacs-24-2 and emacs-24-3 Signed-off-by: Yen-Chin Lee --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 32a6ca5..767c78a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ os: - osx env: + - EMACS_CI=emacs-24-2 + - EMACS_CI=emacs-24-3 - EMACS_CI=emacs-24-4 - EMACS_CI=emacs-24-5 - EMACS_CI=emacs-25-1 From 64700547fd02a238a5027b33635c92b362c5085a Mon Sep 17 00:00:00 2001 From: Yen-Chin Lee Date: Thu, 19 Sep 2019 12:42:35 +0800 Subject: [PATCH 5/6] travis: ignore emacs-24-2 and emacs-24-3 failure emacs-24-2 and emacs-24-3 build failed on travis-ci, we should fix it later. Signed-off-by: Yen-Chin Lee --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 767c78a..744587a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,8 +22,12 @@ env: - EMACS_CI=emacs-26-3 - EMACS_CI=emacs-snapshot +# emacs-24-2 and emacs-24-3 may failure on test +# just ignore it now. matrix: allow_failures: + - env: EMACS_CI=emacs-24-2 + - env: EMACS_CI=emacs-24-3 - env: EMACS_CI=emacs-snapshot # The default "emacs" executable on the $PATH will now be the version named by $EMACS_CI From 956a36f9478e3f63814d0063d0ed50ae63d07444 Mon Sep 17 00:00:00 2001 From: Yen-Chin Lee Date: Thu, 19 Sep 2019 13:02:05 +0800 Subject: [PATCH 6/6] travis: only testing on linux Since pangu-spacing is based on emacs-lisp, it's no need to test on both linux and osx. Signed-off-by: Yen-Chin Lee --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 744587a..f4ad7c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ language: nix os: - linux - - osx +# - osx env: - EMACS_CI=emacs-24-2