forked from epfl-si/jahia2wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (26 loc) · 1.05 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
# (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/os-wp-httpd
- docker pull epflidevelop/os-wp-mgmt
- cp .env.sample .env
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/