Skip to content

Clean up shell scripts in the repo. #10073

@wanglei828

Description

@wanglei828

Current build shell scripts in the paddle repo are spread in different directories, such as docker and travis. Actually, many tasks can be shared by different CI platform and local users also can easily use the scripts to verify their new commit.
I propose to centralize the build tasks into one script. Users can choose different tasks based on their needs. CI scripts can also be simple and clear. Meanwhile, when docker users use container to build paddle, they need to type a long command line (passing many environment valuables ) to start the docker.
For example, we provide two scripts: paddle_build.sh and paddle_docker_build.sh
For users without docker,
paddle_build.sh build ( start build paddle)
paddle_build.sh test (run all the unitest)
paddle_build.sh doc (generate all the doc)
with no options, it will print out the help menu.

For docker users:
paddle_docker_build.sh build
It will first pull the latest dev image from docker hub, start a dev container in the backend and then run "paddle_build.sh build" in the container and exit.
Next time, when you need to build again, you don't need to start container again (if you think you current dev image is OK).
Type "paddle_docker_build.sh test", the test will also be executed in the previous container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions