Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
65f6abff
Commit
65f6abff
authored
Mar 08, 2017
by
DJ Mountney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the gitignore and gitlab-ci templates for 9.0
parent
1110b2f1
Changes
29
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
299 additions
and
51 deletions
+299
-51
vendor/gitignore/Android.gitignore
vendor/gitignore/Android.gitignore
+2
-1
vendor/gitignore/Global/Eclipse.gitignore
vendor/gitignore/Global/Eclipse.gitignore
+5
-0
vendor/gitignore/Global/JetBrains.gitignore
vendor/gitignore/Global/JetBrains.gitignore
+1
-0
vendor/gitignore/Global/SBT.gitignore
vendor/gitignore/Global/SBT.gitignore
+3
-0
vendor/gitignore/Java.gitignore
vendor/gitignore/Java.gitignore
+1
-0
vendor/gitignore/Maven.gitignore
vendor/gitignore/Maven.gitignore
+1
-1
vendor/gitignore/Node.gitignore
vendor/gitignore/Node.gitignore
+2
-0
vendor/gitignore/Objective-C.gitignore
vendor/gitignore/Objective-C.gitignore
+2
-2
vendor/gitignore/PlayFramework.gitignore
vendor/gitignore/PlayFramework.gitignore
+1
-0
vendor/gitignore/Python.gitignore
vendor/gitignore/Python.gitignore
+3
-0
vendor/gitignore/Scala.gitignore
vendor/gitignore/Scala.gitignore
+0
-21
vendor/gitignore/Swift.gitignore
vendor/gitignore/Swift.gitignore
+1
-1
vendor/gitignore/Symfony.gitignore
vendor/gitignore/Symfony.gitignore
+0
-4
vendor/gitignore/TeX.gitignore
vendor/gitignore/TeX.gitignore
+3
-6
vendor/gitignore/VisualStudio.gitignore
vendor/gitignore/VisualStudio.gitignore
+10
-1
vendor/gitlab-ci-yml/Android.gitlab-ci.yml
vendor/gitlab-ci-yml/Android.gitlab-ci.yml
+51
-0
vendor/gitlab-ci-yml/Bash.gitlab-ci.yml
vendor/gitlab-ci-yml/Bash.gitlab-ci.yml
+35
-0
vendor/gitlab-ci-yml/Crystal.gitlab-ci.yml
vendor/gitlab-ci-yml/Crystal.gitlab-ci.yml
+0
-1
vendor/gitlab-ci-yml/Django.gitlab-ci.yml
vendor/gitlab-ci-yml/Django.gitlab-ci.yml
+34
-0
vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml
vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml
+7
-0
vendor/gitlab-ci-yml/LICENSE
vendor/gitlab-ci-yml/LICENSE
+1
-1
vendor/gitlab-ci-yml/Laravel.gitlab-ci.yml
vendor/gitlab-ci-yml/Laravel.gitlab-ci.yml
+78
-0
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
+3
-2
vendor/gitlab-ci-yml/OpenShift.gitlab-ci.yml
vendor/gitlab-ci-yml/OpenShift.gitlab-ci.yml
+3
-3
vendor/gitlab-ci-yml/PHP.gitlab-ci.yml
vendor/gitlab-ci-yml/PHP.gitlab-ci.yml
+33
-0
vendor/gitlab-ci-yml/Pages/Hugo.gitlab-ci.yml
vendor/gitlab-ci-yml/Pages/Hugo.gitlab-ci.yml
+6
-0
vendor/gitlab-ci-yml/Pages/Jekyll.gitlab-ci.yml
vendor/gitlab-ci-yml/Pages/Jekyll.gitlab-ci.yml
+9
-5
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
+2
-1
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
+2
-1
No files found.
vendor/gitignore/Android.gitignore
View file @
65f6abff
...
@@ -37,6 +37,7 @@ captures/
...
@@ -37,6 +37,7 @@ captures/
.idea/workspace.xml
.idea/workspace.xml
.idea/tasks.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries
.idea/libraries
# Keystore files
# Keystore files
...
@@ -48,7 +49,7 @@ captures/
...
@@ -48,7 +49,7 @@ captures/
# Google Services (e.g. APIs or Firebase)
# Google Services (e.g. APIs or Firebase)
google-services.json
google-services.json
#Freeline
#
Freeline
freeline.py
freeline.py
freeline/
freeline/
freeline_project_description.json
freeline_project_description.json
vendor/gitignore/Global/Eclipse.gitignore
View file @
65f6abff
...
@@ -49,3 +49,8 @@ local.properties
...
@@ -49,3 +49,8 @@ local.properties
# Code Recommenders
# Code Recommenders
.recommenders/
.recommenders/
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
vendor/gitignore/Global/JetBrains.gitignore
View file @
65f6abff
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
# User-specific stuff:
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/tasks.xml
.idea/dictionaries
# Sensitive or high-churn files:
# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources/
...
...
vendor/gitignore/Global/SBT.gitignore
View file @
65f6abff
# Simple Build Tool
# Simple Build Tool
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
dist/*
target/
target/
lib_managed/
lib_managed/
src_managed/
src_managed/
project/boot/
project/boot/
project/plugins/project/
.history
.history
.cache
.cache
.lib/
vendor/gitignore/Java.gitignore
View file @
65f6abff
# Compiled class file
*.class
*.class
# Log file
# Log file
...
...
vendor/gitignore/Maven.gitignore
View file @
65f6abff
...
@@ -8,5 +8,5 @@ dependency-reduced-pom.xml
...
@@ -8,5 +8,5 @@ dependency-reduced-pom.xml
buildNumber.properties
buildNumber.properties
.mvn/timing.properties
.mvn/timing.properties
#
Exclude maven wrapper
#
Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
!/.mvn/wrapper/maven-wrapper.jar
!/.mvn/wrapper/maven-wrapper.jar
vendor/gitignore/Node.gitignore
View file @
65f6abff
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
logs
logs
*.log
*.log
npm-debug.log*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
# Runtime data
pids
pids
...
...
vendor/gitignore/Objective-C.gitignore
View file @
65f6abff
...
@@ -48,7 +48,7 @@ Carthage/Build
...
@@ -48,7 +48,7 @@ Carthage/Build
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# For more information about the recommended setup visit:
# https://
github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
# https://
docs.fastlane.tools/best-practices/source-control/#source-control
fastlane/report.xml
fastlane/report.xml
fastlane/Preview.html
fastlane/Preview.html
...
...
vendor/gitignore/PlayFramework.gitignore
View file @
65f6abff
...
@@ -5,6 +5,7 @@ bin/
...
@@ -5,6 +5,7 @@ bin/
/lib/
/lib/
/logs/
/logs/
/modules
/modules
/project/project
/project/target
/project/target
/target
/target
tmp/
tmp/
...
...
vendor/gitignore/Python.gitignore
View file @
65f6abff
...
@@ -76,6 +76,9 @@ target/
...
@@ -76,6 +76,9 @@ target/
# celery beat schedule file
# celery beat schedule file
celerybeat-schedule
celerybeat-schedule
# SageMath parsed files
*.sage.py
# dotenv
# dotenv
.env
.env
...
...
vendor/gitignore/Scala.gitignore
View file @
65f6abff
*.class
*.class
*.log
*.log
# sbt specific
.cache
.history
.lib/
dist/*
target/
lib_managed/
src_managed/
project/boot/
project/plugins/project/
# Scala-IDE specific
.ensime
.ensime_cache/
.scala_dependencies
.worksheet
# ENSIME specific
.ensime_cache/
.ensime
vendor/gitignore/Swift.gitignore
View file @
65f6abff
...
@@ -59,7 +59,7 @@ Carthage/Build
...
@@ -59,7 +59,7 @@ Carthage/Build
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# For more information about the recommended setup visit:
# https://
github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
# https://
docs.fastlane.tools/best-practices/source-control/#source-control
fastlane/report.xml
fastlane/report.xml
fastlane/Preview.html
fastlane/Preview.html
...
...
vendor/gitignore/Symfony.gitignore
View file @
65f6abff
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
/bin/*
/bin/*
!bin/console
!bin/console
!bin/symfony_requirements
!bin/symfony_requirements
/vendor/
# Assets and user uploads
# Assets and user uploads
/web/bundles/
/web/bundles/
...
@@ -38,8 +37,5 @@
...
@@ -38,8 +37,5 @@
# Build data
# Build data
/build/
/build/
# Composer PHAR
/composer.phar
# Backup entities generated with doctrine:generate:entities command
# Backup entities generated with doctrine:generate:entities command
**/Entity/*~
**/Entity/*~
vendor/gitignore/TeX.gitignore
View file @
65f6abff
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
*.blg
*.blg
*-blx.aux
*-blx.aux
*-blx.bib
*-blx.bib
*.brf
*.run.xml
*.run.xml
## Build tool auxiliary files:
## Build tool auxiliary files:
...
@@ -77,8 +76,6 @@ acs-*.bib
...
@@ -77,8 +76,6 @@ acs-*.bib
*.t[1-9]
*.t[1-9]
*.t[1-9][0-9]
*.t[1-9][0-9]
*.tfm
*.tfm
*.[1-9]
*.[1-9][0-9]
#(r)(e)ledmac/(r)(e)ledpar
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.end
...
@@ -134,6 +131,9 @@ acs-*.bib
...
@@ -134,6 +131,9 @@ acs-*.bib
*.mlf
*.mlf
*.mlt
*.mlt
*.mtc[0-9]*
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
# minted
# minted
_minted*
_minted*
...
@@ -142,9 +142,6 @@ _minted*
...
@@ -142,9 +142,6 @@ _minted*
# morewrites
# morewrites
*.mw
*.mw
# mylatexformat
*.fmt
# nomencl
# nomencl
*.nlo
*.nlo
...
...
vendor/gitignore/VisualStudio.gitignore
View file @
65f6abff
...
@@ -166,7 +166,7 @@ PublishScripts/
...
@@ -166,7 +166,7 @@ PublishScripts/
!**/packages/build/
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignor
e
able files
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.props
*.nuget.targets
*.nuget.targets
...
@@ -276,3 +276,12 @@ __pycache__/
...
@@ -276,3 +276,12 @@ __pycache__/
# Cake - Uncomment if you are using it
# Cake - Uncomment if you are using it
# tools/**
# tools/**
# !tools/packages.config
# !tools/packages.config
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
\ No newline at end of file
vendor/gitlab-ci-yml/Android.gitlab-ci.yml
0 → 100644
View file @
65f6abff
# Read more about this script on this blog post https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/, by Greyson Parrelli
image
:
openjdk:8-jdk
variables
:
ANDROID_COMPILE_SDK
:
"
25"
ANDROID_BUILD_TOOLS
:
"
24.0.0"
ANDROID_SDK_TOOLS
:
"
24.4.1"
before_script
:
-
apt-get --quiet update --yes
-
apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
-
wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz
-
tar --extract --gzip --file=android-sdk.tgz
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
-
export ANDROID_HOME=$PWD/android-sdk-linux
-
export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
-
chmod +x ./gradlew
stages
:
-
build
-
test
build
:
stage
:
build
script
:
-
./gradlew assembleDebug
artifacts
:
paths
:
-
app/build/outputs/
unitTests
:
stage
:
test
script
:
-
./gradlew test
functionalTests
:
stage
:
test
script
:
-
wget --quiet --output-document=android-wait-for-emulator https://raw.githubusercontent.com/travis-ci/travis-cookbooks/0f497eb71291b52a703143c5cd63a217c8766dc9/community-cookbooks/android-sdk/files/default/android-wait-for-emulator
-
chmod +x android-wait-for-emulator
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter sys-img-x86-google_apis-${ANDROID_COMPILE_SDK}
-
echo no | android-sdk-linux/tools/android create avd -n test -t android-${ANDROID_COMPILE_SDK} --abi google_apis/x86
-
android-sdk-linux/tools/emulator64-x86 -avd test -no-window -no-audio &
-
./android-wait-for-emulator
-
adb shell input keyevent
82
-
./gradlew cAT
vendor/gitlab-ci-yml/Bash.gitlab-ci.yml
0 → 100644
View file @
65f6abff
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
# you can delete this line if you're not using Docker
image
:
busybox:latest
before_script
:
-
echo "Before script section"
-
echo "For example you might run an update here or install a build dependency"
-
echo "Or perhaps you might print out some debugging details"
after_script
:
-
echo "After script section"
-
echo "For example you might do some cleanup here"
build1
:
stage
:
build
script
:
-
echo "Do your build here"
test1
:
stage
:
test
script
:
-
echo "Do a test here"
-
echo "For example run a test suite"
test2
:
stage
:
test
script
:
-
echo "Do another parallel test here"
-
echo "For example run a lint test"
deploy1
:
stage
:
deploy
script
:
-
echo "Do your deploy here"
\ No newline at end of file
vendor/gitlab-ci-yml/Crystal.gitlab-ci.yml
View file @
65f6abff
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/crystallang/crystal/
# https://hub.docker.com/r/crystallang/crystal/
image
:
"
crystallang/crystal:latest"
image
:
"
crystallang/crystal:latest"
...
...
vendor/gitlab-ci-yml/Django.gitlab-ci.yml
0 → 100644
View file @
65f6abff
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python
image
:
python:latest
# Pick zero or more services to be used on all builds.
# 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-service
services
:
-
mysql:latest
-
postgres:latest
variables
:
POSTGRES_DB
:
database_name
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache
:
paths
:
-
~/.cache/pip/
# This is a basic example for a gem or script which doesn't use
# services such as redis or postgres
before_script
:
-
python -V
# Print out python version for debugging
# Uncomment next line if your Django app needs a JS runtime:
# - apt-get update -q && apt-get install nodejs -yqq
-
pip install -r requirements.txt
test
:
variables
:
DATABASE_URL
:
"
postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
script
:
-
python manage.py migrate
-
python manage.py test
vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml
View file @
65f6abff
...
@@ -6,6 +6,13 @@
...
@@ -6,6 +6,13 @@
# https://github.com/gradle/gradle
# https://github.com/gradle/gradle
image
:
java:8
image
:
java:8
# Disable the Gradle daemon for Continuous Integration servers as correctness
# is usually a priority over speed in CI environments. Using a fresh
# runtime for each build is more reliable since the runtime is completely
# isolated from any previous builds.
variables
:
GRADLE_OPTS
:
"
-Dorg.gradle.daemon=false"
# Make the gradle wrapper executable. This essentially downloads a copy of
# Make the gradle wrapper executable. This essentially downloads a copy of
# Gradle to build the project with.
# Gradle to build the project with.
# https://docs.gradle.org/current/userguide/gradle_wrapper.html
# https://docs.gradle.org/current/userguide/gradle_wrapper.html
...
...
vendor/gitlab-ci-yml/LICENSE
View file @
65f6abff
The MIT License (MIT)
The MIT License (MIT)
Copyright (c) 2016 GitLab.org
Copyright (c) 2016
-2017
GitLab.org
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
...
...
vendor/gitlab-ci-yml/Laravel.gitlab-ci.yml
0 → 100644
View file @
65f6abff
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/php
image
:
php:latest
# Pick zero or more services to be used on all builds.
# 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-service
services
:
-
mysql:latest
variables
:
MYSQL_DATABASE
:
project_name
MYSQL_ROOT_PASSWORD
:
secret
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache
:
paths
:
-
vendor/
-
node_modules/
# This is a basic example for a gem or script which doesn't use
# services such as redis or postgres
before_script
:
# Update packages
-
apt-get update -yqq
# Upgrade to Node 7
-
curl -sL https://deb.nodesource.com/setup_7.x | bash -
# 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
# Install php extensions
-
docker-php-ext-install mbstring mcrypt pdo_mysql curl json intl gd xml zip bz2 opcache
# Install Composer and project dependencies.
-
curl -sS https://getcomposer.org/installer | php
-
php composer.phar install
# Install Node dependencies.
# comment this out if you don't have a node dependency
-
npm install
# Copy over testing configuration.
# Don't forget to set the database config in .env.testing correctly
# DB_HOST=mysql
# DB_DATABASE=project_name
# DB_USERNAME=root
# DB_PASSWORD=secret
-
cp .env.testing .env
# Run npm build
# comment this out if you don't have a frontend build
# you can change this to to your frontend building script like
# npm run build
-
npm run dev
# Generate an application key. Re-cache.
-
php artisan key:generate
-
php artisan config:cache
# Run database migrations.
-
php artisan migrate
# Run database seed
-
php artisan db:seed
test
:
script
:
# run laravel tests
-
php vendor/bin/phpunit --coverage-text --colors=never
# run frontend tests
# if you have any task for testing frontend
# set it in your package.json script
# comment this out if you don't have a frontend test
-
npm test
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
View file @
65f6abff
...
@@ -17,16 +17,17 @@
...
@@ -17,16 +17,17 @@
variables
:
variables
:
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
MAVEN_OPTS
:
"
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true"
MAVEN_OPTS
:
"
-D
maven.repo.local=.m2/repository
-D
org.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true"
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
# when running from the command line.
# `installAtEnd` and `deployAtEnd`are only effective with recent version of the corresponding plugins.
# `installAtEnd` and `deployAtEnd`are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true"
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true"
# Cache downloaded dependencies and plugins between builds.
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_BUILD_REF_NAME"'
cache
:
cache
:
paths
:
paths
:
-
/root/.m2/repository/
-
.m2/repository
# This will only validate and compile stuff and run e.g. maven-enforcer-plugin.
# This will only validate and compile stuff and run e.g. maven-enforcer-plugin.
# Because some enforcer rules might check dependency convergence and class duplications
# Because some enforcer rules might check dependency convergence and class duplications
...
...
vendor/gitlab-ci-yml/Open
s
hift.gitlab-ci.yml
→
vendor/gitlab-ci-yml/Open
S
hift.gitlab-ci.yml
View file @
65f6abff
# This file is a template, and might need editing before it works on your project.
image
:
ayufan/openshift-cli
image
:
ayufan/openshift-cli
stages
:
stages
:
...
@@ -6,6 +5,7 @@ stages:
...
@@ -6,6 +5,7 @@ stages:
-
review
-
review
-
staging
-
staging
-
production
-
production
-
cleanup
variables
:
variables
:
OPENSHIFT_SERVER
:
openshift.default.svc.cluster.local
OPENSHIFT_SERVER
:
openshift.default.svc.cluster.local
...
@@ -28,7 +28,7 @@ test2:
...
@@ -28,7 +28,7 @@ test2:
.deploy
:
&deploy
.deploy
:
&deploy
before_script
:
before_script
:
-
oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" --insecure-skip-tls-verify
-
oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" --insecure-skip-tls-verify
-
oc project "$CI_PROJECT_NAME
" 2> /dev/null || oc new-project "$CI_PROJECT_NAME
"
-
oc project "$CI_PROJECT_NAME
-$CI_PROJECT_ID" 2> /dev/null || oc new-project "$CI_PROJECT_NAME-$CI_PROJECT_ID
"
script
:
script
:
-
"
oc
get
services
$APP
2>
/dev/null
||
oc
new-app
.
--name=$APP
--strategy=docker"
-
"
oc
get
services
$APP
2>
/dev/null
||
oc
new-app
.
--name=$APP
--strategy=docker"
-
"
oc
start-build
$APP
--from-dir=.
--follow
||
sleep
3s
||
oc
start-build
$APP
--from-dir=.
--follow"
-
"
oc
start-build
$APP
--from-dir=.
--follow
||
sleep
3s
||
oc
start-build
$APP
--from-dir=.
--follow"
...
@@ -51,7 +51,7 @@ review:
...
@@ -51,7 +51,7 @@ review:
stop-review
:
stop-review
:
<<
:
*deploy
<<
:
*deploy
stage
:
review
stage
:
cleanup
script
:
script
:
-
oc delete all -l "app=$APP"
-
oc delete all -l "app=$APP"
when
:
manual
when
:
manual
...
...
vendor/gitlab-ci-yml/PHP.gitlab-ci.yml
0 → 100644
View file @
65f6abff
# Select image from https://hub.docker.com/_/php/
image
:
php:7.1.1
# Select what we should cache between builds
cache
:
paths
:
-
vendor/
before_script
:
-
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
# Install PHP extensions
-
docker-php-ext-install mbstring mcrypt pdo_pgsql curl json intl gd xml zip bz2 opcache
# Install and run Composer
-
curl -sS https://getcomposer.org/installer | php
-
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
# See http://docs.gitlab.com/ce/ci/services/README.html for examples.
services
:
-
mysql:5.7
# Set any variables we need
variables
:
# Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
MYSQL_DATABASE
:
mysql_database
MYSQL_ROOT_PASSWORD
:
mysql_strong_password
# Run our tests
# If Xdebug was installed you can generate a coverage report and see code coverage metrics.
test
:
script
:
-
vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never
\ No newline at end of file
vendor/gitlab-ci-yml/Pages/Hugo.gitlab-ci.yml
View file @
65f6abff
...
@@ -9,3 +9,9 @@ pages:
...
@@ -9,3 +9,9 @@ pages:
-
public
-
public
only
:
only
:
-
master
-
master
test
:
script
:
-
hugo
except
:
-
master
vendor/gitlab-ci-yml/Pages/Jekyll.gitlab-ci.yml
View file @
65f6abff
# Full project: https://gitlab.com/pages/jekyll
# Template project: https://gitlab.com/pages/jekyll
# Docs: https://docs.gitlab.com/ce/pages/
# Jekyll version: 3.4.0
image
:
ruby:2.3
image
:
ruby:2.3
before_script
:
-
bundle install
test
:
test
:
stage
:
test
stage
:
test
script
:
script
:
-
gem install jekyll
-
bundle exec jekyll build -d test
-
jekyll build -d test
artifacts
:
artifacts
:
paths
:
paths
:
-
test
-
test
...
@@ -15,10 +19,10 @@ test:
...
@@ -15,10 +19,10 @@ test:
pages
:
pages
:
stage
:
deploy
stage
:
deploy
script
:
script
:
-
gem install jekyll
-
bundle exec jekyll build -d public
-
jekyll build -d public
artifacts
:
artifacts
:
paths
:
paths
:
-
public
-
public
only
:
only
:
-
master
-
master
\ No newline at end of file
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
View file @
65f6abff
...
@@ -12,6 +12,7 @@ stages:
...
@@ -12,6 +12,7 @@ stages:
-
review
-
review
-
staging
-
staging
-
production
-
production
-
cleanup
build
:
build
:
stage
:
build
stage
:
build
...
@@ -61,7 +62,7 @@ review:
...
@@ -61,7 +62,7 @@ review:
-
master
-
master
stop_review
:
stop_review
:
stage
:
review
stage
:
cleanup
variables
:
variables
:
GIT_STRATEGY
:
none
GIT_STRATEGY
:
none
script
:
script
:
...
...
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
View file @
65f6abff
...
@@ -12,6 +12,7 @@ stages:
...
@@ -12,6 +12,7 @@ stages:
-
review
-
review
-
staging
-
staging
-
production
-
production
-
cleanup
build
:
build
:
stage
:
build
stage
:
build
...
@@ -61,7 +62,7 @@ review:
...
@@ -61,7 +62,7 @@ review:
-
master
-
master
stop_review
:
stop_review
:
stage
:
review
stage
:
cleanup
variables
:
variables
:
GIT_STRATEGY
:
none
GIT_STRATEGY
:
none
script
:
script
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment