version: 2 jobs: build: working_directory: ~/repo docker: - image: circleci/openjdk:8-jdk environment: JVM_OPTS: -Xms2048m Xmx4000m steps: - add_ssh_keys: fingerprints: - "17:37:c7:07:d3:2b:a9:b8:b8:8f:e8:d5:23:fd:9a:4c" - checkout - run: name: Set Terminal command: export TERM=${TERM:-dumb} # && ./gradlew clean build - run: sudo chmod +x gradlew # Build Forge and MCP - run: name: Download Resource Builder [MCP/Forge] command: wget https://alkcorp.overminddl1.com/GTPP_BuildRepo.sh - restore_cache: key: jars-{{ checksum "GTPP_BuildRepo.sh" }}-{{ checksum "GTPP_BuildRepo.sh" }} - run: name: Run Resource Builder [MCP/Forge] command: sh GTPP_BuildRepo.sh # Cache All Libs - save_cache: paths: - ~/.gradle - ~/home/circleci/repo key: jars-{{ checksum "GTPP_BuildRepo.sh" }}-{{ checksum "GTPP_BuildRepo.sh" }} # Build Mod - run: name: Download Build Script command: wget https://alkcorp.overminddl1.com/Build_1_Master.sh - run: name: Run Master Script command: sh Build_1_Master.sh ${CIRCLE_BUILD_NUM} "${CIRCLE_BRANCH}" "${CIRCLE_USERNAME}" "${CIRCLE_SHA1}" "${CIRCLE_PROJECT_REPONAME}" "${CIRCLE_PROJECT_USERNAME}" "https://bitbucket.org/draknyte1/gtpp-development/get/cb20041176eb.zip" - run: name: Run Build Script command: sh RunScript.sh "17:37:c7:07:d3:2b:a9:b8:b8:8f:e8:d5:23:fd:9a:4c" - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ path: build/libs #destination: builds #- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ #path: build/libs # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples