This repository was archived by the owner on Jun 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
69 lines (64 loc) · 3.87 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Plugswork Build Script for master branch
# _ _ _ _______
# | | | | /\ | | |__ __|
# | |__| | / \ | | | |
# | __ | / /\ \ | | | |
# | | | | / ____ \ | |____ | | _
# |_| |_|/_/ \_\|______||_|(_)
#
# This file is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
# Before you start doing anything, read the license for more detail into what you are allowed to do and not do.
# You are free to use this script for your plugin. Go to the link for more reference on how this script should be used:
# https://gist.github.com/keithkfng/8813b7d854fe1f4928869876cb79df1f
language: php
php:
- 7.0
branches:
only:
- master
before_script:
- phpenv config-rm xdebug.ini
- pecl install channel://pecl.php.net/pthreads-3.1.6
- pecl install channel://pecl.php.net/weakref-0.3.2
- echo | pecl install channel://pecl.php.net/yaml-2.0.0RC7
- cd /home/travis/build
- mkdir artifacts
- cd /home/travis/build/artifacts
script:
- curl -sL https://raw.githubusercontent.com/BoxOfDevs/BoxCore/master/test.sh | bash
- cd plugins
- git clone https://github.com/BoxOfDevs/BoxCore
- ls /home/travis/build/artifacts/plugins/BoxCore
- cd ../
- php plugins/BoxCore/Travis.php
# after_script:
# - cd /home/travis/build
# - git config --global user.email "$PUSH_REPO_ESUER"
# - git config --global user.name "$PUSH_REPO_USER"
# - git clone --branch=$PUSH_REPO_BRANCH https://github.com/$PUSH_REPO_OWNER/$PUSH_REPO_NAME
# - cp /home/travis/build/artifacts/plugins/ImagicalDevTools//Plugswork* /home/travis/build/Plugswork/Plugswork-$TRAVIS_JOB_ID.phar
# - cp /home/travis/build/artifacts/plugins/ImagicalDevTools//Plugswork* /home/travis/build/Plugswork/service-download/Plugswork.phar
# - cd /home/travis/build/Plugswork
# - git add Plugswork-$TRAVIS_JOB_ID.phar
# - git add service-download/Plugswork.phar
# - ls > list.txt
# # - echo >> list.txt
# - echo "This is a directory listing of the root directory of the Plugswork release download website. Copy the file name and paste it in the URL bar after deleting \"list.txt\". You can also alternatively download files using a shell script by downloading the file from $DIRECT_DL_URI. The download link for the latest plugin build is $DOWNLOAD_URI" >> list.txt
# - git add list.txt
# - git commit -am "$COMMIT_MESSAGE"
# - git push https://$PUSH_REPO_USER:[email protected]/$PUSH_REPO_OWNER/$PUSH_REPO_NAME $PUSH_REPO_BRANCH &>secret
# VARIABLES NEED TO BE SET BELOW
# env:
# global:
# - REPO_OWNER="deotern" # Building repository owner, e.g. github in github/dmca
# - REPO_NAME="Plugswork" # Building repository name, e.g. dmca in github/dmca
# - PUSH_REPO_OWNER="deotern" # Pushing repository owner, e.g. github in github/push
# - PUSH_REPO_NAME="Plugswork" # Pushing repository name, e.g. push in github/push
# - PUSH_REPO_USER="keithkfng" # Pushing repository GitHub user, e.g. ImagicalBot
# - PUSH_REPO_EUSER="[email protected]" # Pushing repository GitHub user email, e.g. [email protected]
# - PUSH_REPO_BRANCH="gh-pages" # Pushing repository branch, e.g. gh-pages in github/push(use gh-pages if you want something similiar to http://github.github.io/push)
# - COMMIT_MESSAGE="Added latest Plugswork build" # Commit message to push built artifacts
# - DATATP="phar" # Data type of the artifact file, e.g. zip in hello.zip
# - DOWNLOAD_URI="http://$PUSH_REPO_OWNER/$PUSH_REPO_NAME/$REPO_NAME-$TRAVIS_JOB_ID.$DATATP" # Lates download URI for reference
# - DIRECT_DL_URI="http://$PUSH_REPO_OWNER/$PUSH_REPO_NAME/service-download/$REPO_NAME.$DATATP" # Direct download URI for reference
# The variable $GITHUB_API_KEY must be set as an environment variable of your project at travis-ci.org/repo-owner-here/repo-name-here/settings to avoid exposing the personal access token of the pushing repository GitHub user being exposed to the console and in the file as plain text.