blob: 2be7471253da7a57f997140d4dc387000756af80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/openjdk:8-jdk
environment:
JVM_OPTS: -Xms2048m Xmx4000m
steps:
- 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/GTPP_BuildScript.sh
- run:
name: Run Build Script
command: sh GTPP_BuildScript.sh ${CIRCLE_BUILD_NUM} "${CIRCLE_BRANCH}" "${CIRCLE_USERNAME}" "${CIRCLE_SHA1}" "${CIRCLE_PROJECT_REPONAME}" "${CIRCLE_PROJECT_USERNAME}" "https://github.com/draknyte1/GTplusplus/archive/master.zip"
- 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
|