-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
47 lines (39 loc) · 1.26 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
language: php
dist: trusty
sudo: required
services:
- docker
matrix:
include:
-
env:
- DOCKER_PHP_VERSION="php71"
-
env:
- DOCKER_PHP_VERSION="php72"
-
env:
- DOCKER_PHP_VERSION="php73"
-
env:
- DOCKER_PHP_VERSION="php74jit"
-
env:
- DOCKER_PHP_VERSION="php8jit"
allow_failures:
-
env:
- DOCKER_PHP_VERSION="php8jit"
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
- docker build -t "dmitrybalabka/aerys-benchmark:${DOCKER_PHP_VERSION}" -f "./build/${DOCKER_PHP_VERSION}/Dockerfile" .
script:
- docker run --ulimit nofile=30000:30000 dmitrybalabka/aerys-benchmark:${DOCKER_PHP_VERSION}
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "docker-phpjit-integration" ]; then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push dmitrybalabka/aerys-benchmark;
fi