Skip to content

0x2539/simpleCI

Repository files navigation

  1. Run the app:

    flask run --host=0.0.0.0 --port=8000
    
  2. Set the necessary environment variables:

    mkdir ~/buildMessages/
    sudo chmod -R 777 ~/buildMessages/
    
    # github access token
    export gitToken=123
    
    # can be something like: https://ci.myapp.com
    export CI_URL=myurl
    
    # set it up on github.com for your webhook
    export GITHUB_SECRET=mygitsecret
    
    # must be the following format: "<repo_owner>/<repo_name>"
    export REPO_PATH=alexbuicescu/simpleCI
    
    # variable for sync/async
    export SYNC=true
    
  3. Update or create your own run_tests.sh and give it run permissions:

    # needed to run the shell script
    chmod +x run_tests.sh
    
  4. Add a new user and password for nginx (replace with the actual username, see more here):

    printf "<username>:`openssl passwd -apr1`\n" >> ~/.htpasswd
    
  5. Set permissions for passwords:

    chmod 644 ~/.htpasswd
    
  6. Start nginx:

    cd simpleCI
    
    docker run \
    --rm \
    -p 80:80 \
    --name ci-nginx \
    -v $HOME/buildMessages:/buildMessages:ro \
    -v $HOME/.htpasswd:/.htpasswd:ro \
    -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf:ro \
    -d nginx
    
  7. Screenshots folder architecture:

    1. screenshots/android/image.png
    2. screenshots/ios/image.png
    3. screenshots/webMobile/image.png
    4. screenshots/webDesktop/image.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •