This repository has been archived by the owner on Sep 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (49 loc) · 2.41 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
51
52
53
54
55
56
57
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-engine
- docker --version
# Disable xdebug.
- phpenv config-rm xdebug.ini
# Lets set-up our helper repository with all the docker config and use correct version in composer.json.
- git clone --branch 8.x https://github.com/drupalwxt/site-skel.git
- cd site-skel
# Install Drupal Skeleton.
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
- export COMPOSER_EXIT_ON_PATCH_FAILURE=1
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- composer global require "hirak/prestissimo:^0.3"
- composer require drupalwxt/skel:dev-${BRANCH}#${TRAVIS_COMMIT}
# 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.
# make build can be avoided if leveraging Docker Hub.
- make build
- docker-compose -f docker-compose-ci.yml up -d
- docker ps -a
- sleep 10
script:
- make drupal_install
- sudo make test
notifications:
slack:
secure: TGeG/M5XJyHZWCL+cS9D7BrkoHUsyI921JHq9iUwDsejtRb8Rikc6qA9NsFZe7bP3RjW5rN71YjwqMmE4UDCAeFQexxtmeWlO2DcwnvwRB8pMwxVv+24tZpE98PsWtiPhKaVKSFqsR5NyaMN+/VfTdVCnNJAe8GyvmI4F0IE/gFxkbKwUJXu5juLzg8C7g1RzAeod5CkPBvs5bA4NMLeJDsfghWG1uhAD/OrXHSzawZQEm4SGQM4b2njDD5LjqOsZsZpKRWwtCHWbc5di8l+RyCbus/1sZKdLztKiCjVwDhc9G1W+ZHJqDwXeGvX+p4hqHK0gEMlJiVlfTxi600uRzlNlIqZklkc3EMQFZwEP7H2v1cbGCdkF4rKuv/PFI4sjvgu3EEymtHu59PKG5B1b0+2k3dTk8bIuYTF29Okb9Z2tyPLUPZ+KvtI5fzbwuZzv4wcCuV8rEUx7yZ6t8k212sylMMp3MoDraI1vTkLpTsuiwCjHk6SqOVXLn67cIWN+fcuCxWLrraK4cOStNETAjE8QydrlFwe69ulpZrbdZaWIheXI/X94+AN4yAWv9Icybn2XwG8PIrq5dKfGzsJ9B9ewINV5Oq9uXePPQkOe7f7ZplVbCbllafMjXj2WBw/H1eeThJAY35hU/4IOpIz2A4nXZQaRAEVGgV6m0Fc8+w=