Skip to content

Commit

Permalink
more testing trying to line up /tmp/ and /tmp/
Browse files Browse the repository at this point in the history
  • Loading branch information
Madison Bahmer committed Jul 7, 2016
1 parent 148b70e commit f439d1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ script:
- container_id=$(mktemp)

# Symlink travis repo download to same place as ran inside the container
- ln -s /tmp/scrapy-cluster ${PWD}
- cp -R /tmp/scrapy-cluster ${PWD}
- ls -la /tmp/
- pwd

# Run container in detached state
- sudo docker run --detach --volume="${PWD}":/tmp/scrapy-cluster:rw ${run_opts} ${distribution}-${version}:ansible "${init}" > "${container_id}"
- sudo docker run --detach --volume=/tmp:/tmp:rw ${run_opts} ${distribution}-${version}:ansible "${init}" > "${container_id}"

# Ansible syntax check.
- sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm /bin/bash -c "ansible-playbook -i /tmp/scrapy-cluster/ansible/travis.inventory /tmp/scrapy-cluster/ansible/scrapy-cluster.yml --syntax-check"
Expand All @@ -47,6 +49,8 @@ script:
# Run Online test
- sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm /bin/bash -c "source /tmp/sc/bin/activate; cd /tmp/scrapy-cluster; ./run_online_tests.sh"

- ls -la /tmp/

# Run Coveralls Report
- pip install coveralls; coveralls

Expand Down

0 comments on commit f439d1a

Please sign in to comment.