Fix travis sudo rights

This commit is contained in:
cytopia 2016-12-25 14:58:55 +01:00
parent a161e536a7
commit 133680c19c
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 5 additions and 15 deletions

View File

@ -222,18 +222,6 @@ devilbox_start() {
enable_docker_postgres "${_pysql}"
enable_docker_php "${_php}"
# Stop existing dockers
cd "${DEVILBOX_PATH}" || exit 1
docker-compose down || true
docker-compose stop || true
docker-compose kill || true
docker-compose rm -f || true
# Delete existing data dirs
rm -rf "$( get_default_mount_httpd )"
rm -rf "$( get_default_mount_mysql )"
rm -rf "$( get_default_mount_postgres )"
# Run
docker-compose up -d
@ -259,7 +247,7 @@ devilbox_stop() {
docker-compose rm -f || true
# Delete existing data dirs
rm -rf "$( get_default_mount_httpd )"
rm -rf "$( get_default_mount_mysql )"
rm -rf "$( get_default_mount_postgres )"
sudo rm -rf "$( get_default_mount_httpd )"
sudo rm -rf "$( get_default_mount_mysql )"
sudo rm -rf "$( get_default_mount_postgres )"
}

View File

@ -1,4 +1,5 @@
language: python
sudo: required
python:
- 2.7
@ -24,6 +25,7 @@ before_install:
# List versions
- docker version
- docker-compose version
- whoami
###
### Install