Commit 6324134b authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Update .gitlab-ci.yml

parent 9937a6c6
Loading
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@ compile_data_structures:
  stage: build
  script:
    - echo "Compiling data structure code for $GITLAB_USER_LOGIN"
    - curl https://agile.bu.edu/gitlab/configs/ec504-configs/hw2/problem-1-testing/-/archive/master/problem-1-testing-master.tar -o test.tar
    - tar -xvf test.tar
    - curl https://agile.bu.edu/gitlab/configs/ec504-configs/hw2/problem-1-testing/-/archive/master/problem-1-testing-master.tar -o temp.tar
    - tar -xf temp.tar
    # copy student source code
    - cp -rf src/edu/bu/ec504/hw2/p1/edges/* problem-1-testing-master/src/src/edu/bu/ec504/hw2/p1/edges
    - cp -rf src/edu/bu/ec504/hw2/p1/graphs/* problem-1-testing-master/src/src/edu/bu/ec504/hw2/p1/graphs
    - cp -rf src/edu/bu/ec504/hw2/p1/support/* problem-1-testing-master/src/src/edu/bu/ec504/hw2/p1/support
    - cp -rf src/edu/bu/ec504/hw2/p1/vertices/* problem-1-testing-master/src/src/edu/bu/ec504/hw2/p1/vertices
    - cp -rf src/edu/bu/ec504/hw2/p1/edges/* problem-1-testing-master/src/edu/bu/ec504/hw2/p1/edges
    - cp -rf src/edu/bu/ec504/hw2/p1/graphs/* problem-1-testing-master/src/edu/bu/ec504/hw2/p1/graphs
    - cp -rf src/edu/bu/ec504/hw2/p1/support/* problem-1-testing-master/src/edu/bu/ec504/hw2/p1/support
    - cp -rf src/edu/bu/ec504/hw2/p1/vertices/* problem-1-testing-master/src/edu/bu/ec504/hw2/p1/vertices
    - cd problem-1-testing-master/src
    - javac edu/bu/ec504/hw2/p1/Main.java
  artifacts:
@@ -38,10 +38,10 @@ compile_colorer:
  stage: build
  script:
    - echo "Compiling data structure code for $GITLAB_USER_LOGIN"
    - curl https://agile.bu.edu/gitlab/configs/ec504-configs/hw2/problem-1-testing/-/archive/master/problem-1-testing-master.tar -o test.tar
    - tar -xvf test.tar
    - curl https://agile.bu.edu/gitlab/configs/ec504-configs/hw2/problem-1-testing/-/archive/master/problem-1-testing-master.tar -o temp.tar
    - tar -xf temp.tar
    # copy student source code
    - cp -rf src/edu/bu/ec504/hw2/p1/GraphColorer.java problem-1-testing-master/src/src/edu/bu/ec504/hw2/p1/
    - cp -rf src/edu/bu/ec504/hw2/p1/GraphColorer.java problem-1-testing-master/src/edu/bu/ec504/hw2/p1/
    - cd problem-1-testing-master/src
    - javac edu/bu/ec504/hw2/p1/GraphColorerTester.java
  dependencies:
@@ -69,8 +69,8 @@ competition:
  stage: compete
  script:
    - curl -o "temp.tar" "https://agile.bu.edu/local/ec504/hw2/p2/problem-1-staff.tar";
    - tar -xvf temp.tar
    - cp -rf problem-1-staff/src/src/edu/bu/ec504/hw2/p1/GraphColorCompetition.java problem-1-testing-master/src/edu/bu/ec504/hw2/p1/
    - tar -xf temp.tar
    - cp -rf problem-1-staff/src/edu/bu/ec504/hw2/p1/GraphColorCompetition.java problem-1-testing-master/src/edu/bu/ec504/hw2/p1/
    - cd problem-1-testing-master/src
    - javac edu/bu/ec504/hw2/p1/GraphColorCompetition.java
    - java edu/bu/ec504/hw2p2/GraphColorCompetition $GITLAB_USER_LOGIN