Commit c9536384 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Update .gitlab-ci.yml

parent 32fd3325
Loading
Loading
Loading
Loading
Loading
+39 −2
Original line number Diff line number Diff line
stages:
  - build
  - test
  - complete

build-job:
compile:
  stage: build
  script:
    - echo "This is where code compilation would go ..."
    - echo "Compiling code for $GITLAB_USER_LOGIN"
    - curl https://agile.bu.edu/gitlab/configs/ec504-configs/hw2/problem-2-testing/-/archive/master/problem-2-testing-master.tar -o test.tar
    - tar -xvf test.tar
    - cp src/edu/bu/ec504/hw2p2/hashing/MyHashFamily problem-2-testing-master/src/edu/bu/ec504/hw2p2/hashing/
    - cd problem-2-testing-master/src
    - javac edu/bu/ec504/hw2p2/Main.java
  artifacts:
    paths:
      - problem-2-testing-master/src/
  tags: [java]

simple_tests:
  stage: test
  script:
    - echo "Running simple tests for $GITLAB_USER_LOGIN"
    - cd problem-2-testing-master/src
    - java edu/bu/ec504/hw2p2/Main
  dependencies:
    - compile
  artifacts:
    paths:
      - problem-2-testing-master/src/
  tags: [java]



competition:
  stage: compete
  script:
    - curl -o "temp.tar" "https://agile.bu.edu/local/ec504/hw2/p2/ problem-2-staff.tar";
    - tar -xvf temp.tar
    - cd problem-2-staff/src
    - javac edu/bu/ec504/hw2p2/Main.java
    - java edu/bu/ec504/hw1p3/Main $GITLAB_USER_LOGIN
  dependencies:
    - simple_tests
  tags: [java]