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
---
title: Update CI template examples to default branch
merge_request: 56301
author:
type: other
......@@ -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.
......@@ -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
......
......@@ -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:
......@@ -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
......@@ -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
......
......@@ -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
......@@ -47,5 +47,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment