forked from cea-hpc/clustershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 1021 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: python
python:
- '2.6'
- '2.7'
- '3.4'
- '3.5'
- '3.6'
install:
- pip install coverage
- pip install .
before_script:
# Allow us to SSH passwordless to localhost
- ssh-keygen -f ~/.ssh/id_rsa -N ""
- cp ~/.ssh/{id_rsa.pub,authorized_keys}
# Avoid ssh "known hosts" warnings
- printf '%s\n %s\n %s\n' 'Host *' 'StrictHostKeyChecking no' 'LogLevel ERROR' >> ~/.ssh/config
# Activate virtualenv when sshing to localhost to enable gateway tests
- sed -i "1isource $VIRTUAL_ENV/bin/activate" ~/.bashrc
# WorkerPdsh
- sudo apt-get -y install pdsh
- sudo sh -c 'echo ssh > /etc/pdsh/rcmd_default'
script:
- nosetests -v --all-modules --with-coverage --cover-tests --cover-erase --cover-package=ClusterShell tests
notifications:
email:
on_success: never
on_failure: always
slack:
secure: R9Hwy5oshH4zIjl03WjaFiUGTvh6A7bfU/RvMjTfofwC9o7Jc5cCC6trr7DK/ryq+LwKInhnuIEFFFWkODw7wk60bJqGrotG7Dfvx+6/GbKEgoM78VEqWPR4ylUMfYLUh3qhGxAd40whxE4RUpQ0x8OdsRxZqT/ZVfzsq+DVtQo=