-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsolano.yml
44 lines (38 loc) · 1.23 KB
/
solano.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
38
39
40
41
42
43
44
system:
docker: true
environment:
'DOCKER_APP': 'ci_memes'
'DEPLOY_DOCKER': 'true'
'DEPLOY_AWS_ECS': 'false'
'AWS_ECS_CLUSTER': 'default'
'AWS_ECS_SERVICE': 'ci_memes-service'
'AWS_ECS_TASK_DEFINITION': 'ci_memes'
# For sensitive values, use `solano config:add repo <key> <value>` from the cli
# See: http://docs.solanolabs.com/Setup/setting-environment-variables/#via-config-variables
# 'DOCKER_USER': '<set-with-cli>'
# 'DOCKER_EMAIL': '<set-with-cli>'
# 'DOCKER_PASSWORD': '<set-with-cli>'
# 'AWS_ACCESS_KEY_ID': '<set-with-cli>'
# 'AWS_SECRET_ACCESS_KEY': '<set-with-cli>'
# 'AWS_DEFAULT_REGION': '<set-with-cli>'
timeout_hook: 900
hooks:
pre_setup: |
set -e # #xit on error
./scripts/solano-docker_build.sh
# Create test database SQL and install dependencies
grep -v ^"CREATE DATABASE " create-db.sql | grep -v ^"USE " > create-test-db.sql
composer install
worker_setup: mysql -u$TDDIUM_DB_USER -p$TDDIUM_DB_PASSWORD $TDDIUM_DB_NAME < create-test-db.sql
post_build: ./scripts/solano-deploy.sh
php:
php_version: "5.6"
mysql:
adapter: 'mysql2'
tests:
- type: phpunit
mode: parallel
command: ./vendor/bin/solano-phpunit
config: phpunit.xml
files:
- tests/**_test.php