Skip to content

Commit df4c1d8

Browse files
committed
Travis CI: config update
- removed support for Python 2.6 - propagate TRAVIS* environment variables over ssh Change-Id: I490572d8267ce7a980390c636159b9b0f38fd709
1 parent a3008c5 commit df4c1d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: python
22
python:
3-
- '2.6'
43
- '2.7'
54
- '3.4'
65
- '3.5'
@@ -14,6 +13,10 @@ before_script:
1413
- cp ~/.ssh/{id_rsa.pub,authorized_keys}
1514
# Avoid ssh "known hosts" warnings
1615
- printf '%s\n %s\n %s\n' 'Host *' 'StrictHostKeyChecking no' 'LogLevel ERROR' >> ~/.ssh/config
16+
# ssh: propagate TRAVIS* environment variables
17+
- printf ' %s\n' 'SendEnv TRAVIS*' >> ~/.ssh/config
18+
- sudo sh -c "echo 'AcceptEnv TRAVIS*' >> /etc/ssh/sshd_config"
19+
- sudo service ssh restart
1720
# Activate virtualenv when sshing to localhost to enable gateway tests
1821
- sed -i "1isource $VIRTUAL_ENV/bin/activate" ~/.bashrc
1922
# WorkerPdsh

0 commit comments

Comments
 (0)