Skip to content

Commit 907970a

Browse files
committed
configure .travis.yml to run tests
1 parent 9694c3c commit 907970a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
sudo: required
2+
3+
language: php
4+
php: 7.1
5+
6+
env:
7+
global:
8+
- TEST_COMMAND=$(echo $TRAVIS_REPO_SLUG | cut -d/ -f 2) # Get command name to be tested
9+
10+
before_script:
11+
- |
12+
# Remove Xdebug for a huge performance increase:
13+
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
14+
phpenv config-rm xdebug.ini
15+
else
16+
echo "xdebug.ini does not exist"
17+
fi
18+
- ./ci/prepare.sh
19+
20+
script:
21+
- cd "$TRAVIS_BUILD_DIR/../easyengine"
22+
- ./vendor/bin/behat
23+
24+
after_script:
25+
- cat /opt/easyengine/ee.log
26+
27+
notifications:
28+
email:
29+
on_success: never
30+
on_failure: change

0 commit comments

Comments
 (0)