Skip to content

Commit

Permalink
fix: circleci workflow need cache for code checkout. #3
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkcup committed May 28, 2019
1 parent 569ca47 commit 676eda7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ jobs: # a collection of steps
- run: if [ "$CIRCLE_BRANCH" != "master" ]; then git fetch --force origin master:master; fi # fuck circleci bug. https://support.circleci.com/hc/en-us/articles/115015659247-How-do-I-modify-the-checkout-step-
- run:
command: |
sudo apt install -y gnupg2 libjpeg-dev libpng-dev libsqlite3-dev zlib1g-dev
sudo -E docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir
sudo -E docker-php-ext-install gd
sudo -E docker-php-ext-enable opcache
- run: sudo composer self-update
sudo composer self-update
- run:
command: |
wget -O /tmp/hub.tgz https://github.com/github/hub/releases/download/v2.11.2/hub-linux-amd64-2.11.2.tgz
Expand All @@ -38,12 +35,19 @@ jobs: # a collection of steps
- run:
command: |
./build-docs.sh
- save_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/laravel

deploy:
docker:
- image: circleci/php:7.2-node-browsers
working_directory: ~/laravel
steps:
- restore_cache:
keys:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: Install and configure dependencies
command: |
Expand Down

0 comments on commit 676eda7

Please sign in to comment.