-
Notifications
You must be signed in to change notification settings - Fork 49
/
.travis.yml
36 lines (36 loc) · 930 Bytes
/
.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
sudo: required
dist: trusty
language: php
services:
- mysql
php:
- "7.1"
before_install:
- sudo rm -rf ~/.nvm
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- sudo apt-get install -y nodejs build-essential
install:
- .travis/frontend-install.sh
- .travis/backend-install.sh
before_script:
- phpenv config-rm xdebug.ini
- phpenv config-add .travis/data/phpconfig.ini
- mysql -e 'CREATE DATABASE pdnstest;'
- .travis/backend-start-server.sh > /dev/null 2>&1 &
script:
- .travis/frontend-lint.sh
- .travis/frontend-build.sh
- .travis/backend-lint.sh
- .travis/backend-test.sh
- .travis/build-package.sh
deploy:
- provider: script
script: .travis/deploy-snapshot.sh
skip_cleanup: true
on:
branch: master
- provider: script
script: .travis/deploy-release.sh
skip_cleanup: true
on:
tags: true