-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 926 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
37
38
39
language: php
php:
- '7.1'
- '7.2'
env:
- RELEASE_PREFIX="woominecraft-prerelease-b"
before_script:
- phpenv config-rm xdebug.ini
cache:
directories:
- vendor
script:
- echo "Testing build process"
- npm install -g npm gulp gulp-cli
- npm install
- gulp
jobs:
include:
- stage: phplint
if: |
branch = master OR \
branch =~ /^release\/.*$/
script:
- composer install
- composer run-script phpcs
- stage: deploy
if: branch =~ /^release\/.*$/
script:
- npm install -g npm gulp gulp-cli && npm install
- gulp && gulp build
- tar -cvzf $RELEASE_PREFIX$TRAVIS_BUILD_NUMBER.tar.gz -X build-excludes.txt woominecraft/
deploy:
provider: releases
api_key: $API_KEY
file: $RELEASE_PREFIX$TRAVIS_BUILD_NUMBER.tar.gz
skip_cleanup: true
draft: true
on:
tags: true