diff --git a/.travis.yml b/.travis.yml index 3c5efb0db..59e5e7254 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,10 @@ services: - docker before_script: - - docker-compose build - - docker-compose up -d + - docker-compose -f docker-compose.travis.yml up --build -d script: - docker-compose exec photoprism /usr/local/go/bin/go test after_script: - - docker-compose down \ No newline at end of file + - docker-compose -f docker-compose.travis.yml down \ No newline at end of file diff --git a/docker-compose.travis.yml b/docker-compose.travis.yml new file mode 100644 index 000000000..f4af7b2eb --- /dev/null +++ b/docker-compose.travis.yml @@ -0,0 +1,19 @@ +version: '3.3' + +services: + photoprism: + build: . + database: + image: mysql:latest + command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 + volumes: + - database-data:/var/lib/mysql + environment: + MYSQL_ROOT_PASSWORD: photoprism + MYSQL_USER: photoprism + MYSQL_PASSWORD: photoprism + MYSQL_DATABASE: photoprism + +volumes: + database-data: + driver: local \ No newline at end of file