-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml.disabled
57 lines (54 loc) · 1.79 KB
/
.travis.yml.disabled
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
language: php
addons:
ssh_known_hosts:
- yawik.org
chrome: stable
cache:
directories:
- "$HOME/.composer/cache"
- "$HOME/.npm"
env:
global:
- PECLMONGO="mongodb-stable"
matrix:
fast_finish: true
include:
- php: '7.4'
services:
- mongodb
before_install:
- openssl aes-256-cbc -K $encrypted_97ce95dcb4bc_key -iv $encrypted_97ce95dcb4bc_iv
-in .travis/deploy_rsa.enc -out ~/.ssh/id_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
- sudo apt-get update > /dev/null
- if [[ $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi;
- pecl channel-update pecl.php.net
- curl -LO https://deployer.org/deployer.phar
- chmod +x deployer.phar
install:
- pecl install -f ${PECLMONGO}
- export HASH=de1d724299780d927cb9ed14268449ac8a28204b;
- curl --location https://github.com/php/pecl-search_engine-solr/archive/${HASH}.tar.gz -o solr.tgz;
- sh -c "tar xfz solr.tgz";
- sh -c "cd pecl-search_engine-solr-${HASH} && phpize && ./configure && make && sudo make install";
- phpenv config-add .travis/phpenv.ini
- COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist
deploy:
- provider: script
skip_cleanup: true
script: ./deployer.phar deploy
on:
branch: master
before_script:
- if [[ $COVERAGE != yes ]]; then composer run start-selenium --timeout=0 > /dev/null
2>&1 & sleep 5; composer run serve --timeout=0 > /dev/null 2>&1 & sleep 3; fi
script:
- "./vendor/bin/behat"
after_failure:
- ./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "build/behat/*.log"
- ./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "log/*.log"
- ./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "log/tracy/*.*"
- IMGUR_CLIENT_ID=bec050c54e1bb52 ./vendor/bin/imgur-uploader build/behat/*.png
- ls -l