Commit 899ec4e9 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

added player registration

parent f31ac2e1
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -92,19 +92,19 @@ register_player:
      artifacts: true
  script:
    - cd hw8_ec
    - #
    - # copy to the student directory
    #
    # copy to the student directory
    - mkdir -p Players/${GITLAB_USER_LOGIN}/include
    - mkdir -p Players/${GITLAB_USER_LOGIN}/impl
    - cp include/MyPlayer.h Players/${GITLAB_USER_LOGIN}/include
    - cp impl/MyPlayer.cpp Players/${GITLAB_USER_LOGIN}/impl/
    - #
    - # upload to git repo
    #
    # upload to git repo
    - git add Players/${GITLAB_USER_LOGIN}/include/MyPlayer.h
    - git add Players/${GITLAB_USER_LOGIN}/impl/MyPlayer.cpp
    - git commit -m "Adding player ${GITLAB_USER_LOGIN}"
    - git push
    - #
    #
    - echo "Player registered for ${GITLAB_USER_LOGIN}"
  artifacts:
    paths: