forked from chialab/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (54 loc) · 1.3 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
os: 'linux'
dist: 'focal'
language: 'shell'
services:
- 'docker'
env:
- 'VERSION=latest'
- 'VERSION=5.4'
- 'VERSION=5.4-apache'
- 'VERSION=5.4-fpm'
- 'VERSION=5.5'
- 'VERSION=5.5-apache'
- 'VERSION=5.5-fpm'
- 'VERSION=5.6'
- 'VERSION=5.6-apache'
- 'VERSION=5.6-fpm'
- 'VERSION=7.0'
- 'VERSION=7.0-apache'
- 'VERSION=7.0-fpm'
- 'VERSION=7.1'
- 'VERSION=7.1-apache'
- 'VERSION=7.1-fpm'
- 'VERSION=7.2'
- 'VERSION=7.2-apache'
- 'VERSION=7.2-fpm'
- 'VERSION=7.3'
- 'VERSION=7.3-apache'
- 'VERSION=7.3-fpm'
- 'VERSION=7.4'
- 'VERSION=7.4-apache'
- 'VERSION=7.4-fpm'
- 'VERSION=8.0'
- 'VERSION=8.0-apache'
- 'VERSION=8.0-fpm'
install:
- 'travis_wait 30 make build VERSION=${VERSION}'
- '[ "$NO_DEV" = "1" ] || make -C dev build VERSION=${VERSION}'
script:
- 'make test VERSION=${VERSION}'
- '[ "$NO_DEV" = "1" ] || make -C dev test VERSION=${VERSION}'
before_deploy:
- 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin'
deploy:
- provider: 'script'
script: 'make push VERSION=${VERSION}'
on:
repo: 'chialab/docker-php'
branch: 'master'
- provider: 'script'
script: 'make -C dev push VERSION=${VERSION}'
on:
repo: 'chialab/docker-php'
branch: 'master'
condition: '"$NO_DEV" != "1"'