Skip to content

Commit

Permalink
Improved Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jul 3, 2016
1 parent c5b2aa1 commit b438d9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ env:
before_install:
- export PATH=$PATH:~/bin;
- 'echo $TRAVIS_PHP_VERSION'
- composer self-update -q
- travis_retry composer --prefer-source install
- travis_retry composer require phalcon/zephir:dev-master
- bash tests/_ci/install_prereqs.sh
- bash tests/_ci/setup_dbs.sh
- bash tests/_ci/install_zephir.sh
- bash tests/_ci/install_beanstalkd.sh
- zephir help
- 'if [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then zephir generate; else echo "$TRAVIS_PHP_VERSION"; fi;'
- 'if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then zephir generate --backend=ZendEngine3; else echo "$TRAVIS_PHP_VERSION"; fi;'
- '[[ "$TRAVIS_PHP_VERSION" == "7.0" ]] || zephir generate'
- '[[ "$TRAVIS_PHP_VERSION" != "7.0" ]] || zephir generate --backend=ZendEngine3'

before_script:
- (export PRE_PHP_INCLUDES=`php-config --includes`; cd ext/; for file in `find kernel -name "*.h"`; do $CC "$file" -I. $PRE_PHP_INCLUDES -o "$file.ghc"; done)
Expand Down
6 changes: 2 additions & 4 deletions tests/_ci/install_zephir.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/usr/bin/env bash

cd vendor/phalcon/zephir
cd ${TRAVIS_BUILD_DIR}/vendor/phalcon/zephir

ZEPHIRDIR="$( cd "$( dirname . )" && pwd )"
sed "s#%ZEPHIRDIR%#$ZEPHIRDIR#g" bin/zephir > bin/zephir-cmd
chmod 755 bin/zephir-cmd

if [ ! -d ~/bin ]; then
mkdir ~/bin
fi
mkdir -p ~/bin

cp bin/zephir-cmd ~/bin/zephir
rm bin/zephir-cmd

0 comments on commit b438d9e

Please sign in to comment.