Skip to content

Commit

Permalink
default template
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Oct 30, 2017
1 parent 555f730 commit 4aad33d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
defaults: &defaults
working_directory: ~/${CIRCLE_PROJECT_REPONAME}
working_directory: ~/_repo
steps:
# common php steps
- run: echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
- run: if [ -n "$APK_PACKAGES" ]; then apk -U add wget $APK_PACKAGES; fi;
- run: if [ -n "$PHP_MODULES" ]; then docker-php-ext-install $PHP_MODULES; fi;
- run: if [ -n "$ADD_PACKAGES" ]; then apk -U add $ADD_PACKAGES; fi;
- run: if [ -n "$ADD_MODULES" ]; then docker-php-ext-install $ADD_MODULES; fi;
- run: echo "date.timezone = UTC" >> $(php --ini |grep Scan |awk '{print $NF}')/timezone.ini
- run: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer

# pre-checkout steps

# checkout
- checkout

# post-checkout steps

# run tests
- run: composer install -n --prefer-dist
- run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --log-junit /tmp/test-results/phpunit/junit.xml
- store_test_results:
Expand Down

0 comments on commit 4aad33d

Please sign in to comment.