forked from benjaminkott/bootstrap_package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (65 loc) · 1.77 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
70
71
72
73
74
# .travis.yml
language: php
branches:
only:
- master
matrix:
fast_finish: true
include:
- php: 7.0
env: TYPO3_VERSION=^8.7
- php: 7.1
env: TYPO3_VERSION=^8.7
- php: 7.0
env: TYPO3_VERSION=dev-master
- php: 7.1
env: TYPO3_VERSION=dev-master
sudo: false
addons:
ssh_known_hosts:
- bootstrap-package.com
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer --version
before_script:
- composer require typo3/cms="$TYPO3_VERSION"
- export TYPO3_PATH_WEB="$PWD/.build/web"
script:
- >
echo;
echo "Running php lint";
find . -name \*.php ! -path "./.build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- >
echo;
echo "Running php-cs-fixer";
.build/bin/php-cs-fixer --diff --dry-run -v fix
- >
echo "Installing npm modules";
pushd Build;
npm install && npm install grunt-cli;
echo "Executing grunt";
node_modules/.bin/grunt;
popd
after_success:
- >
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
curl -sSL https://raw.githubusercontent.com/alrra/travis-after-all/1.4.4/lib/travis-after-all.js | node
if [ $? -eq 0 ]; then
openssl aes-256-cbc -K $encrypted_068845507e9d_key -iv $encrypted_068845507e9d_iv -in Build/deploy_rsa.enc -out /tmp/deploy_rsa -d;
eval "$(ssh-agent -s)";
chmod 600 /tmp/deploy_rsa;
ssh-add /tmp/deploy_rsa;
curl -LO https://deployer.org/deployer.phar;
sudo mv deployer.phar /usr/local/bin/dep;
sudo chmod +x /usr/local/bin/dep;
dep self-update;
dep --file="./Build/deploy.php" deploy;
fi;
fi;