-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
115 lines (106 loc) · 4.8 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
services: docker
language: shell
branches:
only:
- master
before_install:
- env | sort
- export home=$(pwd)
- export travis_dir="${home}/images/${VERSION}/php${PHP_VERSION}-${VARIANT}-${ARCHI}"
- export TAG=${VERSION}-php${PHP_VERSION}-${VARIANT}-${ARCHI}
- export VCS_REF=`git rev-parse --short HEAD`
- export BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
- export IMAGE_NAME=monogramm/docker-dolibarr:${TAG}
install:
- echo "Changing to travis test directory ($travis_dir)"
- cd "$travis_dir"
# Test container build
- travis_retry docker-compose build
before_script:
- docker images
script:
- echo "Changing to travis test directory ($travis_dir)"
- cd "$travis_dir"
# Test container run
- travis_retry docker-compose up -d && sleep 90
- docker-compose ps
- docker-compose logs "dolibarr_db"
- docker-compose ps "dolibarr_db" | grep "Up"
- docker-compose logs "dolibarr"
- docker-compose ps "dolibarr" | grep "Up"
- echo 'Wait until containers init and tests are over' && sleep 300
- docker-compose logs "sut"
- docker-compose ps "sut" | grep "Exit 0"
- docker-compose logs
# Test container restart
- docker-compose down
- travis_retry docker-compose up -d && sleep 90
- docker-compose ps
- docker-compose logs "dolibarr_db"
- docker-compose ps "dolibarr_db" | grep "Up"
- docker-compose logs "dolibarr"
- docker-compose ps "dolibarr" | grep "Up"
- echo 'Wait until containers init and tests are over' && sleep 300
- docker-compose logs "sut"
- docker-compose ps "sut" | grep "Exit 0"
- docker-compose logs
notifications:
email: false
matrix:
include:
- os: linux
# Ref: https://docs.travis-ci.com/user/reference/linux
dist: xenial
#- os: osx
# # Ref: https://docs.travis-ci.com/user/reference/osx
# osx_image: xcode11.3
allow_failures:
- env: VERSION=develop PHP_VERSION=7.2 VARIANT=fpm-alpine ARCHI=i386
- env: VERSION=develop PHP_VERSION=7.2 VARIANT=fpm-alpine ARCHI=amd64
- env: VERSION=develop PHP_VERSION=7.2 VARIANT=fpm ARCHI=i386
- env: VERSION=develop PHP_VERSION=7.2 VARIANT=fpm ARCHI=amd64
- env: VERSION=develop PHP_VERSION=7.2 VARIANT=apache ARCHI=i386
- env: VERSION=develop PHP_VERSION=7.2 VARIANT=apache ARCHI=amd64
env: # Environments
- VERSION=develop PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=i386
- VERSION=develop PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=amd64
- VERSION=develop PHP_VERSION=7.3 VARIANT=fpm ARCHI=i386
- VERSION=develop PHP_VERSION=7.3 VARIANT=fpm ARCHI=amd64
- VERSION=develop PHP_VERSION=7.3 VARIANT=apache ARCHI=i386
- VERSION=develop PHP_VERSION=7.3 VARIANT=apache ARCHI=amd64
- VERSION=11.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=i386
- VERSION=11.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=amd64
- VERSION=11.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=i386
- VERSION=11.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=amd64
- VERSION=11.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=i386
- VERSION=11.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=amd64
- VERSION=12.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=i386
- VERSION=12.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=amd64
- VERSION=12.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=i386
- VERSION=12.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=amd64
- VERSION=12.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=i386
- VERSION=12.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=amd64
- VERSION=13.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=i386
- VERSION=13.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=amd64
- VERSION=13.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=i386
- VERSION=13.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=amd64
- VERSION=13.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=i386
- VERSION=13.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=amd64
- VERSION=14.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=i386
- VERSION=14.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=amd64
- VERSION=14.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=i386
- VERSION=14.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=amd64
- VERSION=14.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=i386
- VERSION=14.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=amd64
- VERSION=15.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=i386
- VERSION=15.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=amd64
- VERSION=15.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=i386
- VERSION=15.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=amd64
- VERSION=15.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=i386
- VERSION=15.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=amd64
- VERSION=16.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=i386
- VERSION=16.0 PHP_VERSION=7.3 VARIANT=fpm-alpine ARCHI=amd64
- VERSION=16.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=i386
- VERSION=16.0 PHP_VERSION=7.3 VARIANT=fpm ARCHI=amd64
- VERSION=16.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=i386
- VERSION=16.0 PHP_VERSION=7.3 VARIANT=apache ARCHI=amd64