mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
Removed old travis config.
This commit is contained in:
parent
eafcbfc92c
commit
f1fd42ef07
33
.travis.yml
33
.travis.yml
|
@ -1,33 +1,12 @@
|
||||||
|
sudo: required
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
env:
|
services:
|
||||||
global:
|
- docker
|
||||||
- "HOST_IP=$(/sbin/ifconfig venet0: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
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get -qqy update
|
# Must put something here, or travis would ask us for requirments.txt
|
||||||
- sudo apt-get -qqy install lxc lxc-docker-1.3.2 slirp
|
- echo "Nothing to install"
|
||||||
- sudo sudo usermod -aG docker "$USER"
|
|
||||||
- git clone git://github.com/cptactionhank/sekexe
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- "sekexe/run '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"
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- docker version
|
- cd base && docker build -t seafile/base .
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
recipients:
|
|
||||||
- linshuai2012@gmail.com
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue