Skip to content

Commit

Permalink
Moving composer to load before_script
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Jun 15, 2012
1 parent 180bc94 commit 28f9948
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ env:

# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS hello_world_test;" -U postgres; fi
- if [[ "$DB" == "pgsql" ]]; then psql -c "create database hello_world_test;" -U postgres; fi
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hello_world_test;" -uroot; fi

# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
script:
# - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS hello_world_test;" -U postgres; fi
# - if [[ "$DB" == "pgsql" ]]; then psql -c "create database hello_world_test;" -U postgres; fi
# - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hello_world_test;" -uroot; fi
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev
- phpunit --configuration test/phpunit.xml --coverage-text

# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
script: phpunit --configuration test/phpunit.xml --coverage-text

# configure notifications (email, IRC, campfire etc)
notifications:
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "makesites/kisscms",
"type": "library",
"description": "Content Management made Simple",
"keywords": ["cms","kiss","free"],
"keywords": ["kisscms","cms","os","free"],
"homepage": "http://kisscms.com",
"license": "MIT",
"authors": [
Expand All @@ -24,5 +24,8 @@
"type": "vcs",
"url": "http://github.com/makesites/kisscms"
}
]
],
"autoload": {
"psr-0": {"KISSCMS": "./"}
}
}

0 comments on commit 28f9948

Please sign in to comment.