-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run the isolation tests on Travis, and the functional tests on Circle, and style checks on Shippable #3339
Run the isolation tests on Travis, and the functional tests on Circle, and style checks on Shippable #3339
Changes from all commits
2376a4c
568ebe8
3430b62
e46fd59
c5c66ad
12e8762
a9b83ec
cc23dae
122b8d1
02fad44
76303ba
601ae58
593d63b
51efbf8
fdd1a04
d1b322a
eb069d0
0275657
df37b82
0cfb597
19a1683
076020d
c2aae8d
93d5f11
d3b7a8a
dd489d9
18fd60c
05a8919
9212abf
f4cef37
a62e495
ce1d722
598258c
4e4e591
1b04ce7
3a21c80
39c88e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs | ||
defaults: &defaults | ||
docker: | ||
- image: php:7.1.3-cli | ||
working_directory: ~/drush | ||
environment: | ||
TZ: "/usr/share/zoneinfo/America/Los_Angeles" | ||
TERM: dumb | ||
UNISH_NO_TIMEOUTS: y | ||
UNISH_DB_URL: mysql://root:@127.0.0.1 | ||
UNISH_TMP: /tmp | ||
PHPUNIT_ARGS: "" | ||
|
||
version: 2 | ||
jobs: | ||
build: | ||
<<: *defaults | ||
docker: | ||
# We can probably use a standard php container here. Maybe we should make our own w/ everything pre-installed | ||
- image: circleci/php:7.1-apache-node | ||
environment: | ||
- MYSQL_HOST=127.0.0.1 | ||
- image: circleci/mysql:5.7.18 | ||
steps: | ||
- checkout | ||
- run: $HOME/drush/.circleci/setup.sh | ||
- run: unish.sut.php | ||
- run: unish.phpunit.php $PHPUNIT_ARGS | ||
|
||
build_highest: | ||
<<: *defaults | ||
docker: | ||
# We can probably use a standard php container here. Maybe we should make our own w/ everything pre-installed | ||
- image: circleci/php:7.1-apache-node | ||
environment: | ||
- MYSQL_HOST=127.0.0.1 | ||
- COMPOSER=composer-highest.json | ||
- image: circleci/mysql:5.7.18 | ||
steps: | ||
- checkout | ||
- run: $HOME/drush/.circleci/setup.sh | ||
- run: unish.sut.php | ||
- run: unish.phpunit.php $PHPUNIT_ARGS | ||
|
||
build_56: | ||
<<: *defaults | ||
docker: | ||
# We can probably use a standard php container here. Maybe we should make our own w/ everything pre-installed | ||
- image: circleci/php:5.6-apache-node | ||
environment: | ||
- MYSQL_HOST=127.0.0.1 | ||
- image: circleci/mysql:5.7.18 | ||
steps: | ||
- checkout | ||
- run: $HOME/drush/.circleci/setup.sh | ||
- run: unish.sut.php | ||
- run: unish.phpunit.php $PHPUNIT_ARGS | ||
|
||
workflows: | ||
version: 2 | ||
build_test: | ||
jobs: | ||
- build | ||
- build_highest | ||
- build_56 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# Install PHP extensions | ||
sudo docker-php-ext-install pdo_mysql | ||
|
||
# Install extension | ||
sudo apt-get install -y libpng-dev | ||
|
||
# Install PHP Extensions | ||
sudo docker-php-ext-install gd | ||
|
||
# Install Composer | ||
'curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer' | ||
|
||
# Display versions | ||
php -v | ||
composer --version | ||
|
||
# Install mysql-client | ||
sudo apt-get install mysql-client | ||
|
||
# Configure bash environment variables | ||
echo 'export PATH=~/.composer/vendor/bin:~/drush:$PATH' >> $BASH_ENV | ||
echo 'export HOME=/tmp/drush-sandbox/home' >> $BASH_ENV | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm. My understanding is that all we need to do is assure that TEMP env variable is available. Unish does the rest. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I should have commented on this. The problem is that on Circle CI 2.0 with composer-highest.json, when Unish launches There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this is related to the comment in CommandUnishTestCase::execute() |
||
mkdir -p /tmp/drush-sandbox/home | ||
|
||
# Configure php.ini | ||
echo 'mbstring.http_input = pass' > $HOME/php.ini | ||
echo 'mbstring.http_output = pass' >> $HOME/php.ini | ||
echo 'memory_limit = -1' >> $HOME/php.ini | ||
echo 'sendmail_path = /bin/true' >> $HOME/php.ini | ||
echo 'date.timezone = "UTC"' >> $HOME/php.ini | ||
|
||
# Copy our php.ini configuration to the active php.ini file | ||
# We can't use `php -r 'print php_ini_loaded_file();` when there is no php.ini | ||
PHPINI_PATH="$(php -i | grep 'Configuration File (php.ini) Path' | sed -e 's#.*=> *##')/php.ini" | ||
cat $HOME/php.ini | sudo tee "$PHPINI_PATH" > /dev/null |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: php | ||
|
||
php: | ||
- "7.1" | ||
|
||
build: | ||
ci: | ||
# Set up php configuration | ||
- echo 'mbstring.http_input = pass' >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- echo 'mbstring.http_output = pass' >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- echo 'memory_limit = -1' >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- echo 'sendmail_path = /bin/true' >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
# Disable xdebug for faster Composer operations | ||
- rm $HOME/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini | ||
# Install / update our tools | ||
- composer self-update | ||
- composer install --prefer-dist --no-interaction | ||
# Run code style and linting tools | ||
- composer cs | ||
- composer lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this override *defaults?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I could remove the image in *defaults, since it is never used.