Loading .gitlab-ci.yml +40 −2 Original line number Diff line number Diff line stages: # List of stages for jobs, and their order of execution - build - test - compete build-job: # This job runs in the build stage, which runs first. compile: stage: build script: - echo "This should compile the code ... eventually ..." No newline at end of file - echo "Compiling code for $GITLAB_USER_LOGIN" - curl https://agile.bu.edu/gitlab/configs/ec504-configs/hw3/problem-2-testing/-/archive/master/problem-2-testing-master.tar -o test.tar - tar -xvf test.tar - cp -f src/edu/bu/ec504/hw3/p2/MyCanvas.java problem-2-testing-master/src/edu/bu/ec504/hw3/p2/ - cd problem-2-testing-master/src - javac edu/bu/ec504/hw3/p2/Main.java dependencies: - collect artifacts: paths: - problem-2-testing-master/src/ tags: [java] simple_test: stage: test - echo "Testing code for $GITLAB_USER_LOGIN" - cd problem-2-testing-master/src - java edu/bu/ec504/hw3/p2/Main dependencies: - compile tags: [java] competition: stage: compete - echo "Running competition for $GITLAB_USER_LOGIN" - echo "TIMEOUT set to 5 minutes" - curl -o "temp.tar" "https://agile.bu.edu/local/ec504/hw3/p2/problem-2-staff.tar"; - tar -xvf temp.tar - cp -f src/edu/bu/ec504/hw3/p2/MyCanvas.java problem-1-staff/src/edu/bu/ec504/hw3/p2 - cd problem-2-staff/src - javac edu/bu/ec504/hw3/p2/TestCovering.java - java edu/bu/ec504/hw3/Tests/TestCovering $GITLAB_USER_LOGIN dependencies: - simple_test tags: [java] timeout: 5 minutes Loading
.gitlab-ci.yml +40 −2 Original line number Diff line number Diff line stages: # List of stages for jobs, and their order of execution - build - test - compete build-job: # This job runs in the build stage, which runs first. compile: stage: build script: - echo "This should compile the code ... eventually ..." No newline at end of file - echo "Compiling code for $GITLAB_USER_LOGIN" - curl https://agile.bu.edu/gitlab/configs/ec504-configs/hw3/problem-2-testing/-/archive/master/problem-2-testing-master.tar -o test.tar - tar -xvf test.tar - cp -f src/edu/bu/ec504/hw3/p2/MyCanvas.java problem-2-testing-master/src/edu/bu/ec504/hw3/p2/ - cd problem-2-testing-master/src - javac edu/bu/ec504/hw3/p2/Main.java dependencies: - collect artifacts: paths: - problem-2-testing-master/src/ tags: [java] simple_test: stage: test - echo "Testing code for $GITLAB_USER_LOGIN" - cd problem-2-testing-master/src - java edu/bu/ec504/hw3/p2/Main dependencies: - compile tags: [java] competition: stage: compete - echo "Running competition for $GITLAB_USER_LOGIN" - echo "TIMEOUT set to 5 minutes" - curl -o "temp.tar" "https://agile.bu.edu/local/ec504/hw3/p2/problem-2-staff.tar"; - tar -xvf temp.tar - cp -f src/edu/bu/ec504/hw3/p2/MyCanvas.java problem-1-staff/src/edu/bu/ec504/hw3/p2 - cd problem-2-staff/src - javac edu/bu/ec504/hw3/p2/TestCovering.java - java edu/bu/ec504/hw3/Tests/TestCovering $GITLAB_USER_LOGIN dependencies: - simple_test tags: [java] timeout: 5 minutes