Skip to content

Commit

Permalink
Fix CI build (#60)
Browse files Browse the repository at this point in the history
* Fix CI build
Following suggestions at https://discuss.circleci.com/t/build-failing-everytime-docker-wordpress-mysql-php-the-following-packages-have-unmet-dependencies/35861/2

* Fix flaxy tests
Per https://meta.trac.wordpress.org/ticket/4869#comment:1 , svn may be rate limited. --ignore-externals should mitigate the problem.
  • Loading branch information
richkuz authored Oct 20, 2020
1 parent de537ce commit bf5250d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ job-references:
command: |
sudo apt-get update && sudo apt-get install subversion
sudo -E docker-php-ext-install mysqli
sudo sh -c "printf '\ndeb http://ftp.us.debian.org/debian sid main\n' >> /etc/apt/sources.list"
sudo apt-get update && sudo apt-get install mysql-client-5.7
sudo apt-get update && sudo apt-get install default-mysql-client
php_job: &php_job
environment:
Expand Down
4 changes: 2 additions & 2 deletions scripts/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ install_test_suite() {
if [ ! -d $WP_TESTS_DIR ]; then
# set up testing suite
mkdir -p $WP_TESTS_DIR
svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/includes/ $WP_TESTS_DIR/includes
svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/data/ $WP_TESTS_DIR/data
svn co --ignore-externals https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/includes/ $WP_TESTS_DIR/includes
svn co --ignore-externals https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/data/ $WP_TESTS_DIR/data
fi

if [ ! -f wp-tests-config.php ]; then
Expand Down

0 comments on commit bf5250d

Please sign in to comment.