forked from gushphp/gush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
37 lines (36 loc) · 1.04 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# This file is part of Gush.
#
# (c) Luis Cordova <[email protected]>
#
# This source file is subject to the MIT license that is bundled
# with this source code in the file LICENSE.
#
machine:
php:
version: 7.0.7
pre:
- mkdir -p ~/docker
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
environment:
GUSH_USE_FS: true
dependencies:
cache_directories:
- ~/docker
override:
- docker build --rm=false -t gush .
test:
override:
- composer install --prefer-dist --optimize-autoloader --no-interaction
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
- vendor/bin/phpunit --verbose --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml
- docker run --tty -e GUSH_CONFIG=/root/.gush -e GUSH_LOCAL_CONFIG=/root/project gush -vvvv --help
deployment:
master:
branch: master
commands:
- docker login -u coder20078 -p $DOCKER_HUB_PASSWORD -e [email protected]
- docker tag -f gush coder20078/gush
- docker push coder20078/gush