forked from govCMS/GovCMS7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (53 loc) · 1.67 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
language: php
php:
- 5.5
- 5.6
sudo: false
cache:
bundler: true
apt: true
directories:
- $HOME/.composer/cache
- $HOME/.drush/cache
env:
- COMPOSER_BIN_DIR=$TRAVIS_BUILD_DIR/build/bin BEHAT_PARAMS='{"extensions":{"Behat\\MinkExtension":{"base_url":"http://127.0.0.1:8888/"}}}'
addons:
artifacts:
paths:
- $TRAVIS_BUILD_DIR/build/phing/screenshot-fail.png
ssh_known_hosts: git.drupal.org
notifications:
email:
recipients:
on_success: change
on_failure: change
slack:
secure: jflE/Zs73rGpsnhN7qXqYDaVKyuwlNyQByMZrcwq2Cj7O84N3yp5x7fDbDTsJ4qYExBj3cnUXGzuS/SEtDWVdpwpjS4rcfL1uQvU4ZCuI6U9mI/KTWVGgD5+DkdS8/jZxsIfDtM8OYBwukqyaUCgGRzV609HR0NPiUofKnMxAPo=
before_install:
- composer selfupdate
install:
- composer install --working-dir=build --prefer-source
- export PATH=$PATH:$TRAVIS_BUILD_DIR/build/bin
before_script:
# Make PHP think sendmail exists
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Create Database
- mysql -e 'CREATE DATABASE travis_ci_govcms_drupal;'
# Build the codebase
- phing -f build/phing/build.xml build:local
# Run the inbuilt PHP server
- cd "${TRAVIS_BUILD_DIR}/docroot"
- php -S 127.0.0.1:8888 "${TRAVIS_BUILD_DIR}/build/tests/drush/router.php" &> $TRAVIS_BUILD_DIR/php.log &
- cd "${TRAVIS_BUILD_DIR}"
script:
# Run tests
- phing -f build/phing/build.xml run-tests
after_success:
- phing -f build/phing/build.xml post-commit
after_failure:
- cat $TRAVIS_BUILD_DIR/php.log