-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.docif
executable file
·105 lines (86 loc) · 4.06 KB
/
config.docif
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
#
# A sample config file for DoCIF
#
# This is just a shell file that is sourced by DoCIF scripts.
# @REQUIRED
# A docker baseimage repostiory. Create one on the docker hub
BASEIMAGE_REPO="jgkamat/mule-baseimage"
# If true, ${BASEIMAGE_REPO}:master is pushed when on master.
# Defaults to false.
PUSH_BASEIMAGE="true"
# @REQUIRED
# The github repository location, for sendings status updates to
# This is CASE SENSITIVE!!
GITHUB_REPO='MountainRange/MULE'
# The url to point to when a status check is pending.
# Will point to https://github.com/jgkamat/DoCIF if unset.
PENDING_URL="https://github.com/jgkamat/DoCIF"
# A custom dockerfile, for advanced setup
# DO NOT SET THIS IF YOU ARE A FIRST TIME USER.
# See ./commands/Dockerfile for the default dockerfile
# This file is in relation to you'r project's root.
CUSTOM_DOCKERFILE="./docker/Dockerfile"
############################## Variable Names ##################################
# These are the variables that will hold secrets and such.
# In this example, DOCKER_PASS needs to be set to the docker hub password
# This can be done through the CircleCi GUI or Travis CI secrets
DOCKER_PASSWORD_VAR="DOCKER_PASS"
DOCKER_EMAIL_VAR="DOCKER_EMAIL"
DOCKER_USER_VAR="DOCKER_USER"
# This would be insecure, but you can do it below. You should add these vars to
# circle protected environment variables if you are concerned about security
# DOCKER_EMAIL="[email protected]"
# Status token is used for updating status
GH_STATUS_TOKEN_VAR="GH_STATUS"
# Variable holing the username of the Status Token
GH_USER_VAR="GH_USER"
# Variable holing the email of the Status Token
GH_EMAIL_VAR="GH_EMAIL"
################################################################################
# Cache directories, not required.
# Directories to link to the docker container for each build and persist between builds. Add to circle.yml as well.
# for caching on their servers
# YOU MUST USE ~ IN YOUR PATH (NO $HOME), SO WE KNOW WHERE TO LINK TO INSIDE THE CONTAINER.
# This directory MUST BE ADDED TO circle.yml AS WELL IN ORDER FOR ACTUAL CACHING TO TAKE PLACE
# CACHE_DIRECTORIES=()
# CACHE_DIRECTORIES+=('./build')
################################# COMMANDS #####################################
# The script to set up the environment, by default ubuntu.
# YOU WILL NEED TO USE SUDO TO GET ROOT PRIVLEGES HERE
SETUP_COMMAND="sudo apt-get update && sudo apt-get -y install openjfx && ./gradlew dependencies"
# SETUP_COMMAND="./ubuntu-setup-script"
# DOCIF can cache baseimages, if you give it files that will force a rebuild if changed.
# Include the setup script itself, as well as any dependency files
# Leaving this blank will turn off caching
SETUP_SHA_FILES=()
SETUP_SHA_FILES+=("./deploy.sh")
SETUP_SHA_FILES+=("./config.docif")
# @REQUIRED
# Commands to run when testing. Each index will have it's own status token
# Commands are in this format
# COMMAND; SHORT_NAME; DESCRIPTION
TEST_COMMANDS=()
TEST_COMMANDS+=( './gradlew assemble;compile;A test to see if the code compiles' )
TEST_COMMANDS+=( './gradlew check;test;A test to see if tests pass' )
TEST_COMMANDS+=( './gradlew jacocoTestReport coveralls;coverage;A test to check coverage' )
# TEST_COMMANDS+=( 'make test-cpp;test-cpp;A test to see if the code passes cpp tests' )
# @RECCOMENDED
# Clean command. Cleans the build files so there is no way the previous build can interfere. Add if you run
# into issues
# CLEAN_COMMAND="rm -rf ./build/*"
# Other options are `gradle clean`, `mvn clean`, or `rm -rf build`
# Environmental variables to make available to the build environment
ENV_VARS=()
ENV_VARS+=("GH_TOKEN") # To be used by autoupdating script
ENV_VARS+=("GH_NAME") # To be used by autoupdating script
ENV_VARS+=("GH_EMAIL") # To be used by autoupdating script
# Coveralls
ENV_VARS+=("COVERALLS_REPO_TOKEN")
ENV_VARS+=("CIRCLE_BUILD_NUM")
ENV_VARS+=("CIRCLE_BRANCH")
ENV_VARS+=("CIRCLE_SHA1")
# Command to run when deploying. Leave blank for no deploy.
# Make sure any secrets these commands need are added to ENV_VARS
DEPLOY_COMMAND="./deploy.sh"
################################################################################