From 56b9c3bccd00de530661943e1f7027c495a672a2 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Mon, 20 Mar 2017 15:09:49 -0700 Subject: Try building for both pass 1.7 and git master --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 4122f71..6a6070e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,10 @@ dist: trusty language: bash +env: + - PASS_VERSION=1.7 + - PASS_VERSION=master + addons: apt: sources: @@ -12,9 +16,9 @@ addons: - shellcheck before_script: - - wget https://git.zx2c4.com/password-store/snapshot/password-store-1.7.tar.xz - - tar -xvf password-store-1.7.tar.xz - - ln -s password-store-1.7/src/password-store.sh pass + - wget https://git.zx2c4.com/password-store/snapshot/password-store-$PASS_VERSION.tar.xz + - tar -xvf password-store-$PASS_VERSION.tar.xz + - ln -s password-store-$PASS_VERSION/src/password-store.sh pass - export PATH=$PATH:. - export TEST_OPTS="-v" -- cgit v1.2.3 From 10daa413b569eaac96c9dfe5ddefcf484afe547d Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Mon, 20 Mar 2017 15:40:51 -0700 Subject: Throttle Travis notifications --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 6a6070e..3fa7d7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,3 +27,10 @@ install: true script: - make lint - cd test && make all + +notifications: + email: + recipients: + - tadfisher@gmail.com + on_success: never + on_failure: always -- cgit v1.2.3 From 512e03c2c5dd96cd9bb90650d259a597b65fccd0 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Sat, 15 Apr 2017 10:14:19 -0700 Subject: Update stable pass version --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 3fa7d7c..d467dbf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ dist: trusty language: bash env: - - PASS_VERSION=1.7 + - PASS_VERSION=1.7.1 - PASS_VERSION=master addons: -- cgit v1.2.3 From fd083fab36330f54260034b5bbe6ce1d9ee44b51 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Sun, 21 Jan 2018 18:40:02 -0800 Subject: Fix Travis (#47) * Install shellcheck manually * Use `read` instead of built-in glob splitting --- .travis.yml | 15 ++++++++++++--- otp.bash | 3 ++- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d467dbf..d548c3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ dist: trusty +sudo: false language: bash @@ -8,22 +9,30 @@ env: addons: apt: - sources: - - debian-sid packages: + - cabal-install - expect + - ghc - oathtool - - shellcheck before_script: - wget https://git.zx2c4.com/password-store/snapshot/password-store-$PASS_VERSION.tar.xz - tar -xvf password-store-$PASS_VERSION.tar.xz - ln -s password-store-$PASS_VERSION/src/password-store.sh pass + - if [ ! -f "${HOME}/.cabal/bin/shellcheck" ]; then cabal update; cabal install ShellCheck; fi + - ln -s "${HOME}/.cabal/bin/shellcheck" shellcheck - export PATH=$PATH:. - export TEST_OPTS="-v" install: true +before_cache: + - rm $HOME/.cabal/logs/build.log + +cache: + directories: + - $HOME/.cabal + script: - make lint - cd test && make all diff --git a/otp.bash b/otp.bash index 16d0ef4..7d42f66 100755 --- a/otp.bash +++ b/otp.bash @@ -59,7 +59,8 @@ otp_parse_uri() { [[ -z $otp_accountname ]] && die "Invalid key URI (missing accountname): $otp_uri" local p=${BASH_REMATCH[7]} - local IFS=\&; local params=(${p[@]}); unset IFS + local params + local IFS=\&; read -r -a params <<< "$p"; unset IFS pattern='^(.+)=(.+)$' for param in "${params[@]}"; do -- cgit v1.2.3