-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (45 loc) · 2.36 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
language: php
dist: trusty
sudo: false
php:
- 7.1
env:
global:
- secure: RbNAI1vjysv71yYfZ0G+7Nn92M57fnS5HwoYtcAfB3TtxanXpXxpKchqxEx4XtodA1+Vtt3qBGK5a9nu5PHZRioxJKgycnxpXu6zW0vTAc6qP8l9zbik6dIVHUFKB2wU8y0AE8KiLgz2TcDgMAghxw2t9MFzovVgTrjJV2mtmdBkRbg8uET++kTVQXpo510hExNq/bcpFDzF2feFnyYjH/mslhFJggo7vz1IvqJxswzE/hO4+zxFfwVNqU90H6bLysx4Sv4su1z3JftjOZzMGwyuIUh43vWdwZVv5EOAt3bsAYjmdgDEcVrFFHddll3EoI6t7lae8P8ld7NOOFuHgxoGuhSe76gKXjKanYsAxXfZkp1fwyeh2Q5H1p6bgGCxn8rJiG0P8cBKz+SiWHyfnBrss8oiYhdyaCSihfSU+1ZrJ9uIRoh3T1YkbR/h2bVYczlu3MPLL0msBPaPCD3BLgVxQBacVusIoCXJsEyss2IU+WAdT6jSPR6iwkl9u7ByOiQ1rqwToD9FyyDhRLhc5/H9WZnIeA24/LOS7sB8+b02sVadNMKmPEkUm7vdKRyFXvTe8B1c5YvrSvp82wHzXh5Q7wvFXwjbnkqc82DLaN3BrGNp8X/LQ49xpZefkip/SwMquNXWa3PTNhNoFXnF15o1G/gS/mUf8RyDdQPSyBQ=
- secure: d/vy805ALBMKu/0UWZ8MwB8UXjB6NlpNMwDPI6w6GvhhXOqi712A3smCxhsrfVtcFMXwZWOhJe8efdtfQXF3QywB6QNTkKp0ZbYEDREcQ4Br7eCPwnb9N7RFEwndcnJECTasUs55BKv1jo9Y0sUVX8vrRKtwpp3bx+hoXO8NBTJqcei90M7L0dTgLerqlMZzWwljZ35BNem8tzmPaG8+XVztLl5KPXNWXC2in+vBYllrYSCBGmQU6dF3Lw0eM/2aqSBJsgIuYPGi/toxf6o7Ylg9WHZyZkqluMZZSEtg+MzL6uwFEP6y875YwFCX5npelAZ/fKsYY7uX7StuwN42Y2cQEDaxIQwuNuzy1DUgJujYwEKUDS6f4i0YBi0o7KFcmWuBuYLR5BkUjMiiiidmNROeUrDIblF6k0WzYkoXEyyzxgtgpL1cbwiaHGxB0B+aLIttroK9yomx3MJY9MKHJWO86TcvhhtLF5VXKBETRciYOkD4zlvqIL3w0uMC1HvPNM+ZztY33lMIyxmKBj8XtVwcI0d8BmF5MdsEhHmWmNQ8ZKb2GDmEu6neo87dAJPqtEiyoBBNi0//cfyZje+GOBK1q3jMgZ7wu4nZO1K+iZj1jQoF2MKpn5uydAM+9ExjOAMNFYSvUW+wWQQJvdlxAM7GSl0z0L9RRsWQsvxRd3M=
services:
- nginx
branches:
only:
- master
cache:
apt: true
before_install:
- ls ~
before_script:
script:
- cd $TRAVIS_BUILD_DIR
- echo $TRAVIS_BUILD_DIR
- git checkout master
- ls
- chmod +x $TRAVIS_BUILD_DIR/travis/install-nginx.sh
- "$TRAVIS_BUILD_DIR/travis/install-nginx.sh"
#- curl "http://masterlab-site.ci:8888/"
- cat /tmp/error.log
after_success:
- export SSHPASS=$DEPLOY_PASS
#- sshpass -e scp -o stricthostkeychecking=no ./deploy.sh $DEPLOY_USER@47.244.62.11:/data/www/masterlab_site/
- sshpass -p $DEPLOY_PASS ssh -o StrictHostKeyChecking=no $DEPLOY_USER@47.244.62.11 'sh /data/www/masterlab_site/deploy.sh'
#- sshpass -e ssh -o stricthostkeychecking=no $DEPLOY_USER@47.244.62.11 "sh /data/www/masterlab_site/deploy.sh"
notifications:
email:
- 121642038@qq.com
addons:
ssh_known_hosts: 47.244.62.11
hosts:
- masterlab-site.ci
apt:
packages:
- nginx
- realpath
- sshpass