This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
38 lines (31 loc) · 1.51 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
# (c) All rights reserved. ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, Switzerland, VPSI, 2017
---
sudo: required
services:
- docker
language: python
python:
- 3.5
before_install:
- docker pull epflidevelop/wp-ops-httpd
- docker pull epflidevelop/wp-ops-mgmt
- cp .env.sample .env
# We have to clone this repository because Travis will always try to build images defined by "build" entry in
# "docker-compose.yml", even if we told him to not do it. Because we have to keep "build" entries in "docker-compose.yml"
# file, we have to clone this repo before doing "make up". Furthermore, building images will help to check if everything
# is ok in images files.
- git clone https://github.com/epfl-idevelop/wp-ops.git /home/travis/build/epfl-idevelop/wp-ops
install:
- make up
# On searching containers by labels, see
# https://docs.docker.com/engine/reference/commandline/ps/#filtering
# The labels introduced by docker-compose don't seem to be documented
# anywhere, but you can list them with "docker inspect". The closest
# we have to something official would be this pull request's comment:
# https://github.com/docker/compose/pull/1356#issuecomment-99801372
- docker exec $(docker ps -q --filter "label=com.docker.compose.service=mgmt") make -C /srv/$WP_ENV/jahia2wp bootstrap-mgmt
script:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker exec --user=www-data $ci_env $(docker ps -q --filter "label=com.docker.compose.service=mgmt") make -C /srv/$WP_ENV/jahia2wp test-travis
env:
- PLUGINS_CONFIG_BASE_PATH=wordpress/tests/plugins/