Merge branch 'update-templates-9-0' into 'master'
Update the gitignore and gitlab-ci templates for 9.0 See merge request !9824
This commit is contained in:
commit
71d371cf89
29 changed files with 299 additions and 51 deletions
1
vendor/gitignore/Android.gitignore
vendored
1
vendor/gitignore/Android.gitignore
vendored
|
@ -37,6 +37,7 @@ captures/
|
|||
.idea/workspace.xml
|
||||
.idea/tasks.xml
|
||||
.idea/gradle.xml
|
||||
.idea/dictionaries
|
||||
.idea/libraries
|
||||
|
||||
# Keystore files
|
||||
|
|
5
vendor/gitignore/Global/Eclipse.gitignore
vendored
5
vendor/gitignore/Global/Eclipse.gitignore
vendored
|
@ -49,3 +49,8 @@ local.properties
|
|||
|
||||
# Code Recommenders
|
||||
.recommenders/
|
||||
|
||||
# Scala IDE specific (Scala & Java development for Eclipse)
|
||||
.cache-main
|
||||
.scala_dependencies
|
||||
.worksheet
|
||||
|
|
1
vendor/gitignore/Global/JetBrains.gitignore
vendored
1
vendor/gitignore/Global/JetBrains.gitignore
vendored
|
@ -4,6 +4,7 @@
|
|||
# User-specific stuff:
|
||||
.idea/**/workspace.xml
|
||||
.idea/**/tasks.xml
|
||||
.idea/dictionaries
|
||||
|
||||
# Sensitive or high-churn files:
|
||||
.idea/**/dataSources/
|
||||
|
|
3
vendor/gitignore/Global/SBT.gitignore
vendored
3
vendor/gitignore/Global/SBT.gitignore
vendored
|
@ -1,9 +1,12 @@
|
|||
# Simple Build Tool
|
||||
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
|
||||
|
||||
dist/*
|
||||
target/
|
||||
lib_managed/
|
||||
src_managed/
|
||||
project/boot/
|
||||
project/plugins/project/
|
||||
.history
|
||||
.cache
|
||||
.lib/
|
||||
|
|
1
vendor/gitignore/Java.gitignore
vendored
1
vendor/gitignore/Java.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
# Compiled class file
|
||||
*.class
|
||||
|
||||
# Log file
|
||||
|
|
2
vendor/gitignore/Maven.gitignore
vendored
2
vendor/gitignore/Maven.gitignore
vendored
|
@ -8,5 +8,5 @@ dependency-reduced-pom.xml
|
|||
buildNumber.properties
|
||||
.mvn/timing.properties
|
||||
|
||||
# Exclude maven wrapper
|
||||
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
|
||||
!/.mvn/wrapper/maven-wrapper.jar
|
||||
|
|
2
vendor/gitignore/Node.gitignore
vendored
2
vendor/gitignore/Node.gitignore
vendored
|
@ -2,6 +2,8 @@
|
|||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
|
|
2
vendor/gitignore/Objective-C.gitignore
vendored
2
vendor/gitignore/Objective-C.gitignore
vendored
|
@ -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
|
||||
# screenshots whenever they are needed.
|
||||
# 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/Preview.html
|
||||
|
|
1
vendor/gitignore/PlayFramework.gitignore
vendored
1
vendor/gitignore/PlayFramework.gitignore
vendored
|
@ -5,6 +5,7 @@ bin/
|
|||
/lib/
|
||||
/logs/
|
||||
/modules
|
||||
/project/project
|
||||
/project/target
|
||||
/target
|
||||
tmp/
|
||||
|
|
3
vendor/gitignore/Python.gitignore
vendored
3
vendor/gitignore/Python.gitignore
vendored
|
@ -76,6 +76,9 @@ target/
|
|||
# celery beat schedule file
|
||||
celerybeat-schedule
|
||||
|
||||
# SageMath parsed files
|
||||
*.sage.py
|
||||
|
||||
# dotenv
|
||||
.env
|
||||
|
||||
|
|
21
vendor/gitignore/Scala.gitignore
vendored
21
vendor/gitignore/Scala.gitignore
vendored
|
@ -1,23 +1,2 @@
|
|||
*.class
|
||||
*.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
|
||||
|
|
2
vendor/gitignore/Swift.gitignore
vendored
2
vendor/gitignore/Swift.gitignore
vendored
|
@ -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
|
||||
# screenshots whenever they are needed.
|
||||
# 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/Preview.html
|
||||
|
|
4
vendor/gitignore/Symfony.gitignore
vendored
4
vendor/gitignore/Symfony.gitignore
vendored
|
@ -25,7 +25,6 @@
|
|||
/bin/*
|
||||
!bin/console
|
||||
!bin/symfony_requirements
|
||||
/vendor/
|
||||
|
||||
# Assets and user uploads
|
||||
/web/bundles/
|
||||
|
@ -38,8 +37,5 @@
|
|||
# Build data
|
||||
/build/
|
||||
|
||||
# Composer PHAR
|
||||
/composer.phar
|
||||
|
||||
# Backup entities generated with doctrine:generate:entities command
|
||||
**/Entity/*~
|
||||
|
|
9
vendor/gitignore/TeX.gitignore
vendored
9
vendor/gitignore/TeX.gitignore
vendored
|
@ -28,7 +28,6 @@
|
|||
*.blg
|
||||
*-blx.aux
|
||||
*-blx.bib
|
||||
*.brf
|
||||
*.run.xml
|
||||
|
||||
## Build tool auxiliary files:
|
||||
|
@ -77,8 +76,6 @@ acs-*.bib
|
|||
*.t[1-9]
|
||||
*.t[1-9][0-9]
|
||||
*.tfm
|
||||
*.[1-9]
|
||||
*.[1-9][0-9]
|
||||
|
||||
#(r)(e)ledmac/(r)(e)ledpar
|
||||
*.end
|
||||
|
@ -134,6 +131,9 @@ acs-*.bib
|
|||
*.mlf
|
||||
*.mlt
|
||||
*.mtc[0-9]*
|
||||
*.slf[0-9]*
|
||||
*.slt[0-9]*
|
||||
*.stc[0-9]*
|
||||
|
||||
# minted
|
||||
_minted*
|
||||
|
@ -142,9 +142,6 @@ _minted*
|
|||
# morewrites
|
||||
*.mw
|
||||
|
||||
# mylatexformat
|
||||
*.fmt
|
||||
|
||||
# nomencl
|
||||
*.nlo
|
||||
|
||||
|
|
11
vendor/gitignore/VisualStudio.gitignore
vendored
11
vendor/gitignore/VisualStudio.gitignore
vendored
|
@ -166,7 +166,7 @@ PublishScripts/
|
|||
!**/packages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/packages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignoreable files
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
|
@ -276,3 +276,12 @@ __pycache__/
|
|||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
51
vendor/gitlab-ci-yml/Android.gitlab-ci.yml
vendored
Normal file
51
vendor/gitlab-ci-yml/Android.gitlab-ci.yml
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
# 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
|
35
vendor/gitlab-ci-yml/Bash.gitlab-ci.yml
vendored
Normal file
35
vendor/gitlab-ci-yml/Bash.gitlab-ci.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
# 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"
|
1
vendor/gitlab-ci-yml/Crystal.gitlab-ci.yml
vendored
1
vendor/gitlab-ci-yml/Crystal.gitlab-ci.yml
vendored
|
@ -1,4 +1,3 @@
|
|||
# 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:
|
||||
# https://hub.docker.com/r/crystallang/crystal/
|
||||
image: "crystallang/crystal:latest"
|
||||
|
|
34
vendor/gitlab-ci-yml/Django.gitlab-ci.yml
vendored
Normal file
34
vendor/gitlab-ci-yml/Django.gitlab-ci.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
# 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
|
7
vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml
vendored
7
vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml
vendored
|
@ -6,6 +6,13 @@
|
|||
# https://github.com/gradle/gradle
|
||||
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
|
||||
# Gradle to build the project with.
|
||||
# https://docs.gradle.org/current/userguide/gradle_wrapper.html
|
||||
|
|
2
vendor/gitlab-ci-yml/LICENSE
vendored
2
vendor/gitlab-ci-yml/LICENSE
vendored
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
78
vendor/gitlab-ci-yml/Laravel.gitlab-ci.yml
vendored
Normal file
78
vendor/gitlab-ci-yml/Laravel.gitlab-ci.yml
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
# 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
|
5
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
vendored
5
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
vendored
|
@ -17,16 +17,17 @@
|
|||
variables:
|
||||
# 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.
|
||||
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
|
||||
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.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
|
||||
# when running from the command line.
|
||||
# `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"
|
||||
|
||||
# Cache downloaded dependencies and plugins between builds.
|
||||
# To keep cache across branches add 'key: "$CI_BUILD_REF_NAME"'
|
||||
cache:
|
||||
paths:
|
||||
- /root/.m2/repository/
|
||||
- .m2/repository
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# This file is a template, and might need editing before it works on your project.
|
||||
image: ayufan/openshift-cli
|
||||
|
||||
stages:
|
||||
|
@ -6,6 +5,7 @@ stages:
|
|||
- review
|
||||
- staging
|
||||
- production
|
||||
- cleanup
|
||||
|
||||
variables:
|
||||
OPENSHIFT_SERVER: openshift.default.svc.cluster.local
|
||||
|
@ -28,7 +28,7 @@ test2:
|
|||
.deploy: &deploy
|
||||
before_script:
|
||||
- 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:
|
||||
- "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"
|
||||
|
@ -51,7 +51,7 @@ review:
|
|||
|
||||
stop-review:
|
||||
<<: *deploy
|
||||
stage: review
|
||||
stage: cleanup
|
||||
script:
|
||||
- oc delete all -l "app=$APP"
|
||||
when: manual
|
33
vendor/gitlab-ci-yml/PHP.gitlab-ci.yml
vendored
Normal file
33
vendor/gitlab-ci-yml/PHP.gitlab-ci.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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
|
|
@ -9,3 +9,9 @@ pages:
|
|||
- public
|
||||
only:
|
||||
- master
|
||||
|
||||
test:
|
||||
script:
|
||||
- hugo
|
||||
except:
|
||||
- master
|
||||
|
|
14
vendor/gitlab-ci-yml/Pages/Jekyll.gitlab-ci.yml
vendored
14
vendor/gitlab-ci-yml/Pages/Jekyll.gitlab-ci.yml
vendored
|
@ -1,11 +1,15 @@
|
|||
# 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
|
||||
|
||||
before_script:
|
||||
- bundle install
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- gem install jekyll
|
||||
- jekyll build -d test
|
||||
- bundle exec jekyll build -d test
|
||||
artifacts:
|
||||
paths:
|
||||
- test
|
||||
|
@ -15,10 +19,10 @@ test:
|
|||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
- gem install jekyll
|
||||
- jekyll build -d public
|
||||
- bundle exec jekyll build -d public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
|
|
@ -12,6 +12,7 @@ stages:
|
|||
- review
|
||||
- staging
|
||||
- production
|
||||
- cleanup
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -61,7 +62,7 @@ review:
|
|||
- master
|
||||
|
||||
stop_review:
|
||||
stage: review
|
||||
stage: cleanup
|
||||
variables:
|
||||
GIT_STRATEGY: none
|
||||
script:
|
||||
|
|
|
@ -12,6 +12,7 @@ stages:
|
|||
- review
|
||||
- staging
|
||||
- production
|
||||
- cleanup
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -61,7 +62,7 @@ review:
|
|||
- master
|
||||
|
||||
stop_review:
|
||||
stage: review
|
||||
stage: cleanup
|
||||
variables:
|
||||
GIT_STRATEGY: none
|
||||
script:
|
||||
|
|
Loading…
Reference in a new issue