Skip to content

Commit b64bf07

Browse files
committed
CI 自动打包
1 parent d2a01fa commit b64bf07

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
sudo: false
2+
3+
language: php
4+
5+
branches:
6+
only:
7+
- stable
8+
9+
cache:
10+
directories:
11+
- $HOME/.composer/cache
12+
13+
before_install:
14+
- composer self-update
15+
16+
install:
17+
- composer install --no-dev --no-interaction --ignore-platform-reqs
18+
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Core.zip .
19+
- composer require --update-no-dev --no-interaction "topthink/think-image:^1.0"
20+
- composer require --update-no-dev --no-interaction "topthink/think-migration:^1.0"
21+
- composer require --update-no-dev --no-interaction "topthink/think-captcha:^1.0"
22+
- composer require --update-no-dev --no-interaction "topthink/think-mongo:^1.0"
23+
- composer require --update-no-dev --no-interaction "topthink/think-testing:^1.0"
24+
- composer require --update-no-dev --no-interaction "topthink/think-worker:^1.0"
25+
- composer require --update-no-dev --no-interaction "topthink/think-helper:^1.0"
26+
- composer require --update-no-dev --no-interaction "topthink/think-queue:^1.0"
27+
- composer require --update-no-dev --no-interaction "topthink/think-angular:^1.0"
28+
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Full.zip .
29+
- composer require --dev --update-no-dev --no-interaction "topthink/think-testing:^1.0"
30+
31+
script:
32+
- php think unit
33+
34+
deploy:
35+
provider: releases
36+
api_key:
37+
secure: TSF6bnl2JYN72UQOORAJYL+CqIryP2gHVKt6grfveQ7d9rleAEoxlq6PWxbvTI4jZ5nrPpUcBUpWIJHNgVcs+bzLFtyh5THaLqm39uCgBbrW7M8rI26L8sBh/6nsdtGgdeQrO/cLu31QoTzbwuz1WfAVoCdCkOSZeXyT/CclH99qV6RYyQYqaD2wpRjrhA5O4fSsEkiPVuk0GaOogFlrQHx+C+lHnf6pa1KxEoN1A0UxxVfGX6K4y5g4WQDO5zT4bLeubkWOXK0G51XSvACDOZVIyLdjApaOFTwamPcD3S1tfvuxRWWvsCD5ljFvb2kSmx5BIBNwN80MzuBmrGIC27XLGOxyMerwKxB6DskNUO9PflKHDPI61DRq0FTy1fv70SFMSiAtUv9aJRT41NQh9iJJ0vC8dl+xcxrWIjU1GG6+l/ZcRqVx9V1VuGQsLKndGhja7SQ+X1slHl76fRq223sMOql7MFCd0vvvxVQ2V39CcFKao/LB1aPH3VhODDEyxwx6aXoTznvC/QPepgWsHOWQzKj9ftsgDbsNiyFlXL4cu8DWUty6rQy8zT2b4O8b1xjcwSUCsy+auEjBamzQkMJFNlZAIUrukL/NbUhQU37TAbwsFyz7X0E/u/VMle/nBCNAzgkMwAUjiHM6FqrKKBRWFbPrSIixjfjkCnrMEPw=
38+
file:
39+
- ThinkPHP_Core.zip
40+
- ThinkPHP_Full.zip
41+
skip_cleanup: true
42+
on:
43+
tags: true

0 commit comments

Comments
 (0)