Skip to content

Commit 0cfc2ca

Browse files
committed
Add travis config
1 parent 10238ff commit 0cfc2ca

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: clojure
2+
lein: lein2
3+
before_script:
4+
- ssh-keygen -N "" -f ~/.ssh/id_rsa
5+
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
6+
- ssh-keygen -f ~/.ssh/clj_ssh -t rsa -C "key for test clj-ssh" -N ""
7+
- ssh-keygen -f ~/.ssh/clj_ssh_pp -t rsa -C "key for test clj-ssh" -N "clj-ssh"
8+
- echo "from=\"127.0.0.1,localhost,0.0.0.0\" $(cat ~/.ssh/clj_ssh.pub)" >> ~/.ssh/authorized_keys
9+
- echo "from=\"127.0.0.1,localhost,0.0.0.0\" $(cat ~/.ssh/clj_ssh_pp.pub)" >> ~/.ssh/authorized_keys
10+
- eval $(ssh-agent)
11+
- echo "clj-ssh" > pp
12+
- chmod +x pp
13+
- setsid ssh-add ~/.ssh/clj_ssh_pp < pp # add the key to the keychain
14+
15+
script: lein2 test
16+
# notifications:
17+
# irc: "irc.freenode.org#pallet"

0 commit comments

Comments
 (0)