Commit a99fcc0c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch '57598-use-vendored-files-for-ci-config' into 'master'

Resolve "Use vendored files for CI config"

Closes #57598

See merge request gitlab-org/gitlab-ce!25871
parents c7fc0bf5 dfacd3a0
image: "dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.5.3-golang-1.11-git-2.18-chrome-71.0-node-10.x-yarn-1.12-postgresql-9.6-graphicsmagick-1.3.29" image: "dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.5.3-golang-1.11-git-2.18-chrome-71.0-node-10.x-yarn-1.12-postgresql-9.6-graphicsmagick-1.3.29"
include:
- local: /lib/gitlab/ci/templates/Code-Quality.gitlab-ci.yml
.dedicated-runner: &dedicated-runner .dedicated-runner: &dedicated-runner
retry: 1 retry: 1
tags: tags:
...@@ -774,31 +777,14 @@ jest: ...@@ -774,31 +777,14 @@ jest:
code_quality: code_quality:
<<: *dedicated-no-docs-no-db-pull-cache-job <<: *dedicated-no-docs-no-db-pull-cache-job
image: docker:stable
allow_failure: true
# gitlab-org runners set `privileged: false` but we need to have it set to true # gitlab-org runners set `privileged: false` but we need to have it set to true
# since we're using Docker in Docker # since we're using Docker in Docker
tags: [] tags: []
before_script: [] before_script: []
services:
- docker:stable-dind
variables:
SETUP_DB: "false"
DOCKER_DRIVER: overlay2
cache: {} cache: {}
dependencies: [] dependencies: []
script: variables:
# Extract "MAJOR.MINOR" from CI_SERVER_VERSION and generate "MAJOR-MINOR-stable" for Security Products SETUP_DB: "false"
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
reports:
codequality: gl-code-quality-report.json
expire_in: 1 week
sast: sast:
<<: *dedicated-no-docs-no-db-pull-cache-job <<: *dedicated-no-docs-no-db-pull-cache-job
......
...@@ -118,4 +118,3 @@ promoteProduction: ...@@ -118,4 +118,3 @@ promoteProduction:
- master - master
script: script:
- bundle exec fastlane promote_beta_to_production - bundle exec fastlane promote_beta_to_production
\ No newline at end of file
...@@ -7,28 +7,28 @@ before_script: ...@@ -7,28 +7,28 @@ before_script:
- echo "Before script section" - echo "Before script section"
- echo "For example you might run an update here or install a build dependency" - echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details" - echo "Or perhaps you might print out some debugging details"
after_script: after_script:
- echo "After script section" - echo "After script section"
- echo "For example you might do some cleanup here" - echo "For example you might do some cleanup here"
build1: build1:
stage: build stage: build
script: script:
- echo "Do your build here" - echo "Do your build here"
test1: test1:
stage: test stage: test
script: script:
- echo "Do a test here" - echo "Do a test here"
- echo "For example run a test suite" - echo "For example run a test suite"
test2: test2:
stage: test stage: test
script: script:
- echo "Do another parallel test here" - echo "Do another parallel test here"
- echo "For example run a lint test" - echo "For example run a lint test"
deploy1: deploy1:
stage: deploy stage: deploy
script: script:
......
...@@ -7,9 +7,9 @@ build: ...@@ -7,9 +7,9 @@ build:
stage: build stage: build
# instead of calling g++ directly you can also use some build toolkit like make # instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed # install the necessary build tools when needed
# before_script: # before_script:
# - apt update && apt -y install make autoconf # - apt update && apt -y install make autoconf
script: script:
- g++ helloworld.cpp -o mybinary - g++ helloworld.cpp -o mybinary
artifacts: artifacts:
paths: paths:
......
...@@ -41,7 +41,7 @@ chefspec: ...@@ -41,7 +41,7 @@ chefspec:
# - 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:
......
...@@ -5,9 +5,9 @@ image: clojure:lein-2.7.0 ...@@ -5,9 +5,9 @@ image: clojure:lein-2.7.0
# Make sure you configure the connection as well # Make sure you configure the connection as well
before_script: 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
...@@ -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
code_quality:
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
variables:
DOCKER_DRIVER: overlay2
script:
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:11-8-stable" /code
artifacts:
reports:
codequality: gl-code-quality-report.json
expire_in: 1 week
...@@ -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:
- 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
......
...@@ -23,7 +23,6 @@ build: ...@@ -23,7 +23,6 @@ build:
- build - build
- .gradle - .gradle
test: test:
stage: test stage: test
script: gradle check script: gradle check
...@@ -33,4 +32,3 @@ test: ...@@ -33,4 +32,3 @@ test:
paths: paths:
- build - build
- .gradle - .gradle
...@@ -13,7 +13,7 @@ image: java:8 ...@@ -13,7 +13,7 @@ image: java:8
variables: variables:
GRAILS_VERSION: "3.1.9" GRAILS_VERSION: "3.1.9"
GRADLE_VERSION: "2.13" GRADLE_VERSION: "2.13"
# 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
...@@ -23,10 +23,10 @@ before_script: ...@@ -23,10 +23,10 @@ before_script:
- 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.
...@@ -36,5 +36,5 @@ before_script: ...@@ -36,5 +36,5 @@ before_script:
# 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
\ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
test:0.7: test:0.7:
image: julia:0.7 image: julia:0.7
<<: *test_definition <<: *test_definition
test:1.0: test:1.0:
image: julia:1.0 image: julia:1.0
<<: *test_definition <<: *test_definition
......
...@@ -22,33 +22,25 @@ cache: ...@@ -22,33 +22,25 @@ 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:
# Update packages # Update packages
- apt-get update -yqq - apt-get update -yqq
# Prep for Node # Prep for Node
- apt-get install gnupg -yqq - apt-get install gnupg -yqq
# Upgrade to Node 8 # Upgrade to Node 8
- curl -sL https://deb.nodesource.com/setup_8.x | bash - - curl -sL https://deb.nodesource.com/setup_8.x | bash -
# Install dependencies # Install dependencies
- apt-get install git nodejs libcurl4-gnutls-dev libicu-dev libmcrypt-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 libpq-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev -yqq - apt-get install git nodejs libcurl4-gnutls-dev libicu-dev libmcrypt-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 libpq-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev -yqq
# Install php extensions # Install php extensions
- docker-php-ext-install mbstring pdo_mysql curl json intl gd xml zip bz2 opcache - docker-php-ext-install mbstring pdo_mysql 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 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
# Copy over testing configuration. # Copy over testing configuration.
# Don't forget to set the database config in .env.testing correctly # Don't forget to set the database config in .env.testing correctly
# DB_HOST=mysql # DB_HOST=mysql
...@@ -56,20 +48,16 @@ before_script: ...@@ -56,20 +48,16 @@ before_script:
# DB_USERNAME=root # DB_USERNAME=root
# DB_PASSWORD=secret # DB_PASSWORD=secret
- cp .env.testing .env - cp .env.testing .env
# Run npm build # Run npm build
# comment this out if you don't have a frontend build # comment this out if you don't have a frontend build
# you can change this to to your frontend building script like # you can change this to to your frontend building script like
# npm run build # npm run build
- npm run dev - npm run dev
# Generate an application key. Re-cache. # Generate an application key. Re-cache.
- php artisan key:generate - php artisan key:generate
- php artisan config:cache - php artisan config:cache
# Run database migrations. # Run database migrations.
- php artisan migrate - php artisan migrate
# Run database seed # Run database seed
- php artisan db:seed - php artisan db:seed
...@@ -77,7 +65,6 @@ test: ...@@ -77,7 +65,6 @@ 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
......
...@@ -66,7 +66,6 @@ verify:jdk8: ...@@ -66,7 +66,6 @@ verify:jdk8:
<<: *verify <<: *verify
image: maven:3.3.9-jdk-8 image: maven:3.3.9-jdk-8
# For `master` branch run `mvn deploy` automatically. # For `master` branch run `mvn deploy` automatically.
# Here you need to decide whether you want to use JDK7 or 8. # Here you need to decide whether you want to use JDK7 or 8.
# To get this working you need to define a volume while configuring your gitlab-ci-multi-runner. # To get this working you need to define a volume while configuring your gitlab-ci-multi-runner.
...@@ -85,7 +84,6 @@ deploy:jdk8: ...@@ -85,7 +84,6 @@ deploy:jdk8:
- target/staging - target/staging
image: maven:3.3.9-jdk-8 image: maven:3.3.9-jdk-8
pages: pages:
image: busybox:latest image: busybox:latest
stage: deploy stage: deploy
......
...@@ -32,11 +32,11 @@ release: ...@@ -32,11 +32,11 @@ release:
# The output path is relative to the position of the csproj-file # The output path is relative to the position of the csproj-file
- msbuild /p:Configuration="Release" /p:Platform="Any CPU" - msbuild /p:Configuration="Release" /p:Platform="Any CPU"
/p:OutputPath="./../../build/release/" "MyProject.sln" /p:OutputPath="./../../build/release/" "MyProject.sln"
debug: debug:
stage: test stage: test
script: script:
# The output path is relative to the position of the csproj-file # The output path is relative to the position of the csproj-file
- msbuild /p:Configuration="Debug" /p:Platform="Any CPU" - msbuild /p:Configuration="Debug" /p:Platform="Any CPU"
/p:OutputPath="./../../build/debug/" "MyProject.sln" /p:OutputPath="./../../build/debug/" "MyProject.sln"
- mono packages/NUnit.ConsoleRunner.3.6.0/tools/nunit3-console.exe build/debug/MyProject.Test.dll - mono packages/NUnit.ConsoleRunner.3.6.0/tools/nunit3-console.exe build/debug/MyProject.Test.dll
\ No newline at end of file
...@@ -5,7 +5,6 @@ pages: ...@@ -5,7 +5,6 @@ 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
......
...@@ -5,7 +5,6 @@ pages: ...@@ -5,7 +5,6 @@ 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
......
...@@ -9,7 +9,7 @@ pages: ...@@ -9,7 +9,7 @@ pages:
- public - public
only: only:
- master - master
test: test:
script: script:
- hugo - hugo
......
...@@ -13,7 +13,6 @@ image: java:8 ...@@ -13,7 +13,6 @@ 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
...@@ -29,4 +28,4 @@ pages: ...@@ -29,4 +28,4 @@ pages:
- jbake . public - jbake . public
artifacts: artifacts:
paths: paths:
- public - public
\ No newline at end of file
...@@ -11,24 +11,19 @@ cache: ...@@ -11,24 +11,19 @@ cache:
- node_modules/ - node_modules/
before_script: before_script:
# Update packages # Update packages
- apt-get update -yqq - apt-get update -yqq
# Install dependencies # Install dependencies
- apt-get install -yqq gnupg zlib1g-dev libpng-dev - apt-get install -yqq gnupg zlib1g-dev libpng-dev
# Install Node 8 # Install Node 8
- curl -sL https://deb.nodesource.com/setup_8.x | bash - - curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get install -yqq nodejs - apt-get install -yqq nodejs
# Install php extensions # Install php extensions
- docker-php-ext-install zip - docker-php-ext-install zip
# 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.
- npm install - npm install
pages: pages:
......
...@@ -5,7 +5,6 @@ pages: ...@@ -5,7 +5,6 @@ pages:
cache: cache:
paths: paths:
- node_modules/ - node_modules/
script: script:
- npm install -g metalsmith - npm install -g metalsmith
- npm install - npm install
......
...@@ -18,7 +18,7 @@ cache: ...@@ -18,7 +18,7 @@ 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
...@@ -26,7 +26,7 @@ before_script: ...@@ -26,7 +26,7 @@ before_script:
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:
......
...@@ -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
......
...@@ -26,7 +26,6 @@ variables: ...@@ -26,7 +26,6 @@ variables:
MSI_RELEASE_FOLDER: 'Setup\bin\Release' MSI_RELEASE_FOLDER: 'Setup\bin\Release'
TEST_FOLDER: 'Tests\bin\Release' TEST_FOLDER: 'Tests\bin\Release'
DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds' DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds'
NUGET_PATH: 'C:\NuGet\nuget.exe' NUGET_PATH: 'C:\NuGet\nuget.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe' MSBUILD_PATH: 'C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe'
NUNIT_PATH: 'C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe' NUNIT_PATH: 'C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe'
...@@ -84,4 +83,3 @@ deploy_job: ...@@ -84,4 +83,3 @@ deploy_job:
dependencies: dependencies:
- build_job - build_job
- test_job - test_job
\ No newline at end of file
...@@ -17,7 +17,7 @@ variables: ...@@ -17,7 +17,7 @@ variables:
LC_ALL: "en_US.UTF-8" LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8" LANG: "en_US.UTF-8"
GIT_STRATEGY: clone GIT_STRATEGY: clone
build: build:
stage: build stage: build
script: script:
......
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