Skip to content

DevExpress/devextreme-repo-syncer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initial deploy

Use a Linux machine with Docker.

  1. Create rootfs/root/.hgrc based on .hgrc-sample

  2. Create rootfs/root/.ssh/github/id_rsa using the following command:

    ssh-keygen -t rsa -b 4096 -C 'your@email.com' -f /path/to/rootfs/root/.ssh/github/id_rsa -q -N ''
    
  3. Prepare a volume for repos

    docker volume create repos
    

    Volume structure:

    /var/lib/docker/volumes
    └─ repos
       └─ _data
          ├─ 17_1
          │  ├─ github
          │  └─ hg
          ├─ 17_2
          │  ├─ github
          │  └─ hg
          ├─ ...
          └─ branches.txt
    

    'github' dirs contain clones of DevExpress/DevExtreme
    'hg' dirs contain clones of https://hg.corp.devexpress.com/mobile
    (no need to checkout specific branches, the script will do it)

    'branches.txt' - list of active branches, one per line

  4. build.sh, start.sh

  5. tail.sh- check logs

Add the next branch

  • stop.sh - may take some time, don't interrupt
  • Make a copy of clones:
    cp -r /var/lib/docker/volumes/repos/_data/XX_X /var/lib/docker/volumes/repos/_data/YY_Y
  • Add a line to branches.txt
  • start.sh
  • Check logs: tail.sh

Exclude a branch

  • Remove the line from 'branches.txt'