This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
81 lines (69 loc) · 2.02 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: php
sudo: required
php:
- 7.1
git:
# Parsing composer metadata does not work with shallow clones.
depth: false
env:
global:
- DOCKER_COMPOSE_VERSION=1.22.0
- COMPOSER_MEMORY_LIMIT=-1
addons:
apt:
packages:
- docker-ce
# travis will test and deploy only the branches and tags as show below
# right now travis does not make a difference between branches and tags
# tags starting with hotfix and tags in the form of "v1.0.0" will be tested
branches:
only:
- master
- develop
- testing
- 8.x-1.x
- 8.x-2.x
- /^hotfix/
- /^v[0-9]+\.[0-9]+\.[0-9]+/
- /^release/
- /^version/
mysql:
database: drupal
username: root
encoding: utf8
# Cache Composer, NPM & Drush directories.
cache:
directories:
- $HOME/.cache/composer
- $HOME/.npm
- $HOME/.drush/cache
# Setup the environment.
before_install:
- composer self-update --rollback
# Add in recent upstream changes before testing.
- git merge origin/8.x-1.x
# Be sure no mails are going out by disabling sendmail.
- echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
# Upgrade docker compose.
- sudo rm /usr/local/bin/docker-compose
- 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
# Install lupus-localdev.
- |
git clone https://github.com/drunomics/lupus-localdev.git --branch=2.x ~/.lupus-localdev
source ~/.lupus-localdev/bashrc
localdev-dcp up -d traefik
install:
# For PRs, ensure there is a valid branch.
- ENSURE_VALID_BRANCH=1 source scripts/util/get-branch.sh
- ./scripts/create-project.sh
- ./scripts/run-server.sh
- ./scripts/init-project.sh
script:
- ./scripts/run-tests.sh
# Ensure replication is still working with the current pool instance.
- ./scripts/launch-satellite.sh
- ../contentpool-client/scripts/run-tests.sh
after_success:
- echo "SUCCESS!"