forked from opensourcepos/opensourcepos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Dockerfile in travis-ci setup (opensourcepos#284)
Set version in package.json
- Loading branch information
Showing
3 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
language: php | ||
php: | ||
- 5.5 | ||
install: npm install | ||
before_script: | ||
- npm update -g npm | ||
- npm install grunt-cli | ||
- sudo apt-get update | ||
- sudo apt-get install apache2 libapache2-mod-fastcgi | ||
# enable php-fpm | ||
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf | ||
- sudo a2enmod rewrite actions fastcgi alias | ||
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm | ||
# configure apache virtual hosts | ||
- sudo cp -f travis-ci-apache /etc/apache2/sites-available/default | ||
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default | ||
- sudo service apache2 restart | ||
- mysql -e "create database IF NOT EXISTS ospos;" -uroot | ||
- mysql -e "use ospos; source database/database.sql;" -uroot | ||
- cp application/config/database.php.tmpl application/config/database.php | ||
script: grunt mochaWebdriver:test | ||
sudo: required | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- 0.10 | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- docker build -t jekkos/opensourcepos . | ||
- docker run -d -p 127.0.0.1:80:80 jekkos/opensourcepos /bin/sh -c "cd /app; npm install" | ||
- docker ps -a | ||
- docker run jekkos/opensourcepos /bin/sh -c "cd /app; npm mochaWebdriver:test" | ||
|
||
script: | ||
- npm mochaWebdriver:test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters