Skip to content

Latest commit

 

History

History
89 lines (69 loc) · 1.83 KB

README.md

File metadata and controls

89 lines (69 loc) · 1.83 KB

CHAST Demo

GitHub

Run

docker run --rm -it --privileged rjenni/chast-demo:latest
  • --privileged is required for the unionfs-fuse tool to work.
  • --rm is recommended to remove the container after it has been stopped.
  • -it is required to run the container in interactive mode.

Note: Linux Kernel > v4.18.0 is required for the unionfs-fuse tool to work.

  • Exit the container with exit.

Recipies

All recipies are located in the /recipies directory. List them with:

ls -l /recipes

For checking the files as a tree under a specific folder, use:

tree <folder>

Rearrange Class Memebers

Run Tests:

chast test refactoring /recipes/class_to_record/class_to_record.chast.yml

Python 2 to Pyhton 3

This is only a very limited demo using the comby tool.

Run Tests:

chast test refactoring /recipes/python2to3/python2to3.chast.yml

Rearrange Class Memebers

Run Tests:

chast test refactoring /recipes/rearrange_class_members/rearrange_class_members.chast.yml

Remove Double Negation

Run Tests:

chast test refactoring /recipes/remove_double_negation/remove_double_negation.chast.yml

Build

Build:

# Run in `cli/` directory:
go build -o chast main.go

Copy the newest built binary from the cli directory into the demo folder.

cp ../../cli/chast .

Build the image:

 docker build -t rjenni/chast-demo . 

Push

Push the image to the docker hub:

docker push rjenni/chast-demo