From b6a4353d38ce627d842efe949ad3068a1d558201 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 16 Feb 2019 16:43:47 +0800 Subject: [PATCH] remove circleci --- .circleci/config.yml | 113 ------------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 920b7fb5..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,113 +0,0 @@ -version: 2 - -jobs: - frontend: - working_directory: ~/repo - docker: - - image: circleci/node:10 - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "yarn.lock" }} - - v1-dependencies- - - run: yarn - - save_cache: - paths: - - node_modules - - ~/.yarn - key: v1-dependencies-{{ checksum "yarn.lock" }} - - run: yarn lint - - run: yarn test --verbose --coverage - - run: yarn codecov - - install: - working_directory: ~/repo - docker: - - image: circleci/php:7.1-cli - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "composer.lock" }} - - v1-dependencies- - - run: - name: Install PHP extension - command: | - # https://discuss.circleci.com/t/issue-with-installing-php-extension-gd/26550/6 - sudo apt-get install -y libpng-dev - sudo -E docker-php-ext-install -j$(nproc) gd - - run: composer install -n --prefer-dist - - save_cache: - paths: - - vendor - key: v1-dependencies-{{ checksum "composer.lock" }} - - run: cp .env.testing .env - - run: php artisan key:random - - run: php artisan salt:random - - persist_to_workspace: - root: ~/repo - paths: - - . - - test_php71: - working_directory: ~/repo - docker: - - image: circleci/php:7.1-cli - environment: - APP_ENV: testing - DB_CONNECTION: sqlite - DB_DATABASE: storage/testing.sqlite - steps: - - attach_workspace: - at: ~/repo - - run: - name: Install PHP extension - command: | - # https://discuss.circleci.com/t/issue-with-installing-php-extension-gd/26550/6 - sudo apt-get install -y libpng-dev libsqlite3-dev libzip-dev - sudo docker-php-ext-install zip - sudo docker-php-ext-configure intl - sudo docker-php-ext-install intl - sudo -E docker-php-ext-install -j$(nproc) pdo_sqlite - sudo -E docker-php-ext-install -j$(nproc) gd - - run: touch storage/testing.sqlite - - run: ./vendor/bin/phpunit --coverage-clover=coverage.xml - - run: bash <(curl -s https://codecov.io/bash) -cF php - - test_php72: - working_directory: ~/repo - docker: - - image: php:7.2-cli - environment: - APP_ENV: testing - DB_CONNECTION: sqlite - DB_DATABASE: storage/testing.sqlite - steps: - - attach_workspace: - at: ~/repo - - run: - name: Install PHP extension - command: | - # https://discuss.circleci.com/t/issue-with-installing-php-extension-gd/26550/6 - sudo apt-get install -y libpng-dev libsqlite3-dev libzip-dev - sudo docker-php-ext-install zip - sudo docker-php-ext-configure intl - sudo docker-php-ext-install intl - sudo -E docker-php-ext-install -j$(nproc) pdo_sqlite - sudo -E docker-php-ext-install -j$(nproc) gd - - run: touch storage/testing.sqlite - - run: ./vendor/bin/phpunit - -workflows: - version: 2 - install_and_test: - jobs: - - frontend - - install - - test_php71: - requires: - - install - - test_php72: - requires: - - install