apache_conf 圆CI配置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 圆CI配置相关的知识,希望对你有一定的参考价值。
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/ruby:2.4.1-node-browsers
environment:
RAILS_ENV: test
PGHOST: 127.0.0.1
DATABASE_URL: "postgres://ubuntu@localhost:5432/oferta_test"
- image: circleci/postgres:9.4
environment:
POSTGRES_USER: ubuntu
POSTGRES_DB: oferta_test
version: 2
jobs:
bundle_dependencies:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/repo
- restore_cache:
keys:
- v1-dependencies-{{ checksum "Gemfile.lock" }}
- run: bundle install --jobs=4 --retry=3 --path vendor/bundle
- save_cache:
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
paths:
- ~/repo/vendor/bundle
- persist_to_workspace:
root: .
paths: vendor/bundle
rake_test:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: bundle --path vendor/bundle
# - run:
# name: Rubocop
# command: bin/rubocop --rails
# Database setup
- run: bundle exec rake db:create
- run: bundle exec rake db:schema:load
- run:
name: run tests
command: |
mkdir /tmp/test-results
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
bundle exec rspec --format progress \
--format RspecJunitFormatter \
--out /tmp/test-results/rspec.xml \
--format progress \
-- \
$TEST_FILES
# collect reports
- store_test_results:
path: /tmp/test-results
- store_artifacts:
path: /tmp/test-results
destination: test-results
precompile_assets:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: bundle --path vendor/bundle
- run:
name: Precompile assets
command: bundle exec rake assets:precompile
- persist_to_workspace:
root: .
paths: public/assets
deploy:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/repo
- run: bundle --path vendor/bundle
- run:
command: bundle exec cap staging deploy
workflows:
version: 2
build-and-deploy:
jobs:
- bundle_dependencies
- rake_test:
requires:
- bundle_dependencies
- precompile_assets:
requires:
- bundle_dependencies
- deploy:
requires:
- rake_test
- precompile_assets
filters:
branches:
only: develop
以上是关于apache_conf 圆CI配置的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf CI:使用mod_rewrite进行CodeIgniter的简单.htaccess
markdown 圆CIの设定
apache_conf Circle-CI 2.0のcron triggerを使って,定期実行をするref:http://qiita.com/inuscript/items/55b6bbfbc064e
Python+OpenCV图像处理之圆检测
apache_conf [vscode] vscode配置文件#配置
apache_conf phpMyAdmin配置存储未完全配置