forked from orangehrm/orangehrm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (46 loc) · 1.22 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
language: php
php:
- '7.1'
sudo: required
dist: trusty
branches:
only:
- master
- develop
env:
global:
- TAGDEV=develop
- TAGMASTER=master
services:
- mysql
- docker
before_install:
- sudo chmod 777 -R travis-config-files
- ./travis-config-files/test/before_install.sh
before_script: ./travis-config-files/test/before_script.sh
after_failure: ./travis-config-files/test/after_failure.sh
install: ./travis-config-files/test/install.sh
notifications:
email: true
jobs:
include:
- stage: test
script: ./travis-config-files/test/script.sh
after_script: ./travis-config-files/test/after_script.sh
- stage: deploy
env:
before_install: skip
install: skip
before_script:
- sudo chmod 777 -R travis-config-files
- ./travis-config-files/docker/before_script.sh
script: ./travis-config-files/docker/script.sh
after_script: ./travis-config-files/docker/after_script.sh
- stage: deploy
env:
before_install: skip
install: skip
before_script:
- sudo chmod 777 -R travis-config-files
- ./travis-config-files/heroku/before_script.sh
script: ./travis-config-files/heroku/script.sh