Skip to content

Commit f1d45ee

Browse files
committed
travis-build.sh: import the key without passphrase
I did not believe http://www.debonair.io/post/maven-cd/ when it said you can just run "gpg --fast-import .travis/signingkey.asc". Surely, I thought, you must also give the passphrase, since when you try to use this command locally, it demands one? But I guess something is different with the Travis configuration, because the command says: gpg: key <ID>: public key "SciJava CI <scijava-ci@scijava.org>" imported gpg: key <ID>: secret key imported gpg: key <ID>: "SciJava CI <scijava-ci@scijava.org>" not changed gpg: can't open `--passphrase': No such file or directory gpg: can't open `[secure]': No such file or directory So let's try without specifying the passphrase, and see if it works.
1 parent 53ac7ba commit f1d45ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

travis-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if [ "$TRAVIS_SECURE_ENV_VARS" = true \
6060
-a -f "$keyFile" ]
6161
then
6262
echo "== Importing GPG keypair =="
63-
gpg --batch --fast-import "$keyFile" --passphrase "$GPG_PASSPHRASE"
63+
gpg --batch --fast-import "$keyFile"
6464
fi
6565

6666
# Run the build.

0 commit comments

Comments
 (0)