build: refs #6706 hook test #1988
|
@ -1,6 +1,10 @@
|
|||
#!/usr/bin/env groovy
|
||||
|
||||
{
|
||||
def PROTECTED_BRANCH
|
||||
def FROM_GIT
|
||||
def RUN_TESTS
|
||||
|
||||
before: {
|
||||
switch (env.BRANCH_NAME) {
|
||||
case 'test':
|
||||
env.NODE_ENV = 'test'
|
||||
|
@ -15,15 +19,14 @@
|
|||
env.BACK_REPLICAS = 1
|
||||
}
|
||||
|
||||
def PROTECTED_BRANCH = [
|
||||
PROTECTED_BRANCH = [
|
||||
'dev',
|
||||
'test',
|
||||
'master'
|
||||
].contains(env.BRANCH_NAME)
|
||||
|
||||
def FROM_GIT = env.JOB_NAME.startsWith('gitea/')
|
||||
def RUN_TESTS = !PROTECTED_BRANCH && FROM_GIT
|
||||
|
||||
FROM_GIT = env.JOB_NAME.startsWith('gitea/')
|
||||
RUN_TESTS = !PROTECTED_BRANCH && FROM_GIT
|
||||
|
||||
// Uncomment to enable debugging
|
||||
// https://loopback.io/doc/en/lb3/Setting-debug-strings.html#debug-strings-reference
|
||||
|
|
Loading…
Reference in New Issue