forked from hanhan1978/docker-laravel54-skelton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 1.49 KB
/
.travis.yml
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
sudo: required
services:
- docker
cache:
directories:
- /home/travis/docker/
env:
global:
- DOCKER_CACHE_FILE=/home/travis/docker/cache.tar.gz
- DOCKER_IMAGE_NAME=dockerlaravel54skelton_laravel
before_install:
- ls -l ${DOCKER_CACHE_FILE}
- if [ -f ${DOCKER_CACHE_FILE} ]; then gunzip -c ${DOCKER_CACHE_FILE} | docker load; fi
- docker version
- docker-compose -f docker-compose.yml up -d
script:
- docker-compose version
- docker-compose -f docker-compose.yml run laravel ./run_test.sh
- if [[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_PULL_REQUEST} == "false" ]]; then mkdir -p $(dirname ${DOCKER_CACHE_FILE}) ; docker save $(docker history -q ${DOCKER_IMAGE_NAME} | grep -v '<missing>') | gzip > ${DOCKER_CACHE_FILE}; fi
notifications:
slack:
secure: es+wev0q7eQzBT/fIlAHFKxVZhH/SKEaSEkuu8GdQmt6WaXeB/vbKa3cvEO5WVJ+h5Y/Az0hPmLratVPKR9KAVhjvqWJYaAb+XWqrUcnpIhh6eyVObFSSFSnOBTlh0QQ9b6lXBm+kQH3GJtDIil/LpukYWwP2fZjtTi71GwOIzAiocjF01p52yvSukp8JZUmtCsdJ3K3ERCtdmkxwfYPbNr3VGAEXe9lOWBbuR8suu83/A26qMTXy1DcHaF0Bghu0uzpPoou6ZoRtOMekqnkajK6cpQfq7r9vFY/h1Kg7LjeuaznjldsKMjVwaHgUeippEFO0mrW2idiNO/oCiv35pQIH5mryIHBWLUCKttRRACZEjO9SZVZpqh7MkhC1a2diwRI47XNMI3htCfFibCLi7SqZFMzYk8OjJ5EGCxIwWuRa3K1zBCOT/tNsWIXjEfJ5tV4BJeVw/oMbVfWs1Vrti4e0+l/SVEkTkCwHqvhMx/UFPQKp5p2JgRFOGwfH+d4SePM4eIbh/kfYkdtdbuwIbV8vApUjXFG3MtHj9MpbVbw6nrgs/1nXYzi0W74eTXQwc3pNFm8z0kMh0IKZqoZiAABWp647M83BqG3D6j7PQ7EwQRfn6hRjHyn3eCRoNMB8f0jdqH3abHWgbZ4+s1yY0ctil2Qa7VIOmbCp5f+xtk=