Skip to content

A Phoenix backed that clones arbitrary elixir project, runs ExUnit tests and saves the result to a database.

Notifications You must be signed in to change notification settings

librity/clone_and_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloneAndTest

Table of Contents

About

A Pheonix backend that clones arbitrary elixir project, runs ExUnit tests and saves the result to a database.

Endpoints

Built-in:

Repos

Setup

Install Erlang, Elixir and Phoenix.

Bash Commands

# Create phoenix app without webpacker or html views
$ mix phx.new app_name --no-webpack --no-html

# Intall dependencies
$ mix deps.get

# Compile project
$ mix compile

# Generate linter config file
$ mix credo.gen.config

# Run linter
$ mix credo --strict

# Start Phoenix dev server on http://localhost:4000
$ mix phx.server

# Start your project as an Interactive Elixir session
$ iex -S mix

# List all configured routes
$ mix phx.routes

Tests

# Run tests
$ mix test

# Run tests w/ coverage report
$ mix test --cover

Elixir Commands

Shell commands:

System.cmd("whoami", [])
System.cmd("echo", ["hello"], into: IO.stream(:stdio, :line))

Github client:

Github.get_user_repos("teamon")
Github.get_user_repos("danilo-vieira")
Github.get_user_repos("librity")
Github.get_repo("octokit", "octokit.rb")
Github.get_repo("elixir-lang", "elixir")
Github.get_repo("librity", "librity")

Elixir Git CLI:

{:ok, repo} = Git.clone "https://github.com/librity/librity"
Git.remote repo, ~w(add upstream https://git.example.com)
Git.pull repo, ~w(--rebase upstream master)
Git.diff repo, "HEAD~1"
Git.add repo, "."
Git.commit repo, ["-m" "my message"]
Git.push repo
IO.puts Git.log!(repo)

Libs

Docs

Resources

Git and Github

My test repos

External test repos

About

A Phoenix backed that clones arbitrary elixir project, runs ExUnit tests and saves the result to a database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages