Commit 316fcc99 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '60819_yamllint_gitlabci' into 'master'

60819 yamllint gitlabci

See merge request gitlab-org/gitlab-ce!29124
parents e7b6dace d2cc841c
...@@ -44,3 +44,4 @@ include: ...@@ -44,3 +44,4 @@ include:
- local: .gitlab/ci/review.gitlab-ci.yml - local: .gitlab/ci/review.gitlab-ci.yml
- local: .gitlab/ci/setup.gitlab-ci.yml - local: .gitlab/ci/setup.gitlab-ci.yml
- local: .gitlab/ci/test-metadata.gitlab-ci.yml - local: .gitlab/ci/test-metadata.gitlab-ci.yml
- local: .gitlab/ci/yaml.gitlab-ci.yml
...@@ -38,11 +38,11 @@ gitlab:assets:compile: ...@@ -38,11 +38,11 @@ gitlab:assets:compile:
- bundle exec rake gitlab:assets:compile - bundle exec rake gitlab:assets:compile
- time scripts/build_assets_image - time scripts/build_assets_image
- scripts/clean-old-cached-assets - scripts/clean-old-cached-assets
- rm -f /etc/apt/sources.list.d/google*.list # We don't need to update Chrome here - rm -f /etc/apt/sources.list.d/google*.list # We don't need to update Chrome here
# Play dependent manual jobs # Play dependent manual jobs
- install_api_client_dependencies_with_apt - install_api_client_dependencies_with_apt
- play_job "review-build-cng" || true # this job might not exist so ignore the failure if it cannot be played - play_job "review-build-cng" || true # this job might not exist so ignore the failure if it cannot be played
- play_job "schedule:review-build-cng" || true # this job might not exist so ignore the failure if it cannot be played - play_job "schedule:review-build-cng" || true # this job might not exist so ignore the failure if it cannot be played
artifacts: artifacts:
name: webpack-report name: webpack-report
expire_in: 31d expire_in: 31d
...@@ -141,8 +141,8 @@ jest: ...@@ -141,8 +141,8 @@ jest:
extends: .dedicated-no-docs-and-no-qa-pull-cache-job extends: .dedicated-no-docs-and-no-qa-pull-cache-job
<<: *use-pg <<: *use-pg
dependencies: dependencies:
- compile-assets - compile-assets
- setup-test-env - setup-test-env
script: script:
- scripts/gitaly-test-spawn - scripts/gitaly-test-spawn
- date - date
...@@ -154,8 +154,8 @@ jest: ...@@ -154,8 +154,8 @@ jest:
expire_in: 31d expire_in: 31d
when: always when: always
paths: paths:
- coverage-frontend/ - coverage-frontend/
- junit_jest.xml - junit_jest.xml
reports: reports:
junit: junit_jest.xml junit: junit_jest.xml
cache: cache:
...@@ -220,7 +220,7 @@ lint:javascript:report: ...@@ -220,7 +220,7 @@ lint:javascript:report:
before_script: [] before_script: []
script: script:
- date - date
- yarn run eslint-report || true # ignore exit code - yarn run eslint-report || true # ignore exit code
artifacts: artifacts:
name: eslint-report name: eslint-report
expire_in: 31d expire_in: 31d
...@@ -235,7 +235,7 @@ jsdoc: ...@@ -235,7 +235,7 @@ jsdoc:
before_script: [] before_script: []
script: script:
- date - date
- yarn run jsdoc || true # ignore exit code - yarn run jsdoc || true # ignore exit code
artifacts: artifacts:
name: jsdoc name: jsdoc
expire_in: 31d expire_in: 31d
......
.dedicated-runner: .dedicated-runner:
retry: retry:
max: 2 # This is confusing but this means "3 runs at max". max: 2 # This is confusing but this means "3 runs at max".
when: when:
- unknown_failure - unknown_failure
- api_failure - api_failure
......
pages: pages:
extends: .dedicated-no-docs-no-db-pull-cache-job extends: .dedicated-no-docs-no-db-pull-cache-job
before_script: [] before_script: []
......
package-and-qa: package-and-qa:
image: ruby:2.6-alpine image: ruby:2.6-alpine
stage: review # So even if review-deploy failed we can still run this stage: review # So even if review-deploy failed we can still run this
when: manual when: manual
before_script: [] before_script: []
dependencies: [] dependencies: []
......
...@@ -136,7 +136,7 @@ setup-test-env: ...@@ -136,7 +136,7 @@ setup-test-env:
stage: prepare stage: prepare
script: script:
- bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init' - bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
- scripts/gitaly-test-build # Do not use 'bundle exec' here - scripts/gitaly-test-build # Do not use 'bundle exec' here
artifacts: artifacts:
expire_in: 7d expire_in: 7d
paths: paths:
...@@ -342,8 +342,8 @@ coverage: ...@@ -342,8 +342,8 @@ coverage:
name: coverage name: coverage
expire_in: 31d expire_in: 31d
paths: paths:
- coverage/index.html - coverage/index.html
- coverage/assets/ - coverage/assets/
except: except:
- /(^docs[\/-].*|.*-docs$)/ - /(^docs[\/-].*|.*-docs$)/
- /(^qa[\/-].*|.*-qa$)/ - /(^qa[\/-].*|.*-qa$)/
# Yamllint of *.yml for .gitlab-ci.yml.
# This uses rules from project root `.yamllint`.
lint-ci-gitlab:
extends: .dedicated-runner
before_script: []
dependencies: []
image: sdesbure/yamllint:latest
script:
- yamllint .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates
# Documentation # Documentation
- source: /doc/(.+?)\.md/ # doc/administration/build_artifacts.md - source: /doc/(.+?)\.md/ # doc/administration/build_artifacts.md
public: '\1.html' # doc/administration/build_artifacts.html public: '\1.html' # doc/administration/build_artifacts.html
---
extends: default
rules:
line-length: disable
document-start: disable
---
title: Fix yaml linting for GitLab CI inside project (.gitlab/ci) *.yml files and CI template files
merge_request: 27576
author: Will Hall
type: fixed
extends: default
rules:
line-length: disable
document-start: disable
...@@ -54,7 +54,7 @@ ensureContainer: ...@@ -54,7 +54,7 @@ ensureContainer:
- rm -f android-signing-keystore.jks || true - rm -f android-signing-keystore.jks || true
artifacts: artifacts:
paths: paths:
- app/build/outputs - app/build/outputs
buildDebug: buildDebug:
extends: .build_job extends: .build_job
...@@ -116,6 +116,6 @@ promoteProduction: ...@@ -116,6 +116,6 @@ promoteProduction:
# We only allow production promotion on `master` because # We only allow production promotion on `master` because
# it has its own production scoped secret variables # it has its own production scoped secret variables
only: only:
- master - master
script: script:
- bundle exec fastlane promote_beta_to_production - bundle exec fastlane promote_beta_to_production
...@@ -6,7 +6,7 @@ image: openjdk:8-jdk ...@@ -6,7 +6,7 @@ image: openjdk:8-jdk
variables: variables:
ANDROID_COMPILE_SDK: "28" ANDROID_COMPILE_SDK: "28"
ANDROID_BUILD_TOOLS: "28.0.2" ANDROID_BUILD_TOOLS: "28.0.2"
ANDROID_SDK_TOOLS: "4333796" ANDROID_SDK_TOOLS: "4333796"
before_script: before_script:
- apt-get --quiet update --yes - apt-get --quiet update --yes
...@@ -35,7 +35,7 @@ assembleDebug: ...@@ -35,7 +35,7 @@ assembleDebug:
- ./gradlew assembleDebug - ./gradlew assembleDebug
artifacts: artifacts:
paths: paths:
- app/build/outputs/ - app/build/outputs/
debugTests: debugTests:
stage: test stage: test
......
...@@ -60,7 +60,7 @@ variables: ...@@ -60,7 +60,7 @@ variables:
stages: stages:
- build - build
- test - test
- deploy # dummy stage to follow the template guidelines - deploy # dummy stage to follow the template guidelines
- review - review
- dast - dast
- staging - staging
......
...@@ -14,10 +14,10 @@ build: ...@@ -14,10 +14,10 @@ build:
artifacts: artifacts:
paths: paths:
- mybinary - mybinary
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
# cache: # cache:
# paths: # paths:
# - "*.o" # - "*.o"
# run tests using the binary built before # run tests using the binary built before
test: test:
......
...@@ -23,31 +23,31 @@ stages: ...@@ -23,31 +23,31 @@ stages:
foodcritic: foodcritic:
stage: lint stage: lint
script: script:
- chef exec foodcritic . - chef exec foodcritic .
cookstyle: cookstyle:
stage: lint stage: lint
script: script:
- chef exec cookstyle . - chef exec cookstyle .
chefspec: chefspec:
stage: test stage: test
script: script:
- chef exec rspec spec - chef exec rspec spec
# Set up your test matrix here. Example: # Set up your test matrix here. Example:
#verify-centos-6: # verify-centos-6:
# stage: functional # stage: functional
# before_script: # before_script:
# - apt-get update # - apt-get update
# - apt-get -y install rsync # - apt-get -y install rsync
# script: # script:
# - kitchen verify default-centos-6 --destroy=always # - kitchen verify default-centos-6 --destroy=always
# #
#verify-centos-7: # verify-centos-7:
# stage: functional # stage: functional
# before_script: # before_script:
# - apt-get update # - apt-get update
# - apt-get -y install rsync # - apt-get -y install rsync
# script: # script:
# - kitchen verify default-centos-7 --destroy=always # - kitchen verify default-centos-7 --destroy=always
...@@ -8,7 +8,7 @@ before_script: ...@@ -8,7 +8,7 @@ before_script:
# If you need to install any external applications, like a # If you need to install any external applications, like a
# postgres client, you may want to uncomment the line below: # postgres client, you may want to uncomment the line below:
# #
#- apt-get update -y # - apt-get update -y
# #
# Retrieve project dependencies # Retrieve project dependencies
# Do this on before_script since it'll be shared between both test and # Do this on before_script since it'll be shared between both test and
...@@ -17,6 +17,6 @@ before_script: ...@@ -17,6 +17,6 @@ before_script:
test: test:
script: script:
# If you need to run any migrations or configure the database, this # If you need to run any migrations or configure the database, this
# would be the point to do it. # would be the point to do it.
- lein test - lein test
...@@ -22,15 +22,15 @@ cache: ...@@ -22,15 +22,15 @@ cache:
# services such as redis or postgres # services such as redis or postgres
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq libxml2-dev - apt-get update -qq && apt-get install -y -qq libxml2-dev
- crystal -v # Print out Crystal version for debugging - crystal -v # Print out Crystal version for debugging
- shards - shards
# If you are using built-in Crystal Spec. # If you are using built-in Crystal Spec.
spec: spec:
script: script:
- crystal spec - crystal spec
# If you are using minitest.cr # If you are using minitest.cr
minitest: minitest:
script: script:
- crystal test/spec_test.cr # change to the file(s) you execute for tests - crystal test/spec_test.cr # change to the file(s) you execute for tests
...@@ -16,19 +16,19 @@ variables: ...@@ -16,19 +16,19 @@ variables:
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache: cache:
paths: paths:
- ~/.cache/pip/ - ~/.cache/pip/
# This is a basic example for a gem or script which doesn't use # This is a basic example for a gem or script which doesn't use
# services such as redis or postgres # services such as redis or postgres
before_script: before_script:
- python -V # Print out python version for debugging - python -V # Print out python version for debugging
# Uncomment next line if your Django app needs a JS runtime: # Uncomment next line if your Django app needs a JS runtime:
# - apt-get update -q && apt-get install nodejs -yqq # - apt-get update -q && apt-get install nodejs -yqq
- pip install -r requirements.txt - pip install -r requirements.txt
# To get Django tests to work you may need to create a settings file using # To get Django tests to work you may need to create a settings file using
# the following DATABASES: # the following DATABASES:
# #
# DATABASES = { # DATABASES = {
# 'default': { # 'default': {
# 'ENGINE': 'django.db.backends.postgresql_psycopg2', # 'ENGINE': 'django.db.backends.postgresql_psycopg2',
...@@ -46,4 +46,4 @@ test: ...@@ -46,4 +46,4 @@ test:
variables: variables:
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
script: script:
- python manage.py test - python manage.py test
...@@ -15,4 +15,4 @@ before_script: ...@@ -15,4 +15,4 @@ before_script:
mix: mix:
script: script:
- mix test - mix test
...@@ -16,21 +16,21 @@ before_script: ...@@ -16,21 +16,21 @@ before_script:
- cd $GOPATH/src/$REPO_NAME - cd $GOPATH/src/$REPO_NAME
stages: stages:
- test - test
- build - build
- deploy - deploy
format: format:
stage: test stage: test
script: script:
- go fmt $(go list ./... | grep -v /vendor/) - go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/) - go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/) - go test -race $(go list ./... | grep -v /vendor/)
compile: compile:
stage: build stage: build
script: script:
- go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary - go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary
artifacts: artifacts:
paths: paths:
- mybinary - mybinary
...@@ -16,25 +16,25 @@ variables: ...@@ -16,25 +16,25 @@ variables:
# We use SDKMan as tool for managing versions # We use SDKMan as tool for managing versions
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq unzip - apt-get update -qq && apt-get install -y -qq unzip
- curl -sSL https://get.sdkman.io | bash - curl -sSL https://get.sdkman.io | bash
- echo sdkman_auto_answer=true > /root/.sdkman/etc/config - echo sdkman_auto_answer=true > /root/.sdkman/etc/config
- source /root/.sdkman/bin/sdkman-init.sh - source /root/.sdkman/bin/sdkman-init.sh
- sdk install gradle $GRADLE_VERSION < /dev/null - sdk install gradle $GRADLE_VERSION < /dev/null
- sdk use gradle $GRADLE_VERSION - sdk use gradle $GRADLE_VERSION
# As it's not a good idea to version gradle.properties feel free to add your # As it's not a good idea to version gradle.properties feel free to add your
# environments variable here # environments variable here
- echo grailsVersion=$GRAILS_VERSION > gradle.properties - echo grailsVersion=$GRAILS_VERSION > gradle.properties
- echo gradleWrapperVersion=2.14 >> gradle.properties - echo gradleWrapperVersion=2.14 >> gradle.properties
# refresh dependencies from your project # refresh dependencies from your project
- ./gradlew --refresh-dependencies - ./gradlew --refresh-dependencies
# Be aware that if you are using Angular profile, # Be aware that if you are using Angular profile,
# Bower cannot be run as root if you don't allow it before. # Bower cannot be run as root if you don't allow it before.
# Feel free to remove next line if you are not using Bower # Feel free to remove next line if you are not using Bower
- echo {\"allow_root\":true} > /root/.bowerrc - echo {\"allow_root\":true} > /root/.bowerrc
# This build job does the full grails pipeline # This build job does the full grails pipeline
# (compile, test, integrationTest, war, assemble). # (compile, test, integrationTest, war, assemble).
build: build:
script: script:
- ./gradlew build - ./gradlew build
...@@ -26,8 +26,8 @@ performance: ...@@ -26,8 +26,8 @@ performance:
- mv sitespeed-results/data/performance.json performance.json - mv sitespeed-results/data/performance.json performance.json
artifacts: artifacts:
paths: paths:
- performance.json - performance.json
- sitespeed-results/ - sitespeed-results/
only: only:
refs: refs:
- branches - branches
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
# want coverage results. # want coverage results.
- julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("MyPackage"); Pkg.test("MyPackage"; coverage = true)' - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("MyPackage"); Pkg.test("MyPackage"; coverage = true)'
# Comment out below if you do not want coverage results. # Comment out below if you do not want coverage results.
- julia -e 'using Pkg; Pkg.add("Coverage"); - julia -e 'using Pkg; Pkg.add("Coverage");
import MyPackage; cd(joinpath(dirname(pathof(MyPackage)), "..")); import MyPackage; cd(joinpath(dirname(pathof(MyPackage)), ".."));
using Coverage; cl, tl = get_summary(process_folder()); using Coverage; cl, tl = get_summary(process_folder());
println("(", cl/tl*100, "%) covered")' println("(", cl/tl*100, "%) covered")'
...@@ -55,17 +55,16 @@ pages: ...@@ -55,17 +55,16 @@ pages:
image: julia:0.7 image: julia:0.7
stage: deploy stage: deploy
script: script:
- apt-get update -qq && apt-get install -y git # needed by Documenter - apt-get update -qq && apt-get install -y git # needed by Documenter
- julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("MyPackage");' # rebuild Julia (can be put somewhere else I'm sure - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("MyPackage");' # rebuild Julia (can be put somewhere else I'm sure
- julia -e 'using Pkg; import MyPackage; Pkg.add("Documenter")' # install Documenter - julia -e 'using Pkg; import MyPackage; Pkg.add("Documenter")' # install Documenter
- julia --color=yes docs/make.jl # make documentation - julia --color=yes docs/make.jl # make documentation
- mv docs/build public # move to the directory picked up by Gitlab pages - mv docs/build public # move to the directory picked up by Gitlab pages
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
# WARNING: This template is using the `julia` images from [Docker # WARNING: This template is using the `julia` images from [Docker
# Hub][3]. One can use custom Julia images and/or the official ones found # Hub][3]. One can use custom Julia images and/or the official ones found
......
...@@ -16,8 +16,8 @@ variables: ...@@ -16,8 +16,8 @@ variables:
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache: cache:
paths: paths:
- vendor/ - vendor/
- node_modules/ - node_modules/
# This is a basic example for a gem or script which doesn't use # This is a basic example for a gem or script which doesn't use
# services such as redis or postgres # services such as redis or postgres
...@@ -37,7 +37,7 @@ before_script: ...@@ -37,7 +37,7 @@ before_script:
- docker-php-ext-enable xdebug - docker-php-ext-enable xdebug
# Install Composer and project dependencies. # Install Composer and project dependencies.
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install - php composer.phar install
# Install Node dependencies. # Install Node dependencies.
# comment this out if you don't have a node dependency # comment this out if you don't have a node dependency
- npm install - npm install
...@@ -63,10 +63,10 @@ before_script: ...@@ -63,10 +63,10 @@ before_script:
test: test:
script: script:
# run laravel tests # run laravel tests
- php vendor/bin/phpunit --coverage-text --colors=never - php vendor/bin/phpunit --coverage-text --colors=never
# run frontend tests # run frontend tests
# if you have any task for testing frontend # if you have any task for testing frontend
# set it in your package.json script # set it in your package.json script
# comment this out if you don't have a frontend test # comment this out if you don't have a frontend test
- npm test - npm test
...@@ -14,14 +14,14 @@ services: ...@@ -14,14 +14,14 @@ services:
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache: cache:
paths: paths:
- node_modules/ - node_modules/
test_async: test_async:
script: script:
- npm install - npm install
- node ./specs/start.js ./specs/async.spec.js - node ./specs/start.js ./specs/async.spec.js
test_db: test_db:
script: script:
- npm install - npm install
- node ./specs/start.js ./specs/db-postgres.spec.js - node ./specs/start.js ./specs/db-postgres.spec.js
image: ayufan/openshift-cli image: ayufan/openshift-cli
stages: stages:
- build # dummy stage to follow the template guidelines - build # dummy stage to follow the template guidelines
- test - test
- deploy # dummy stage to follow the template guidelines - deploy # dummy stage to follow the template guidelines
- review - review
- staging - staging
- production - production
......
...@@ -4,19 +4,19 @@ image: php:7.1.1 ...@@ -4,19 +4,19 @@ image: php:7.1.1
# Select what we should cache between builds # Select what we should cache between builds
cache: cache:
paths: paths:
- vendor/ - vendor/
before_script: before_script:
- apt-get update -yqq - apt-get update -yqq
- apt-get install -yqq git libmcrypt-dev libpq-dev libcurl4-gnutls-dev libicu-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev - apt-get install -yqq git libmcrypt-dev libpq-dev libcurl4-gnutls-dev libicu-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev
# Install PHP extensions # Install PHP extensions
- docker-php-ext-install mbstring mcrypt pdo_pgsql curl json intl gd xml zip bz2 opcache - docker-php-ext-install mbstring mcrypt pdo_pgsql curl json intl gd xml zip bz2 opcache
# Install & enable Xdebug for code coverage reports # Install & enable Xdebug for code coverage reports
- pecl install xdebug - pecl install xdebug
- docker-php-ext-enable xdebug - docker-php-ext-enable xdebug
# Install and run Composer # Install and run Composer
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install - php composer.phar install
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service # Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
# See http://docs.gitlab.com/ce/ci/services/README.html for examples. # See http://docs.gitlab.com/ce/ci/services/README.html for examples.
...@@ -33,4 +33,4 @@ variables: ...@@ -33,4 +33,4 @@ variables:
# If Xdebug was installed you can generate a coverage report and see code coverage metrics. # If Xdebug was installed you can generate a coverage report and see code coverage metrics.
test: test:
script: script:
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never
\ No newline at end of file
...@@ -4,12 +4,12 @@ image: node:4.2.2 ...@@ -4,12 +4,12 @@ image: node:4.2.2
pages: pages:
cache: cache:
paths: paths:
- node_modules/ - node_modules/
script: script:
- npm install -g brunch - npm install -g brunch
- brunch build --production - brunch build --production
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -3,11 +3,11 @@ image: alpine ...@@ -3,11 +3,11 @@ image: alpine
pages: pages:
script: script:
- apk update && apk add doxygen - apk update && apk add doxygen
- doxygen doxygen/Doxyfile - doxygen doxygen/Doxyfile
- mv doxygen/documentation/html/ public/ - mv doxygen/documentation/html/ public/
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -4,14 +4,14 @@ image: node:latest ...@@ -4,14 +4,14 @@ image: node:latest
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache: cache:
paths: paths:
- node_modules/ - node_modules/
pages: pages:
script: script:
- yarn install - yarn install
- ./node_modules/.bin/gatsby build --prefix-paths - ./node_modules/.bin/gatsby build --prefix-paths
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
pages: pages:
stage: deploy stage: deploy
script: script:
- mkdir .public - mkdir .public
- cp -r * .public - cp -r * .public
- mv .public public - mv .public public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -4,12 +4,12 @@ image: node:4.2.2 ...@@ -4,12 +4,12 @@ image: node:4.2.2
pages: pages:
cache: cache:
paths: paths:
- node_modules - node_modules
script: script:
- npm install -g harp - npm install -g harp
- harp compile ./ public - harp compile ./ public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -3,15 +3,15 @@ image: node:10.15.3 ...@@ -3,15 +3,15 @@ image: node:10.15.3
pages: pages:
script: script:
- npm install hexo-cli -g - npm install hexo-cli -g
- test -e package.json && npm install - test -e package.json && npm install
- hexo generate - hexo generate
artifacts: artifacts:
paths: paths:
- public - public
cache: cache:
paths: paths:
- node_modules - node_modules
key: project key: project
only: only:
- master - master
...@@ -3,15 +3,15 @@ image: dettmering/hugo-build ...@@ -3,15 +3,15 @@ image: dettmering/hugo-build
pages: pages:
script: script:
- hugo - hugo
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
test: test:
script: script:
- hugo - hugo
except: except:
- master - master
...@@ -3,7 +3,7 @@ image: python:2.7 ...@@ -3,7 +3,7 @@ image: python:2.7
cache: cache:
paths: paths:
- vendor/ - vendor/
test: test:
stage: test stage: test
...@@ -20,6 +20,6 @@ pages: ...@@ -20,6 +20,6 @@ pages:
- hyde gen -d public - hyde gen -d public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -4,28 +4,28 @@ ...@@ -4,28 +4,28 @@
# JBake https://jbake.org/ is a Java based, open source, static site/blog generator for developers & designers # JBake https://jbake.org/ is a Java based, open source, static site/blog generator for developers & designers
# #
# This yml works with jBake 2.5.1 # This yml works with jBake 2.5.1
# Feel free to change JBAKE_VERSION version # Feel free to change JBAKE_VERSION version
# #
# HowTo at: https://jorge.aguilera.gitlab.io/howtojbake/ # HowTo at: https://jorge.aguilera.gitlab.io/howtojbake/
image: java:8 image: java:8
variables: variables:
JBAKE_VERSION: 2.5.1 JBAKE_VERSION: 2.5.1
# We use SDKMan as tool for managing versions # We use SDKMan as tool for managing versions
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq unzip zip - apt-get update -qq && apt-get install -y -qq unzip zip
- curl -sSL https://get.sdkman.io | bash - curl -sSL https://get.sdkman.io | bash
- echo sdkman_auto_answer=true > /root/.sdkman/etc/config - echo sdkman_auto_answer=true > /root/.sdkman/etc/config
- source /root/.sdkman/bin/sdkman-init.sh - source /root/.sdkman/bin/sdkman-init.sh
- sdk install jbake $JBAKE_VERSION < /dev/null - sdk install jbake $JBAKE_VERSION < /dev/null
- sdk use jbake $JBAKE_VERSION - sdk use jbake $JBAKE_VERSION
# This build job produced the output directory of your site # This build job produced the output directory of your site
pages: pages:
script: script:
- jbake . public - jbake . public
artifacts: artifacts:
paths: paths:
- public - public
...@@ -6,25 +6,24 @@ variables: ...@@ -6,25 +6,24 @@ variables:
JEKYLL_ENV: production JEKYLL_ENV: production
before_script: before_script:
- bundle install - bundle install
test: test:
stage: test stage: test
script: script:
- bundle exec jekyll build -d test - bundle exec jekyll build -d test
artifacts: artifacts:
paths: paths:
- test - test
except: except:
- master - master
pages: pages:
stage: deploy stage: deploy
script: script:
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -7,8 +7,8 @@ image: php:7.2 ...@@ -7,8 +7,8 @@ image: php:7.2
# These folders are cached between builds # These folders are cached between builds
cache: cache:
paths: paths:
- vendor/ - vendor/
- node_modules/ - node_modules/
before_script: before_script:
# Update packages # Update packages
...@@ -28,10 +28,10 @@ before_script: ...@@ -28,10 +28,10 @@ before_script:
pages: pages:
script: script:
- npm run production - npm run production
- mv build_production public - mv build_production public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -3,10 +3,10 @@ image: python:2.7 ...@@ -3,10 +3,10 @@ image: python:2.7
pages: pages:
script: script:
- pip install lektor - pip install lektor
- lektor build --output-path public - lektor build --output-path public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -4,13 +4,13 @@ image: node:4.2.2 ...@@ -4,13 +4,13 @@ image: node:4.2.2
pages: pages:
cache: cache:
paths: paths:
- node_modules/ - node_modules/
script: script:
- npm install -g metalsmith - npm install -g metalsmith
- npm install - npm install
- make build - make build
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -3,25 +3,25 @@ image: ruby:2.3 ...@@ -3,25 +3,25 @@ image: ruby:2.3
cache: cache:
paths: paths:
- vendor - vendor
test: test:
script: script:
- apt-get update -yqqq - apt-get update -yqqq
- apt-get install -y nodejs - apt-get install -y nodejs
- bundle install --path vendor - bundle install --path vendor
- bundle exec middleman build - bundle exec middleman build
except: except:
- master - master
pages: pages:
script: script:
- apt-get update -yqqq - apt-get update -yqqq
- apt-get install -y nodejs - apt-get install -y nodejs
- bundle install --path vendor - bundle install --path vendor
- bundle exec middleman build - bundle exec middleman build
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -3,10 +3,10 @@ image: ruby:2.3 ...@@ -3,10 +3,10 @@ image: ruby:2.3
pages: pages:
script: script:
- bundle install -j4 - bundle install -j4
- nanoc - nanoc
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -3,13 +3,13 @@ image: ruby:2.3 ...@@ -3,13 +3,13 @@ image: ruby:2.3
pages: pages:
script: script:
- apt-get update -qq && apt-get install -qq nodejs - apt-get update -qq && apt-get install -qq nodejs
- bundle install -j4 - bundle install -j4
- bundle exec rake generate - bundle exec rake generate
- mv public .public - mv public .public
- mv .public/octopress public - mv .public/octopress public
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -3,8 +3,8 @@ image: python:2.7-alpine ...@@ -3,8 +3,8 @@ image: python:2.7-alpine
pages: pages:
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt
- pelican -s publishconf.py - pelican -s publishconf.py
artifacts: artifacts:
paths: paths:
- public/ - public/
...@@ -18,34 +18,34 @@ cache: ...@@ -18,34 +18,34 @@ cache:
- venv/ - venv/
before_script: before_script:
- python -V # Print out python version for debugging - python -V # Print out python version for debugging
- pip install virtualenv - pip install virtualenv
- virtualenv venv - virtualenv venv
- source venv/bin/activate - source venv/bin/activate
test: test:
script: script:
- python setup.py test - python setup.py test
- pip install tox flake8 # you can also use tox - pip install tox flake8 # you can also use tox
- tox -e py36,flake8 - tox -e py36,flake8
run: run:
script: script:
- python setup.py bdist_wheel - python setup.py bdist_wheel
# an alternative approach is to install and run: # an alternative approach is to install and run:
- pip install dist/* - pip install dist/*
# run the command here # run the command here
artifacts: artifacts:
paths: paths:
- dist/*.whl - dist/*.whl
pages: pages:
script: script:
- pip install sphinx sphinx-rtd-theme - pip install sphinx sphinx-rtd-theme
- cd doc ; make html - cd doc ; make html
- mv build/html/ ../public/ - mv build/html/ ../public/
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - master
...@@ -21,7 +21,7 @@ cache: ...@@ -21,7 +21,7 @@ cache:
# This is a basic example for a gem or script which doesn't use # This is a basic example for a gem or script which doesn't use
# services such as redis or postgres # services such as redis or postgres
before_script: before_script:
- ruby -v # Print out ruby version for debugging - ruby -v # Print out ruby version for debugging
# Uncomment next line if your rails app needs a JS runtime: # Uncomment next line if your rails app needs a JS runtime:
# - apt-get update -q && apt-get install nodejs -yqq # - apt-get update -q && apt-get install nodejs -yqq
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby - bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
...@@ -29,19 +29,19 @@ before_script: ...@@ -29,19 +29,19 @@ before_script:
# Optional - Delete if not using `rubocop` # Optional - Delete if not using `rubocop`
rubocop: rubocop:
script: script:
- rubocop - rubocop
rspec: rspec:
script: script:
- rspec spec - rspec spec
rails: rails:
variables: variables:
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
script: script:
- rails db:migrate - rails db:migrate
- rails db:seed - rails db:seed
- rails test - rails test
# This deploy job uses a simple deploy flow to Heroku, other providers, e.g. AWS Elastic Beanstalk # This deploy job uses a simple deploy flow to Heroku, other providers, e.g. AWS Elastic Beanstalk
# are supported too: https://github.com/travis-ci/dpl # are supported too: https://github.com/travis-ci/dpl
...@@ -49,5 +49,5 @@ deploy: ...@@ -49,5 +49,5 @@ deploy:
type: deploy type: deploy
environment: production environment: production
script: script:
- gem install dpl - gem install dpl
- dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_PRODUCTION_KEY - dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_PRODUCTION_KEY
...@@ -5,19 +5,19 @@ image: "rust:latest" ...@@ -5,19 +5,19 @@ image: "rust:latest"
# Optional: Pick zero or more services to be used on all builds. # Optional: Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in. # Only needed when using a docker container to run your tests in.
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service # Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
#services: # services:
# - mysql:latest # - mysql:latest
# - redis:latest # - redis:latest
# - postgres:latest # - postgres:latest
# Optional: Install a C compiler, cmake and git into the container. # Optional: Install a C compiler, cmake and git into the container.
# You will often need this when you (or any of your dependencies) depends on C code. # You will often need this when you (or any of your dependencies) depends on C code.
#before_script: # before_script:
#- apt-get update -yqq # - apt-get update -yqq
#- apt-get install -yqq --no-install-recommends build-essential # - apt-get install -yqq --no-install-recommends build-essential
# Use cargo to test the project # Use cargo to test the project
test:cargo: test:cargo:
script: script:
- rustc --version && cargo --version # Print version info for debugging - rustc --version && cargo --version # Print version info for debugging
- cargo test --all --verbose - cargo test --all --verbose
...@@ -15,22 +15,22 @@ dast: ...@@ -15,22 +15,22 @@ dast:
image: image:
name: "registry.gitlab.com/gitlab-org/security-products/dast:$CI_SERVER_VERSION_MAJOR-$CI_SERVER_VERSION_MINOR-stable" name: "registry.gitlab.com/gitlab-org/security-products/dast:$CI_SERVER_VERSION_MAJOR-$CI_SERVER_VERSION_MINOR-stable"
variables: variables:
# URL to scan: # URL to scan:
# DAST_WEBSITE: https://example.com/ # DAST_WEBSITE: https://example.com/
# #
# Time limit for target availability (scan is attempted even when timeout): # Time limit for target availability (scan is attempted even when timeout):
# DAST_TARGET_AVAILABILITY_TIMEOUT: 60 # DAST_TARGET_AVAILABILITY_TIMEOUT: 60
# #
# Set these variables to scan with an authenticated user: # Set these variables to scan with an authenticated user:
# DAST_AUTH_URL: https://example.com/sign-in # DAST_AUTH_URL: https://example.com/sign-in
# DAST_USERNAME: john.doe@example.com # DAST_USERNAME: john.doe@example.com
# DAST_PASSWORD: john-doe-password # DAST_PASSWORD: john-doe-password
# DAST_USERNAME_FIELD: session[user] # the name of username field at the sign-in HTML form # DAST_USERNAME_FIELD: session[user] # the name of username field at the sign-in HTML form
# DAST_PASSWORD_FIELD: session[password] # the name of password field at the sign-in HTML form # DAST_PASSWORD_FIELD: session[password] # the name of password field at the sign-in HTML form
# DAST_AUTH_EXCLUDE_URLS: http://example.com/sign-out,http://example.com/sign-out-2 # optional: URLs to skip during the authenticated scan; comma-separated, no spaces in between # DAST_AUTH_EXCLUDE_URLS: http://example.com/sign-out,http://example.com/sign-out-2 # optional: URLs to skip during the authenticated scan; comma-separated, no spaces in between
# #
# Perform ZAP Full Scan, which includes both passive and active scanning: # Perform ZAP Full Scan, which includes both passive and active scanning:
# DAST_FULL_SCAN_ENABLED: "true" # DAST_FULL_SCAN_ENABLED: "true"
allow_failure: true allow_failure: true
script: script:
- export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)} - export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)}
......
# Read more about this feature here: https://docs.gitlab.com/ee/user/project/merge_requests/license_management.html # Read more about this feature here: https://docs.gitlab.com/ee/user/project/merge_requests/license_management.html
variables: variables:
LICENSE_MANAGEMENT_SETUP_CMD: '' # If needed, specify a command to setup your environment with a custom package manager. LICENSE_MANAGEMENT_SETUP_CMD: '' # If needed, specify a command to setup your environment with a custom package manager.
license_management: license_management:
stage: test stage: test
......
...@@ -25,7 +25,7 @@ archive_project: ...@@ -25,7 +25,7 @@ archive_project:
- master - master
artifacts: artifacts:
paths: paths:
- build/ProjectName.ipa - build/ProjectName.ipa
tags: tags:
- ios_11-3 - ios_11-3
- xcode_9-3 - xcode_9-3
......
# This is a simple example illustrating how to build and test .NET Core project ---
# This is a simple example illustrating how to build and test .NET Core project
# with GitLab Continuous Integration / Continuous Delivery. # with GitLab Continuous Integration / Continuous Delivery.
# ### Specify the Docker image # ### Specify the Docker image
...@@ -17,21 +18,21 @@ image: microsoft/dotnet:latest ...@@ -17,21 +18,21 @@ image: microsoft/dotnet:latest
# ### Define variables # ### Define variables
# #
variables: variables:
# 1) Name of directory where restore and build objects are stored. # 1) Name of directory where restore and build objects are stored.
OBJECTS_DIRECTORY: 'obj' OBJECTS_DIRECTORY: 'obj'
# 2) Name of directory used for keeping restored dependencies. # 2) Name of directory used for keeping restored dependencies.
NUGET_PACKAGES_DIRECTORY: '.nuget' NUGET_PACKAGES_DIRECTORY: '.nuget'
# 3) A relative path to the source code from project repository root. # 3) A relative path to the source code from project repository root.
# NOTE: Please edit this path so it matches the structure of your project! # NOTE: Please edit this path so it matches the structure of your project!
SOURCE_CODE_PATH: '*/*/' SOURCE_CODE_PATH: '*/*/'
# ### Define stage list # ### Define stage list
# #
# In this example there are only two stages. # In this example there are only two stages.
# Initially, the project will be built and then tested. # Initially, the project will be built and then tested.
stages: stages:
- build - build
- test - test
# ### Define global cache rule # ### Define global cache rule
# #
...@@ -50,31 +51,31 @@ stages: ...@@ -50,31 +51,31 @@ stages:
# With global cache rule, cached dependencies will be downloaded before every job # With global cache rule, cached dependencies will be downloaded before every job
# and then unpacked to the paths as specified below. # and then unpacked to the paths as specified below.
cache: cache:
# Per-stage and per-branch caching. # Per-stage and per-branch caching.
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG" key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
paths: paths:
# Specify three paths that should be cached: # Specify three paths that should be cached:
#
# 1) Main JSON file holding information about package dependency tree, packages versions,
# frameworks etc. It also holds information where to the dependencies were restored.
- '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/project.assets.json'
# 2) Other NuGet and MSBuild related files. Also needed.
- '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/*.csproj.nuget.*'
# 3) Path to the directory where restored dependencies are kept.
- '$NUGET_PACKAGES_DIRECTORY'
# #
# 1) Main JSON file holding information about package dependency tree, packages versions, # 'pull-push' policy means that latest cache will be downloaded (if it exists)
# frameworks etc. It also holds information where to the dependencies were restored. # before executing the job, and a newer version will be uploaded afterwards.
- '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/project.assets.json' # Such a setting saves time when there are no changes in referenced third-party
# 2) Other NuGet and MSBuild related files. Also needed. # packages.
- '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/*.csproj.nuget.*' #
# 3) Path to the directory where restored dependencies are kept. # For example, if you run a pipeline with changes in your code,
- '$NUGET_PACKAGES_DIRECTORY' # but with no changes within third-party packages which your project is using,
# # then project restore will happen quickly as all required dependencies
# 'pull-push' policy means that latest cache will be downloaded (if it exists) # will already be there — unzipped from cache.
# before executing the job, and a newer version will be uploaded afterwards.
# Such a setting saves time when there are no changes in referenced third-party
# packages.
#
# For example, if you run a pipeline with changes in your code,
# but with no changes within third-party packages which your project is using,
# then project restore will happen quickly as all required dependencies
# will already be there — unzipped from cache.
# 'pull-push' policy is the default cache policy, you do not have to specify it explicitly. # 'pull-push' policy is the default cache policy, you do not have to specify it explicitly.
policy: pull-push policy: pull-push
# ### Restore project dependencies # ### Restore project dependencies
# #
...@@ -87,30 +88,30 @@ cache: ...@@ -87,30 +88,30 @@ cache:
# #
# Learn more about GitLab cache: https://docs.gitlab.com/ee/ci/caching/index.html # Learn more about GitLab cache: https://docs.gitlab.com/ee/ci/caching/index.html
before_script: before_script:
- 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY' - 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY'
build: build:
stage: build stage: build
# ### Build all projects discovered from solution file. # ### Build all projects discovered from solution file.
# #
# Note: this will fail if you have any projects in your solution that are not # Note: this will fail if you have any projects in your solution that are not
# .NET Core-based projects (e.g. WCF service), which is based on .NET Framework, # .NET Core-based projects (e.g. WCF service), which is based on .NET Framework,
# not .NET Core. In this scenario, you will need to build every .NET Core-based # not .NET Core. In this scenario, you will need to build every .NET Core-based
# project by explicitly specifying a relative path to the directory # project by explicitly specifying a relative path to the directory
# where it is located (e.g. 'dotnet build ./src/ConsoleApp'). # where it is located (e.g. 'dotnet build ./src/ConsoleApp').
# Only one project path can be passed as a parameter to 'dotnet build' command. # Only one project path can be passed as a parameter to 'dotnet build' command.
script: script:
- 'dotnet build --no-restore' - 'dotnet build --no-restore'
tests: tests:
stage: test stage: test
# ### Run the tests # ### Run the tests
# #
# You can either run tests for all test projects that are defined in your solution # You can either run tests for all test projects that are defined in your solution
# with 'dotnet test' or run tests only for specific project by specifying # with 'dotnet test' or run tests only for specific project by specifying
# a relative path to the directory where it is located (e.g. 'dotnet test ./test/UnitTests'). # a relative path to the directory where it is located (e.g. 'dotnet test ./test/UnitTests').
# #
# You may want to define separate testing jobs for different types of testing # You may want to define separate testing jobs for different types of testing
# (e.g. integration tests, unit tests etc). # (e.g. integration tests, unit tests etc).
script: script:
- 'dotnet test --no-restore' - 'dotnet test --no-restore'
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
# (located in gitlab-runner.exe directory): # (located in gitlab-runner.exe directory):
# shell = "powershell" # shell = "powershell"
# #
# The script is composed of 3 stages: build, test and deploy. # The script is composed of 3 stages: build, test and deploy.
# #
# The build stage restores NuGet packages and uses msbuild to build the exe and msi # The build stage restores NuGet packages and uses msbuild to build the exe and msi
# One major issue you'll find is that you can't build msi projects from command line # One major issue you'll find is that you can't build msi projects from command line
# if you use vdproj. There are workarounds building msi via devenv, but they rarely work # if you use vdproj. There are workarounds building msi via devenv, but they rarely work
# The best solution is migrating your vdproj projects to WiX, as it can be build directly # The best solution is migrating your vdproj projects to WiX, as it can be build directly
# by msbuild. # by msbuild.
# #
# The test stage runs nunit from command line against Test project inside your solution # The test stage runs nunit from command line against Test project inside your solution
...@@ -38,28 +38,28 @@ stages: ...@@ -38,28 +38,28 @@ stages:
build_job: build_job:
stage: build stage: build
only: only:
- tags # the build process will only be started by git tag commits - tags # the build process will only be started by git tag commits
script: script:
- '& "$env:NUGET_PATH" restore' # restore Nuget dependencies - '& "$env:NUGET_PATH" restore' # restore Nuget dependencies
- '& "$env:MSBUILD_PATH" /p:Configuration=Release' # build the project - '& "$env:MSBUILD_PATH" /p:Configuration=Release' # build the project
artifacts: artifacts:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths: paths:
- '$env:EXE_RELEASE_FOLDER\YourApp.exe' # saving exe to copy to deploy folder - '$env:EXE_RELEASE_FOLDER\YourApp.exe' # saving exe to copy to deploy folder
- '$env:MSI_RELEASE_FOLDER\YourApp Setup.msi' # saving msi to copy to deploy folder - '$env:MSI_RELEASE_FOLDER\YourApp Setup.msi' # saving msi to copy to deploy folder
- '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests - '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
test_job: test_job:
stage: test stage: test
only: only:
- tags - tags
script: script:
- '& "$env:NUNIT_PATH" ".\$env:TEST_FOLDER\Tests.dll"' # running NUnit tests - '& "$env:NUNIT_PATH" ".\$env:TEST_FOLDER\Tests.dll"' # running NUnit tests
artifacts: artifacts:
when: always # save test results even when the task fails when: always # save test results even when the task fails
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths: paths:
- '.\TestResult.xml' # saving NUnit results to copy to deploy folder - '.\TestResult.xml' # saving NUnit results to copy to deploy folder
dependencies: dependencies:
- build_job - build_job
...@@ -79,7 +79,6 @@ deploy_job: ...@@ -79,7 +79,6 @@ deploy_job:
- 'xcopy /y ".\$env:EXE_RELEASE_FOLDER\YourApp.exe" "$deployFolder"' - 'xcopy /y ".\$env:EXE_RELEASE_FOLDER\YourApp.exe" "$deployFolder"'
- 'xcopy /y ".\$env:MSI_RELEASE_FOLDER\YourApp Setup.msi" "$deployFolder"' - 'xcopy /y ".\$env:MSI_RELEASE_FOLDER\YourApp Setup.msi" "$deployFolder"'
- 'xcopy /y ".\TestResult.xml" "$deployFolder"' - 'xcopy /y ".\TestResult.xml" "$deployFolder"'
dependencies: dependencies:
- build_job - build_job
- test_job - test_job
# This is a very simple template that mainly relies on FastLane to build and distribute your app. # This is a very simple template that mainly relies on FastLane to build and distribute your app.
# Read more about how to use this template on the blog post https://about.gitlab.com/2019/03/06/ios-publishing-with-gitlab-and-fastlane/ # Read more about how to use this template on the blog post https://about.gitlab.com/2019/03/06/ios-publishing-with-gitlab-and-fastlane/
# You will also need fastlane and signing configuration for this to work, along with a MacOS runner. # You will also need fastlane and signing configuration for this to work, along with a MacOS runner.
# These details are provided in the blog post. # These details are provided in the blog post.
# Note that when you're using the shell executor for MacOS builds, the # Note that when you're using the shell executor for MacOS builds, the
# build and tests run as the identity of the runner logged in user, directly on # build and tests run as the identity of the runner logged in user, directly on
# the build host. This is less secure than using container executors, so please # the build host. This is less secure than using container executors, so please
# take a look at our security implications documentation at # take a look at our security implications documentation at
# https://docs.gitlab.com/runner/security/#usage-of-shell-executor for additional # https://docs.gitlab.com/runner/security/#usage-of-shell-executor for additional
# detail on what to keep in mind in this scenario. # detail on what to keep in mind in this scenario.
stages: stages:
...@@ -27,4 +27,4 @@ build: ...@@ -27,4 +27,4 @@ build:
- bundle exec fastlane build - bundle exec fastlane build
artifacts: artifacts:
paths: paths:
- ./*.ipa - ./*.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