Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 03dcd96

Browse files
committed
fix travis, upgrade pip, add compile & functional tests
1 parent 450fcb4 commit 03dcd96

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
language: python
22
python:
33
- "2.7"
4+
install:
5+
- pip install --upgrade pip
6+
- pip --version
7+
- pip install -r requirements.txt
8+
script:
9+
# Temp symlink so we can test if it compiles
10+
- ln -s ansible-shell ansible-shell.py && python -m compileall ansible-shell.py
11+
- rm -f ansible-shell.py ansible-shell.pyc
12+
13+
# Test simple exec
14+
- echo 'date' | ./ansible-shell -i tests/localhost
15+
16+
# Test roundtrip
17+
# (backslash prevents 'hostname' from referring to the ansible module 'hostname:')
18+
- echo '\hostname' | ./ansible-shell -i tests/localhost | fgrep $(hostname)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ansible >= 1.9

tests/localhost

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost ansible_connection=local

0 commit comments

Comments
 (0)