Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
b6e2ceb
Issue #cache - cache the composer/drupal install
rbran100 Jan 30, 2020
b914a9f
Issue #cache - sync everything
rbran100 Jan 30, 2020
b13ce01
Merge branch '8.x-1.x-dev' into cache-travis
Feb 17, 2020
73eae01
Issue #12947 - Remove tests for debug reason
Feb 17, 2020
cdc10b1
Issue #12947 - Install awscli in travis
Feb 17, 2020
b8c763a
Issue #12947 - Fix Install awscli in travis
Feb 17, 2020
75f6174
Issue #12947 - Install pyenv
Feb 17, 2020
2718e9b
Issue #12947 - Upgrade dist
Feb 17, 2020
8abcedd
Issue #12947 - Debug travis
Feb 17, 2020
757b932
Issue #12947 - fix before install (wip)
Feb 17, 2020
99f8dbd
Issue #12947 - fix aws credential (wip)
Feb 17, 2020
866501c
Issue #12947 - delete node_modules
Feb 17, 2020
487d457
Issue #12947 - delete node_modules 2
Feb 17, 2020
aeef14e
Issue #12947 - Debug travis
Feb 17, 2020
63e9ca5
Issue #12947 - Try tar and upload
Feb 17, 2020
8aa7717
Issue #12947 - Try tar and upload 2
Feb 17, 2020
8ff64aa
Issue #12947 - Debug travis
Feb 17, 2020
bb60550
Issue #12947 - Debug travis
Feb 17, 2020
acfddbc
Issue #12947 - Debug travis
Feb 17, 2020
e3478cb
Issue #12947 - Debug travis
Feb 18, 2020
4d1072e
Issue #12947 - Upload only tar file
Feb 18, 2020
4edeeae
Issue #12947 - Debug travis
Feb 18, 2020
3a04794
Issue #12947 - Fix path
Feb 18, 2020
68ab268
Issue #12947 - Try to minimalize tar.gz
Feb 18, 2020
b00a64e
Issue #12947 - Enable more test and try xz tar
Feb 18, 2020
a6fa494
Issue #12947 - Upload xz and extend permissions
Feb 18, 2020
a71a700
Issue #12947 - Fix path and dir
Feb 18, 2020
99e38ac
Issue #12947 - Replace zip to LZMA
Feb 18, 2020
2038ec1
Issue #12947 - Fix path
Feb 18, 2020
cb0f652
Issue #12947 - Debug sql file
Feb 18, 2020
3e90b3f
Issue #12947 - Fix chrome name in travis
Feb 18, 2020
765bf1c
Issue #12947 - Try to speed up compression and remove chmod
Feb 18, 2020
510c405
Issue #12947 - Debug sql file in double place
Feb 18, 2020
7c4c2a9
Issue #12947 - Disable cache
Feb 18, 2020
335e414
Issue #12947 - Fix version consolidation/robo:2.0.0
Feb 18, 2020
82570c9
Issue #12947 - Print all logs
Feb 18, 2020
4c92a41
Issue #12947 - Test created SQL in same job
Feb 19, 2020
4291a9d
Merge branch '8.x-1.x-dev' into cache-travis
Feb 20, 2020
94ebbea
Issue #12947 - Debug composer install check
Feb 20, 2020
b37e8f7
Issue #12947 - Debug check permission problem
Feb 20, 2020
5aa3cb9
Issue #12947 - Debug keep only permission extra, remove composer install
Feb 20, 2020
2a20a38
Issue #12947 - Debug add less permission
Feb 20, 2020
31b996b
Issue #12947 - Debug add more permission
Feb 20, 2020
32e8aea
Issue #12947 - Include test configs into build
Feb 20, 2020
5ed6edb
Issue #12947 - Move lines to Robo
Feb 20, 2020
0d5645b
Issue #12947 - Add composer install again
Feb 20, 2020
18bcc56
Issue #12947 - Fix composer install place
Feb 20, 2020
7731986
Issue #12947 - Fix Robo function and refactor return object
Feb 20, 2020
b68924b
Issue #12947 - Fix Robo order
Feb 20, 2020
080a0e9
Issue #12947 - Fix Robo order 2
Feb 20, 2020
a8cf405
Issue #12947 - Enable coding standards
Feb 20, 2020
f7c801b
Issue #12947 - Cache more
Feb 20, 2020
b27bcd9
Issue #12947 - Extra comments
Feb 20, 2020
8612023
Issue #12947 - Debug files
Feb 20, 2020
98b6575
Issue #12947 - Debug files
Feb 20, 2020
f573f7b
Issue #12947 - Debug, change chown
Feb 20, 2020
61d7e75
Issue #12947 - Debug files
Feb 20, 2020
6b339ee
Issue #12947 - refactor
Feb 20, 2020
218e875
Issue #12947 - try without composer install
Feb 20, 2020
f0038bd
Issue #12947 - refactor
Feb 20, 2020
a5f7f2d
Issue #12947 - revert refactor
Feb 20, 2020
de48f45
Issue #12947 - revert refactor
Feb 20, 2020
b72b782
Issue #12947 - try without composer install
Feb 20, 2020
38aa36a
Issue #12947 - Debug job
Feb 21, 2020
2b73970
Issue #12947 - restore composer install
Feb 21, 2020
d7ecc35
Issue #12947 - add debug files
Feb 21, 2020
f435314
Issue #cache - Issue #12947 - Fix custom themes
Feb 21, 2020
3a74caa
Issue #cache - Issue #12947 - Try run separated
Feb 21, 2020
bb6f0ac
Issue #cache - Issue #12947 - hotfixes
Feb 21, 2020
9ed8da4
Issue #cache - Issue #12947 - hotfixes
Feb 24, 2020
959404a
Issue #cache - Issue #12947 - separate tasks
Feb 24, 2020
c52aac3
Issue #cache - Issue #12947 - move composer install
Feb 24, 2020
a11a5f2
Issue #12947 - move unit into prepare (wip)
Feb 24, 2020
04afa10
Revert to normal install way
Feb 25, 2020
9ab376c
Try with only db build
Feb 25, 2020
16b685f
Revert "Try with only db build"
Feb 25, 2020
fd80b69
Old way fix
Feb 25, 2020
a739ed9
Try with only db build (fix test files)
Feb 25, 2020
91f40c4
Save settings too and order cahnge and remove install drupal
Feb 25, 2020
f5726a7
Try to fix order
Feb 25, 2020
86d3bdc
Permission fix
Feb 25, 2020
d7c82d6
Permission fix
Feb 25, 2020
aefb2a5
Enable all tests
Feb 25, 2020
ac40290
Save files dir too
Feb 25, 2020
68c0d73
Upload to aws at different place
Feb 26, 2020
54a7f7d
Upload to aws at different place
Feb 26, 2020
d0c9cf3
Enable all tests
Feb 26, 2020
1c6dcb4
Try without 777, only chown
Feb 26, 2020
718b874
Revert "Try without 777, only chown"
Feb 26, 2020
4fa7895
Missing composer install
Feb 26, 2020
461aaf2
Try without 777, only chown
Feb 26, 2020
c579542
Test codecov part
Feb 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 35 additions & 33 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: php
dist: trusty
dist: xenial

cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.composer/cache

addons:
artifacts:
Expand All @@ -23,80 +23,80 @@ env:
- DRUPAL_BASE_URL="http://127.0.0.1:8080"
- PATH="$PATH:$HOME/.composer/vendor/bin"
- TRAVIS_NODE_VERSION="4"
- AWS_ACCESS_KEY_ID=$ARTIFACTS_KEY
- AWS_SECRET_ACCESS_KEY=$ARTIFACTS_SECRET

stages:
- prepare for tests
- test
- name: codecov
if: branch = 8.x-1.x-dev
- codecov

jobs:
include:
- script: robo job:check-coding-standards
- script: robo job:run-unit-tests
- script: robo job:check-module-circular-dependency
- script: robo job:run-kernel-tests "widgets-1,widgets-2,widgets-3,widgets-4,widgets-5"
- script: robo job:run-kernel-tests "publications-1,publications-2,wysiwyg,vsite,os,os-theme-preview"
- script: robo job:run-kernel-tests "cp-1,cp-2,other-1,other-2,cp-menu,profiles,redirect,cp-appearance,os-search"
- script: robo job:run-functional-tests "classes,events,pages,cp,media-browser,os-theme-preview,breadcrumbs,cp-menu,vsite_favicon"
- script: robo job:run-functional-tests "os-search,analytics,publications,cp-appearance,redirect,twitter,os,vsite,cp-import"
- script: robo job:run-functional-javascript-tests "publications,mailchimp,metatag,redirect,cp-appearance,vsite-preset"
- script: robo job:run-functional-javascript-tests "os-search,cp,profiles,classes,pages"
- script: robo job:run-functional-javascript-tests "events,vsite,widgets"
- script: robo job:run-functional-javascript-tests "os,os-theme-preview,blog,faq,news,presentations,cp-menu"
- stage: prepare for tests
script: robo job:check-coding-standards
- stage: prepare for tests
script: robo job:run-unit-tests
- stage: prepare for tests
script: robo job:check-module-circular-dependency
- stage: test
script: robo job:run-kernel-tests "widgets-1,widgets-2,widgets-3,widgets-4,widgets-5"
# - stage: test
# script: robo job:run-kernel-tests "publications-1,publications-2,wysiwyg,vsite,os,os-theme-preview"
# - stage: test
# script: robo job:run-kernel-tests "cp-1,cp-2,other-1,other-2,cp-menu,profiles,redirect,cp-appearance,os-search"
# - stage: test
# script: robo job:run-functional-tests "classes,events,pages,cp,media-browser,os-theme-preview,breadcrumbs,cp-menu,vsite_favicon"
# - stage: test
# script: robo job:run-functional-tests "os-search,analytics,publications,cp-appearance,redirect,twitter,os,vsite,cp-import"
# - stage: test
# script: robo job:run-functional-javascript-tests "publications,mailchimp,metatag,redirect,cp-appearance,vsite-preset"
# - stage: test
# script: robo job:run-functional-javascript-tests "os-search,cp,profiles,classes,pages"
# - stage: test
# script: robo job:run-functional-javascript-tests "events,vsite,widgets"
# - stage: test
# script: robo job:run-functional-javascript-tests "os,os-theme-preview,blog,faq,news,presentations,cp-menu"
- stage: codecov
script: robo job:run-unit-tests-code-coverage
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "widgets-1"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "widgets-2"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "widgets-3"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "widgets-4"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "widgets-5"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "os-theme-preview,cp-appearance,profiles"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "publications-1,redirect"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "vsite"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "publications-2,wysiwyg"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "os"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "cp-1"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "cp-2"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "other-1"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "other-2"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "cp-menu"
after_success: bash <(curl -s https://codecov.io/bash)
- stage: codecov
script: robo job:run-kernel-tests-code-coverage "os-search"
after_success: bash <(curl -s https://codecov.io/bash)

before_install:
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- pyenv global 3.7.1
- pip install -U pip
- pip install awscli

install:
- composer global require consolidation/robo:2.0.0
Expand All @@ -105,4 +105,6 @@ before_script:
- cp .travis/RoboFile.php .

after_failure:
- docker-compose logs php
- docker-compose logs mariadb
- artifacts upload
165 changes: 128 additions & 37 deletions .travis/RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public function __construct()
public function jobRunUnitTests($groups = '')
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->runUnitTests($groups));
return $collection->run();
}
Expand All @@ -56,7 +57,8 @@ public function jobRunUnitTests($groups = '')
public function jobRunUnitTestsCodeCoverage($groups = '')
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->enableXDebug());
$collection->addTaskList($this->runUnitTests($groups));
return $collection->run();
Expand All @@ -71,7 +73,8 @@ public function jobRunUnitTestsCodeCoverage($groups = '')
public function jobCheckCodingStandards()
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->runCheckCodingStandards());
return $collection->run();
}
Expand All @@ -85,9 +88,12 @@ public function jobCheckCodingStandards()
public function jobCheckModuleCircularDependency()
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->installDrupal());
$collection->addTaskList($this->uploadToAws());
$collection->addTaskList($this->runCheckModuleCircularDependency());
$collection->addTaskList($this->installTestConfigs());
return $collection->run();
}

Expand All @@ -101,7 +107,9 @@ public function jobRunKernelTests($groups = '')
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->installDrupal());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->importDatabase());
$collection->addTaskList($this->installTestConfigs());
$collection->addTaskList($this->runKernelTests($groups));
return $collection->run();
Expand All @@ -117,7 +125,9 @@ public function jobRunKernelTestsCodeCoverage($groups = '')
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->installDrupal());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->importDatabase());
$collection->addTaskList($this->installTestConfigs());
$collection->addTaskList($this->enableXDebug());
$collection->addTaskList($this->runKernelTests($groups));
Expand All @@ -136,7 +146,9 @@ public function jobRunFunctionalTests($groups = '')
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->installDrupal());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->importDatabase());
$collection->addTaskList($this->installTestConfigs());
$collection->addTaskList($this->runFunctionalTests($groups));
return $collection->run();
Expand All @@ -154,7 +166,9 @@ public function jobRunFunctionalJavascriptTests($groups = '')
{
$collection = $this->collectionBuilder();
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->installDrupal());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->buildComposer());
$collection->addTaskList($this->importDatabase());
$collection->addTaskList($this->installTestConfigs());
$collection->addTaskList($this->runFunctionalJavascriptTests($groups));
return $collection->run();
Expand All @@ -171,6 +185,8 @@ public function jobRunBehatTests()
$collection = $this->collectionBuilder();
$collection->addTaskList($this->downloadDatabase());
$collection->addTaskList($this->buildEnvironment());
$collection->addTaskList($this->buildDocker());
$collection->addTaskList($this->importDatabase());
$collection->addTask($this->waitForDrupal());
$collection->addTaskList($this->runUpdatePath());
$collection->addTaskList($this->runBehatTests());
Expand Down Expand Up @@ -198,35 +214,111 @@ protected function downloadDatabase()
return $tasks;
}

/**
* Builds the Docker environment.
*
* @return \Robo\Task\Base\Exec[]
* An array of tasks.
*/
protected function buildEnvironment()
{
$force = true;
$tasks = [];
$tasks[] = $this->taskFilesystemStack()
->copy('.travis/docker-compose.yml', 'docker-compose.yml', $force)
->copy('.travis/traefik.yml', 'traefik.yml', $force)
->copy('.travis/.env', '.env', $force)
->copy('.travis/config/behat.yml', 'tests/behat.yml', $force);

$tasks[] = $this->taskExec('echo AWS_ACCESS_KEY_ID=' . getenv('ARTIFACTS_KEY') . ' >> .env');
$tasks[] = $this->taskExec('echo AWS_SECRET_ACCESS_KEY=' . getenv('ARTIFACTS_SECRET') . ' >> .env');
$tasks[] = $this->taskExec('echo AWS_ES_ACCESS_ENDPOINT=' . getenv('ARTIFACTS_ES_ENDPOINT') . ' >> .env');
$tasks[] = $this->taskExec('docker-compose --verbose pull --parallel');
$tasks[] = $this->taskExec('docker-compose up -d');
$tasks[] = $this->taskExec('docker-compose exec -T php composer global require hirak/prestissimo');
$tasks[] = $this->taskExec('make');
$tasks[] = $this->taskExec('docker-compose exec -T php cp .travis/config/phpunit.xml web/core/phpunit.xml');
$tasks[] = $this->taskExec('docker-compose exec -T php cp .travis/config//bootstrap.php web/core/tests/bootstrap.php');
$tasks[] = $this->taskExec('docker-compose exec -T php mkdir -p web/sites/simpletest');
/**
* Creates the Docker environment.
*
* @return \Robo\Task\Base\Exec[]
* An array of tasks.
*/
protected function buildDocker()
{
$force = true;
$tasks = [];
$tasks[] = $this->taskFilesystemStack()
->copy('.travis/docker-compose.yml', 'docker-compose.yml', $force)
->copy('.travis/traefik.yml', 'traefik.yml', $force)
->copy('.travis/.env', '.env', $force)
->copy('.travis/config/behat.yml', 'tests/behat.yml', $force);

$tasks[] = $this->taskExec('echo AWS_ACCESS_KEY_ID=' . getenv('ARTIFACTS_KEY') . ' >> .env');
$tasks[] = $this->taskExec('echo AWS_SECRET_ACCESS_KEY=' . getenv('ARTIFACTS_SECRET') . ' >> .env');
$tasks[] = $this->taskExec('echo AWS_ES_ACCESS_ENDPOINT=' . getenv('ARTIFACTS_ES_ENDPOINT') . ' >> .env');
$tasks[] = $this->taskExec('docker-compose pull --parallel');
$tasks[] = $this->taskExec('docker-compose up -d');

return $tasks;
}

return $tasks;
}
/**
* Build environment.
*
* @return \Robo\Task\Base\Exec[]
* An array of tasks.
*/
protected function buildEnvironment()
{
$tasks = [];

$tasks[] = $this->taskExec('aws s3 sync s3://$ARTIFACTS_BUCKET/build_files/$TRAVIS_BUILD_NUMBER .');
$tasks[] = $this->taskExec('tar -Jxf os-build-${TRAVIS_BUILD_NUMBER}-custom_themes.tar.xz');
$tasks[] = $this->taskExec('sudo chown -R 1000:1000 custom_themes');
$tasks[] = $this->taskExec('ls -la');

return $tasks;
}
/**
* Import database.
*
* @return \Robo\Task\Base\Exec[]
* An array of tasks.
*/
protected function importDatabase()
{
$tasks = [];

// Fix import issue.
$tasks[] = $this->taskExec('sudo tar -Jxf os-build-${TRAVIS_BUILD_NUMBER}-db.tar.xz web');
$tasks[] = $this->taskExec('sudo tar -Jxf os-build-${TRAVIS_BUILD_NUMBER}-settings.tar.xz web/sites/default');
$tasks[] = $this->taskExec('sudo tar -Jxf os-build-${TRAVIS_BUILD_NUMBER}-files.tar.xz web/sites/default');
$tasks[] = $this->taskExec('sudo chown -R 1000:1000 web/sites/default');
$tasks[] = $this->taskExec('ls -la');
// Import sql.
$tasks[] = $this->taskExec('docker-compose exec -T php drush sqlq --file=./travis-backup.sql');

return $tasks;
}

/**
* Create sql dump and compressed build and upload to S3.
*
* @return \Robo\Task\Base\Exec[]
* A collection of tasks.
*/
protected function uploadToAws()
{
$tasks[] = $this->taskExec('docker-compose exec -T php drush sql-dump --result-file=./travis-backup.sql');
$tasks[] = $this->taskExec('ls -la');
$tasks[] = $this->taskExec('tar -Jcf ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-db.tar.xz web/travis-backup.sql');
$tasks[] = $this->taskExec('tar -Jcf ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-settings.tar.xz web/sites/default/settings.php');
$tasks[] = $this->taskExec('tar -Jcf ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-custom_themes.tar.xz custom_themes');
$tasks[] = $this->taskExec('tar -Jcf ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-files.tar.xz web/sites/default/files');
$tasks[] = $this->taskExec('aws s3 cp ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-db.tar.xz s3://$ARTIFACTS_BUCKET/build_files/$TRAVIS_BUILD_NUMBER/os-build-${TRAVIS_BUILD_NUMBER}-db.tar.xz');
$tasks[] = $this->taskExec('aws s3 cp ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-settings.tar.xz s3://$ARTIFACTS_BUCKET/build_files/$TRAVIS_BUILD_NUMBER/os-build-${TRAVIS_BUILD_NUMBER}-settings.tar.xz');
$tasks[] = $this->taskExec('aws s3 cp ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-custom_themes.tar.xz s3://$ARTIFACTS_BUCKET/build_files/$TRAVIS_BUILD_NUMBER/os-build-${TRAVIS_BUILD_NUMBER}-custom_themes.tar.xz');
$tasks[] = $this->taskExec('aws s3 cp ${TRAVIS_BUILD_DIR}-${TRAVIS_BUILD_NUMBER}-files.tar.xz s3://$ARTIFACTS_BUCKET/build_files/$TRAVIS_BUILD_NUMBER/os-build-${TRAVIS_BUILD_NUMBER}-files.tar.xz');

return $tasks;
}

/**
* Builds the Code Base.
*
* @return \Robo\Task\Base\Exec[]
* An array of tasks.
*/
protected function buildComposer()
{
$force = true;
$tasks = [];

$tasks[] = $this->taskExec('docker-compose exec -T php composer global require hirak/prestissimo');
$tasks[] = $this->taskExec('make');
$tasks[] = $this->taskExec('docker-compose exec -T php cp .travis/config/phpunit.xml web/core/phpunit.xml');
$tasks[] = $this->taskExec('docker-compose exec -T php cp .travis/config//bootstrap.php web/core/tests/bootstrap.php');
$tasks[] = $this->taskExec('docker-compose exec -T php mkdir -p web/sites/simpletest');

return $tasks;
}

/**
* Enables xdebug in the Docker environment.
Expand All @@ -239,7 +331,6 @@ protected function enableXDebug()
$tasks[] = $this->taskExecStack()
->exec('echo PHP_XDEBUG_ENABLED=1 >> .env')
->exec('docker-compose up -d');

return $tasks;
}

Expand Down
1 change: 1 addition & 0 deletions .travis/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ services:
chrome:
# Note: chrome 67/68 is giving errors so we pin to 65 for now.
image: previousnext/chrome-headless:65
container_name: "${PROJECT_NAME}_chrome"
ports:
- "9222:9222"