This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcircle.yml
51 lines (50 loc) · 1.67 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
machine:
php:
version: 7.0.7
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
hosts:
commerce2.dev: 127.0.0.1
dependencies:
cache_directories:
- ~/.composer/cache
pre:
- echo "date.timezone = 'America/Chicago'" > /opt/circleci/php/7.0.7/etc/conf.d/xdebug.ini
override:
- pip install docker-compose
- docker-compose -f docker-compose.yml.dist build
- docker-compose -f docker-compose.yml.dist pull
- docker-compose -p commerce2 -f docker-compose.yml.dist up:
background: true
- composer global require "hirak/prestissimo:^0.3"
- git config --global github.accesstoken $GITHUB_OAUTH_TOKEN
- composer config -g github-oauth.github.com $GITHUB_OAUTH_TOKEN
- composer install --prefer-dist --no-interaction
test:
pre:
- phantomjs --webdriver=4444:
background: true
- mkdir web/sites/simpletest
- ./bin/drush --root=$(pwd)/web si commerce_base --site-name="Commerce 2" --account-pass=admin --yes
- ./scripts/install-demo.sh
- curl -I http://commerce2.dev/
override:
- ./bin/phpunit --testsuite unit --group commerce
- ./bin/phpunit --testsuite kernel --group commerce
- ./bin/behat -f junit -o $CIRCLE_TEST_REPORTS -f pretty -o std
general:
artifacts:
- "tests/failures"
# deployment:
# prod:
# branch: master
# commands:
# - DRUPALVM_ENV=prod ansible-playbook \
# -i vm/inventory \
# vendor/geerlingguy/drupal-vm/provisioning/playbook.yml \
# -e "config_dir=$(pwd)/vm" \
# --sudo
# --tags=drupal
# --extra-vars "ansible_become_pass=${ANSIBLE_VAULT_PASSWORD}"