This repository has been archived by the owner on Mar 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.87 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
sudo: required
addons:
artifacts:
# ...
paths:
- $(git ls-files -o | grep travis_artifacts | tr "\n" ":")
language: php
php:
- 7.0
env:
DOCKER_COMPOSE_VERSION: 1.8.1
services:
- docker
before_install:
# Update docker engine for compose v2 support.
- sudo apt-get clean
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker --version
# Disable xdebug.
- phpenv config-rm xdebug.ini
# Install Drupal.
- composer global require "hirak/prestissimo:^0.3"
- composer install --prefer-dist --no-interaction
# Update the docker-compose binary for compose v2 support.
- sudo rm /usr/local/bin/docker-compose || true
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
# Build out the Drupal infrastructure.
- docker-compose -f docker-compose-ci.yml up -d
# make build can be avoided if leveraging Docker Hub.
# - make build
- docker ps -a
- sleep 10
script:
- make drupal_install
- sudo make test
notifications:
slack:
secure: Nh7PrVv91GdPaM33P6HH1aKEOHzglbjsm7M+y6cvagnuio0muoURvktf4m9TUGe3veewip2FxtSJxPIlsGQ8lFjx/T2ckw6S8NNPssA7aljQwqusxs2t1S8MARtmRtzMNtBasRBERKtn0/45v/GMhjp0RufJP+jMuJRlv2afbtgMjbsjJZs7w2fBeyrSr9dEDpYcuG1zMx+qOihsQ6lLq32dkqMLQeSZ4qTngcwPmyMLrB+7dnCLx4wi1eKV1kvI20W0XE92tP7LkzR8Pkdwztu10eIVQ0XDGGXxr7CdncI6+l5PP/nVV2KldYPme0QDDJeE8erM5nHN58xov1v+hO4nZiCfkcQ7Er8KbEqPjs9kAGy1oKhD2Wdyb0b/A+l4HImDe+MyOH+fiSTmNSmtgq6s1fbauNb+BJIeCSFesDk3Dnozt746JesmUM/fObmN0XqV4dNycNG7F1SeNYe8XKhOfHYbnemZWjcvbzhv5oWH9WEaWxchkto8T4YXX72JBj1KAQTHIO5ehfUevJd9CY/BZwvnj9nHtrdxxjuXIcUjTzkeOasD8FChGqp0Lc9DQS8V1N5fDXdz3uTbee0LxCY27sRXpc02PNWkhPxDhqOxJJtg6ebm5O+GHZDs4J9wCQzfc4SQz+QG5mg9Es8X+1tVydLoR3QM6yiQiUf0a04=