-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.travis.yml
27 lines (24 loc) · 1.23 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
services:
- docker
matrix:
include:
- env: MAGENTO_VERSION=2.3.7 DB_VERSION=5.7 TESTS=unit
- env: MAGENTO_VERSION=2.4.3-p1 DB_VERSION=8 TESTS=unit
- env: MAGENTO_VERSION=2.4.4 DB_VERSION=8 TESTS=unit
- env: MAGENTO_VERSION=2.3.7 DB_VERSION=5.7 TESTS=integration
- env: MAGENTO_VERSION=2.4.3-p1 DB_VERSION=8 TESTS=integration
- env: MAGENTO_VERSION=2.4.4 DB_VERSION=8 TESTS=integration
script:
- docker pull registry.tig.nl/tig-docker/magento:$MAGENTO_VERSION
- docker run --rm --link mysql:db --link elasticsearch:es --link ampq:ampq -v $(pwd):/code:ro -e DB_NAME=integration registry.tig.nl/tig-docker/magento:$MAGENTO_VERSION test-runner -vv -n -i $MAGENTO_VERSION -m $TESTS
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.tig.nl
- docker run --rm -d --name mysql -e MYSQL_RANDOM_ROOT_PASSWORD=true -e MYSQL_USER=integration -e MYSQL_PASSWORD=integration -e MYSQL_DATABASE=integration mysql:$DB_VERSION
- docker run --rm -d --name ampq rabbitmq:3.8
- docker run --rm -d --name elasticsearch -e "discovery.type=single-node" elasticsearch:7.9.3
after_script:
- docker stop mysql elasticsearch ampq
cache:
directories:
- node_modules
- $HOME/.composer