Skip to content
Snippets Groups Projects
Commit 6775651e authored by James Lopez's avatar James Lopez
Browse files

Merge branch 'update-ci-template-default-branch-2' into 'master'

Update CI template examples to default branch

See merge request gitlab-org/gitlab!56301
parents 8b902393 2c5a74d0
No related branches found
No related tags found
No related merge requests found
---
title: Update CI template examples to default branch
merge_request: 56301
author:
type: other
Loading
Loading
@@ -10,11 +10,11 @@
 
# Below is the template to run your tests in Julia
.test_template: &test_definition
# Uncomment below if you would like to run the tests on specific references
# only, such as the branches `master`, `development`, etc.
# only:
# - master
# - development
# Uncomment below (and adjust as needed) to run the tests for specific references
# only, such as the default branch, a `development` branch, and so on:
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# - if: $CI_COMMIT_BRANCH == "development"
script:
# Let's run the tests. Substitute `coverage = false` below, if you do not
# want coverage results.
Loading
Loading
@@ -63,8 +63,8 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
# WARNING: This template is using the `julia` images from [Docker
# Hub][3]. One can use custom Julia images and/or the official ones found
Loading
Loading
Loading
Loading
@@ -33,7 +33,8 @@ cache:
script:
- 'mvn $MAVEN_CLI_OPTS verify'
except:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
# Verify merge requests using JDK8
verify:jdk8:
Loading
Loading
@@ -51,4 +52,5 @@ deploy:jdk8:
fi
- 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml'
only:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -24,8 +24,8 @@ before_script:
 
release:
stage: deploy
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
artifacts:
paths:
- build/release/MyProject.exe
Loading
Loading
Loading
Loading
@@ -23,6 +23,6 @@ build:
environment: production
script:
- find . -maxdepth 1 -name '*.json' -print0 | xargs -t0n1 packer build
when: manual
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual
Loading
Loading
@@ -47,5 +47,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -21,8 +21,8 @@ archive_project:
script:
- xcodebuild clean archive -archivePath build/ProjectName -scheme SchemeName
- xcodebuild -exportArchive -exportFormat ipa -archivePath "build/ProjectName.xcarchive" -exportPath "build/ProjectName.ipa" -exportProvisioningProfile "ProvisioningProfileName"
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
artifacts:
paths:
- build/ProjectName.ipa
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment