forked from iracooke/protk-galaxytools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml.broken
60 lines (47 loc) · 2.21 KB
/
.travis.yml.broken
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This is a special configuration file to run tests on Travis-CI via
# GitHub notifications when changes are committed.
#
# See http://travis-ci.org/ for details
# This file is heavily inspired by Peter Cock's efforts. See more details at
# http://blastedbio.blogspot.com/2013/09/using-travis-ci-for-testing-galaxy-tools.html
# We need Python 2.6 or 2.7 to run Galaxy but many Galaxy tools also need Java
# to run the simplest way to get that installed is to just start with "java".
# (which will still have a system python installed).
# This is an attempt to run tests for protk-tools by running them in a docker container
#
# To get docker setup on a travis build we copied the travis yaml from here
#
# https://github.com/rocker-org/rocker/blob/56cb59cc262e9d2c02f9e11cfacab65f0b659c5f/.travis.yml
#
language: java
env:
global:
- "HOST_IP=$(/sbin/ifconfig eth0:0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}')"
- DOCKER_HOST=tcp://$HOST_IP:2375
- DOCKER_PORT_RANGE=2400:2500
- SLIRP_PORTS=$(seq 2375 2500)
before_install:
- sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
- sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
- echo exit 101 | sudo tee /usr/sbin/policy-rc.d
- sudo chmod +x /usr/sbin/policy-rc.d
- sudo apt-get install -y python-virtualenv
- virtualenv planemo-venv
- source planemo-venv/bin/activate
- pip install planemo
- planemo travis_before_install
- source ${TRAVIS_BUILD_DIR}/.travis/env.sh # source environment created by planemo
install:
- sudo apt-get -qqy update
- sudo apt-get -qqy install lxc lxc-docker-1.4.1 slirp
- sudo sudo usermod -aG docker "$USER"
- git clone git://github.com/cptactionhank/sekexe
before_script:
- "VERBOSE=true sekexe/run 'export DOCKER_CERT_PATH=/var/lib/docker && mount -t tmpfs -o size=8g tmpfs /var/lib/docker && docker -d -H tcp://0.0.0.0:2375' &"
- "while ! docker info &> /dev/null ; do sleep 1; done"
- docker pull iracooke/protk-1.4.1
script:
- docker version
- docker run iracooke/protk-1.4.1 echo "Working"
- docker run iracooke/protk-1.4.1 tandem_search.rb
# - planemo test --install_galaxy --job_config_file .travis.job_conf.xml xtandem/