Skip to content

Commit 9f6f5e5

Browse files
authored
Merge pull request #269 from wpengine/ryanmeier/small-circleci-fixes
[NO JIRA] Updates To CircleCI Config
2 parents 6f2a490 + bbbf4d4 commit 9f6f5e5

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

.circleci/config.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,16 @@ jobs:
137137
CONTAINER_WP_VERSION: "latest"
138138
CONTAINER_PHP_VERSION: "7.3"
139139
deploy_job:
140+
working_directory: /root/project/phpcompat-demo
140141
docker:
141-
- image: circleci/buildpack-deps:latest
142+
- image: wordpress:php7.3-fpm-alpine
142143
steps:
144+
- run: apk add --no-cache git subversion rsync
145+
- *install_composer
143146
- checkout
144147
- run:
145-
name: Install dependencies
146-
command: sudo apt-get install rsync -qq
148+
name: Install composer without dev packages
149+
command: composer install --no-dev --no-suggest --optimize-autoloader
147150
- run:
148151
name: Create artifacts directory
149152
command: mkdir -p /tmp/artifacts
@@ -157,8 +160,10 @@ workflows:
157160
version: 2
158161
test:
159162
jobs:
160-
- job_test_javascript
163+
- job_test_javascript:
164+
<<: *workflow_job
161165
- job_php_code_standards:
166+
<<: *workflow_job
162167
requires:
163168
- job_test_javascript
164169
- job_test_php56_min:

.circleci/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ svn update --set-depth infinity trunk
4444
echo "Copying files..."
4545

4646
if [[ -f "$PROJECT_DIR/.distignore" ]]; then
47-
rsync -rc --exclude-from="$PROJECT_DIR/.distignore" "$PROJECT_DIR/" trunk/ --delete --delete-excluded
47+
rsync -rcl --exclude-from="$PROJECT_DIR/.distignore" "$PROJECT_DIR/" trunk/ --delete --delete-excluded
4848
fi
4949

5050
# Copy assets to /assets.

.distignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
+ php52/vendor/bin
2+
+ vendor/bin
3+
- bin
4+
.circleci
5+
.distignore
6+
.git
7+
.gitignore
8+
.phplint.yml
9+
Dockerfile
10+
Gruntfile.js
11+
Makefile
12+
build.sh
13+
composer.json
14+
composer.lock
15+
docker-compose.yml
16+
helpers
17+
package-lock.json
18+
package.json
19+
php-lint.sh
20+
phpunit.xml.dist
21+
readme.md
22+
tests
23+
assets

0 commit comments

Comments
 (0)