-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 774 Bytes
/
Makefile
File metadata and controls
24 lines (16 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
php-dependencies:
composer install --no-interaction
dependencies: php-dependencies
migrations:
PHP_ENV=dev php ./vendor/davedevelopment/phpmig/bin/phpmig migrate
test-migrations:
PHP_ENV=test php ./vendor/davedevelopment/phpmig/bin/phpmig migrate
test:
php ./vendor/phpunit/phpunit/phpunit ./tests/
travisci-packages:
sudo apt-get update -qq
sudo apt-get install -y php5-sqlite php5-gd sqlite3
travisci-before-script: travisci-packages php-dependencies test-migrations
travisci-script: test
travisci-after-success:
[ "${TRAVIS_PULL_REQUEST}" = "false" ] && /bin/bash ./build/create-github-release.sh ${GITHUB_TOKEN} travisci-build-${TRAVIS_BRANCH}-${TRAVIS_BUILD_NUMBER} ${TRAVIS_COMMIT} https://travis-ci.org/journeymonitor/monitor/builds/${TRAVIS_BUILD_ID}