This repository was archived by the owner on Feb 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (35 loc) · 1.23 KB
/
.travis.yml
File metadata and controls
42 lines (35 loc) · 1.23 KB
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
branches:
only:
- master
- releases
language: c
env:
global:
- DOCKER_COMPOSE_VERSION=1.11.2
- TEST_PROJECT_IN_DIR=com/rasodu/zz-build
matrix:
- APP_ENV=local PHP_VERSION=7.1
- APP_ENV=production PHP_VERSION=7.1
- APP_ENV=local PHP_VERSION=7.0
- APP_ENV=production PHP_VERSION=7.0
- APP_ENV=local PHP_VERSION=5.6
- APP_ENV=production PHP_VERSION=5.6
sudo: required
services:
- docker
before_install:
# - sudo apt-get update
# - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
before_script:
- sudo /etc/init.d/mysql stop
- docker --version
- docker-compose --version
- if [ ${APP_ENV} = "production" ]; then sed "0,/#COMPOSE_FILE=\.\./s//COMPOSE_FILE=../" -i com/rasodu/zz-build/.env; fi
- sed "0,/DLEMPFAST_RASODU_PHPFPMLARAVEL_VERSION=7.1/s//DLEMPFAST_RASODU_PHPFPMLARAVEL_VERSION=${PHP_VERSION}/" -i com/rasodu/zz-build/.env
- make -C ${TEST_PROJECT_IN_DIR}
script:
- make -C ${TEST_PROJECT_IN_DIR} test