Commit ac1f3bc3 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'update-templates-and-dependencies-10-6' into 'master'

Update templates and licenses

See merge request gitlab-org/gitlab-ce!17637
parents 10a795b6 b7c47d95
# See https://www.dartlang.org/tools/private-files.html # See https://www.dartlang.org/guides/libraries/private-files
# Files and directories created by pub # Files and directories created by pub
.dart_tool/ .dart_tool/
......
# C++ objects and libs # C++ objects and libs
*.slo *.slo
*.lo *.lo
*.o *.o
...@@ -11,7 +10,6 @@ ...@@ -11,7 +10,6 @@
*.dylib *.dylib
# Qt-es # Qt-es
object_script.*.Release object_script.*.Release
object_script.*.Debug object_script.*.Debug
*_plugin_import.cpp *_plugin_import.cpp
...@@ -35,13 +33,11 @@ Makefile* ...@@ -35,13 +33,11 @@ Makefile*
target_wrapper.* target_wrapper.*
# QtCreator # QtCreator
*.autosave *.autosave
# QtCtreator Qml # QtCreator Qml
*.qmlproject.user *.qmlproject.user
*.qmlproject.user.* *.qmlproject.user.*
# QtCtreator CMake # QtCreator CMake
CMakeLists.txt.user* CMakeLists.txt.user*
...@@ -31,3 +31,6 @@ vignettes/*.pdf ...@@ -31,3 +31,6 @@ vignettes/*.pdf
# Temporary files created by R markdown # Temporary files created by R markdown
*.utf8.md *.utf8.md
*.knit.md *.knit.md
# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
rsconnect/
...@@ -110,6 +110,14 @@ acs-*.bib ...@@ -110,6 +110,14 @@ acs-*.bib
*.gaux *.gaux
*.gtex *.gtex
# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
# hyperref # hyperref
*.brf *.brf
......
...@@ -259,9 +259,6 @@ FakesAssemblies/ ...@@ -259,9 +259,6 @@ FakesAssemblies/
.ntvs_analysis.dat .ntvs_analysis.dat
node_modules/ node_modules/
# TypeScript v1 declaration files
typings/
# Visual Studio 6 build log # Visual Studio 6 build log
*.plg *.plg
......
...@@ -36,7 +36,6 @@ variables: ...@@ -36,7 +36,6 @@ variables:
KUBERNETES_VERSION: 1.8.6 KUBERNETES_VERSION: 1.8.6
HELM_VERSION: 2.6.1 HELM_VERSION: 2.6.1
CODECLIMATE_VERSION: 0.69.0
stages: stages:
- build - build
...@@ -286,6 +285,8 @@ production: ...@@ -286,6 +285,8 @@ production:
export CI_APPLICATION_TAG=$CI_COMMIT_SHA export CI_APPLICATION_TAG=$CI_COMMIT_SHA
export CI_CONTAINER_NAME=ci_job_build_${CI_JOB_ID} export CI_CONTAINER_NAME=ci_job_build_${CI_JOB_ID}
export TILLER_NAMESPACE=$KUBE_NAMESPACE export TILLER_NAMESPACE=$KUBE_NAMESPACE
# Extract "MAJOR.MINOR" from CI_SERVER_VERSION and generate "MAJOR-MINOR-stable" for Static Code Analysis
export SCA_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
function sast_container() { function sast_container() {
if [[ -n "$CI_REGISTRY_USER" ]]; then if [[ -n "$CI_REGISTRY_USER" ]]; then
...@@ -306,20 +307,16 @@ production: ...@@ -306,20 +307,16 @@ production:
} }
function codeclimate() { function codeclimate() {
cc_opts="--env CODECLIMATE_CODE="$PWD" \ docker run --env CODECLIMATE_CODE="$PWD" \
--volume "$PWD":/code \ --volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \ --volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc" --volume /tmp/cc:/tmp/cc \
"registry.gitlab.com/gitlab-org/security-products/codequality/codeclimate:${SCA_VERSION}" analyze -f json > codeclimate.json
docker run ${cc_opts} "codeclimate/codeclimate:${CODECLIMATE_VERSION}" init
docker run ${cc_opts} "codeclimate/codeclimate:${CODECLIMATE_VERSION}" analyze -f json > codeclimate.json
} }
function sast() { function sast() {
case "$CI_SERVER_VERSION" in case "$CI_SERVER_VERSION" in
*-ee) *-ee)
# Extract "MAJOR.MINOR" from CI_SERVER_VERSION and generate "MAJOR-MINOR-stable"
SAST_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
# Deprecation notice for CONFIDENCE_LEVEL variable # Deprecation notice for CONFIDENCE_LEVEL variable
if [ -z "$SAST_CONFIDENCE_LEVEL" -a "$CONFIDENCE_LEVEL" ]; then if [ -z "$SAST_CONFIDENCE_LEVEL" -a "$CONFIDENCE_LEVEL" ]; then
...@@ -331,7 +328,7 @@ production: ...@@ -331,7 +328,7 @@ production:
--env SAST_DISABLE_REMOTE_CHECKS="${SAST_DISABLE_REMOTE_CHECKS:-false}" \ --env SAST_DISABLE_REMOTE_CHECKS="${SAST_DISABLE_REMOTE_CHECKS:-false}" \
--volume "$PWD:/code" \ --volume "$PWD:/code" \
--volume /var/run/docker.sock:/var/run/docker.sock \ --volume /var/run/docker.sock:/var/run/docker.sock \
"registry.gitlab.com/gitlab-org/security-products/sast:$SAST_VERSION" /app/bin/run /code "registry.gitlab.com/gitlab-org/security-products/sast:$SCA_VERSION" /app/bin/run /code
;; ;;
*) *)
echo "GitLab EE is required" echo "GitLab EE is required"
......
This diff is collapsed.
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