apache_conf Phoenix项目的CircleCI 2.0配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf Phoenix项目的CircleCI 2.0配置相关的知识,希望对你有一定的参考价值。

# Phoenix CircleCI 2.0 configuration file
#
# Modify configuration for Ecto in config/test.exs like below:
#
#   config :project, Project.Repo,
#     adapter: Ecto.Adapters.Postgres,
#     username: System.get_env("DATA_DB_USER"),
#     password: System.get_env("DATA_DB_PASS"),
#     hostname: System.get_env("DATA_DB_HOST"),
#     database: "project",
#     pool: Ecto.Adapters.SQL.Sandbox
#
#
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      - image: elixir:1.4.5
        environment:
          - MIX_ENV: test
          - DATA_DB_USER: postgres
          - DATA_DB_PASS: postgres
          - DATA_DB_HOST: localhost
      - image: postgres:9.6

    working_directory: ~/repo

    steps:
      - checkout

      - run:
          name: Install dependencies
          command: |
            mix local.rebar --force
            mix local.hex --force
            mix deps.get

      - run:
          name: Compile
          command: mix compile
        
      - run:
          name: Linting
          command: mix credo --strict
        
      - run:
          name: Unit Testing
          command: mix test
            

以上是关于apache_conf Phoenix项目的CircleCI 2.0配置的主要内容,如果未能解决你的问题,请参考以下文章

如何将 CSS/JS 依赖添加到 Phoenix 项目?

phoenix从入门到精通

phoenix从入门到精通

实时即未来,车联网项目之phoenix on hbase 即席查询

实时即未来,车联网项目之phoenix on hbase 即席查询

实时即未来,车联网项目之phoenix on hbase 即席查询