doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
6597728a-1028-40cd-a5bd-5b2910cf4bb5 | {
"language": "YAML"
} | ```yaml
#
# values to use if these are not specified in the ingest
#
rights: 'All rights reserved (no additional license for public reuse)'
publisher: <%= GenericWork::DEFAULT_PUBLISHER %>
institution: <%= GenericWork::DEFAULT_INSTITUTION %>
license: <%= GenericWork::DEFAULT_LICENSE %>
#
# the admin notes for informational purposes
#
admin_notes: 'Thesis originally deposited on LIBRA1_CREATE_DATE in version 1.28 of Libra. This thesis was migrated to Libra2 on CURRENT_DATE.'
#
# the default embargo type if we cannot determine one
#
# enable for new ingests (jefferson trust items, ILL)
# disable for masters & doctoral theses
#default_embargo_type: <%= Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED %>
#
# apply the specified embargo period; should be one of:
# 6_months, 1_year, 2_year, 5_year, forever (130 years)
#
# enable for new ingests (jefferson trust items, ILL)
# disable for masters & doctoral theses
#force_embargo_period: forever
```
Update default ingest as no more migration, just new bulk ingest | ```yaml
#
# values to use if these are not specified in the ingest
#
rights: 'All rights reserved (no additional license for public reuse)'
publisher: <%= GenericWork::DEFAULT_PUBLISHER %>
institution: <%= GenericWork::DEFAULT_INSTITUTION %>
license: <%= GenericWork::DEFAULT_LICENSE %>
#
# the admin notes for informational purposes
#
admin_notes: 'Thesis originally deposited on LIBRA1_CREATE_DATE in version 1.28 of Libra. This thesis was migrated to Libra2 on CURRENT_DATE.'
#
# the default embargo type if we cannot determine one
#
# enable for new ingests (jefferson trust items, ILL)
# disable for masters & doctoral theses
default_embargo_type: <%= Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED %>
#
# apply the specified embargo period; should be one of:
# 6_months, 1_year, 2_year, 5_year, forever (130 years)
#
# enable for new ingests (jefferson trust items, ILL)
# disable for masters & doctoral theses
force_embargo_period: forever
``` |
4b35bdc0-ea89-42e3-bee8-b7c44aa0257a | {
"language": "YAML"
} | ```yaml
trigger:
- master
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: sudo apt-get update --fix-missing
- script: sudo apt-get install -y libgl1-mesa-dev libgles2-mesa-dev libopenal-dev libasound2-dev libxxf86vm-dev libxi-dev libxcursor-dev libxrandr-dev libxss-dev
- script: |
cd samples
make -j2
displayName: 'make'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: MSBuild@1
inputs:
solution: samples/samples.vcxproj
configuration: Release
- job: macOS
pool:
vmImage: 'macOS-10.14'
steps:
- script: |
cd samples
make -j2
displayName: 'make'
```
Increment the macOS version for Azure | ```yaml
trigger:
- master
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: sudo apt-get update --fix-missing
- script: sudo apt-get install -y libgl1-mesa-dev libgles2-mesa-dev libopenal-dev libasound2-dev libxxf86vm-dev libxi-dev libxcursor-dev libxrandr-dev libxss-dev
- script: |
cd samples
make -j2
displayName: 'make'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: MSBuild@1
inputs:
solution: samples/samples.vcxproj
configuration: Release
- job: macOS
pool:
vmImage: 'macOS-10.15'
steps:
- script: |
cd samples
make -j2
displayName: 'make'
``` |
961fe2c8-1d94-4cf0-8efc-068e7363ae08 | {
"language": "YAML"
} | ```yaml
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
pool:
vmImage: 'VS2017-Win2016'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VSTest@2
inputs:
testAssemblyVer2: |
**\$(BuildConfiguration)\*test*.dll
!**\obj\**
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: PublishSymbols@2
displayName: 'Publish symbols path'
inputs:
SearchPattern: '**\bin\**\*.pdb'
PublishSymbols: false
continueOnError: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: '$(Parameters.ArtifactName)'
```
Update Artifact name, fix whitespace | ```yaml
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
pool:
vmImage: 'VS2017-Win2016'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
artifactname: 'planetpowershell'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VSTest@2
inputs:
testAssemblyVer2: |
**\$(BuildConfiguration)\*test*.dll
!**\obj\**
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: PublishSymbols@2
displayName: 'Publish symbols path'
inputs:
SearchPattern: '**\bin\**\*.pdb'
PublishSymbols: false
continueOnError: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: '$(artifactname)'
``` |
67dd43fc-3a56-48e2-be7e-f1b3cc0a4ad2 | {
"language": "YAML"
} | ```yaml
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
Major: 4
Minor: 0
BuildConfiguration: 'Release'
name: $(Major).$(Minor).$(BuildID)
steps:
- checkout: self
submodules: true
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '3.1.301'
includePreviewVersions: true
- task: DotNetCoreCLI@2
inputs:
command: 'build'
feedsToUse: 'select'
versioningScheme: byBuildNumber
arguments: '--configuration $(BuildConfiguration) -p:Version=$(Build.BuildNumber);FileVersion=$(Build.BuildNumber)'
- task: CmdLine@2
inputs:
script: 'iscc /Q "Setup Script.iss"'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'ServerStaging'
ArtifactName: 'artifact'
publishLocation: 'Container' ```
Update .net core sdk to latest | ```yaml
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
Major: 4
Minor: 0
BuildConfiguration: 'Release'
name: $(Major).$(Minor).$(BuildID)
steps:
- checkout: self
submodules: true
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '3.1.302'
includePreviewVersions: true
- task: DotNetCoreCLI@2
inputs:
command: 'build'
feedsToUse: 'select'
versioningScheme: byBuildNumber
arguments: '--configuration $(BuildConfiguration) -p:Version=$(Build.BuildNumber);FileVersion=$(Build.BuildNumber)'
- task: CmdLine@2
inputs:
script: 'iscc /Q "Setup Script.iss"'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'ServerStaging'
ArtifactName: 'artifact'
publishLocation: 'Container' ``` |
57ce69aa-ff85-4402-93a8-759eb52682f5 | {
"language": "YAML"
} | ```yaml
---
- name: deploy SSL private key
become: true
become_user: taiga
copy:
dest: "{{ _taiga_ssl_key_path }}"
mode: "0640"
content: "{{ taiga_webserver_ssl_key }}"
tags:
- config
- front-config
- name: deploy SSL certificate
become: true
become_user: taiga
copy:
dest: "{{ _taiga_ssl_certificate_path }}"
mode: "0644"
content: "{{ taiga_webserver_ssl_certificate }}"
tags:
- config
- front-config
```
Fix non-selfsigned SSL certificate deployment | ```yaml
---
- name: deploy SSL private key
become: true
become_user: taiga
copy:
dest: "{{ _taiga_ssl_key_path }}"
mode: "0640"
content: "{{ taiga_ssl_key }}"
tags:
- config
- front-config
- name: deploy SSL certificate
become: true
become_user: taiga
copy:
dest: "{{ _taiga_ssl_certificate_path }}"
mode: "0644"
content: "{{ taiga_ssl_certificate }}"
tags:
- config
- front-config
``` |
961704f3-a022-4475-99e0-bbe9a7ef9bd0 | {
"language": "YAML"
} | ```yaml
---
jenkins_dest: /opt/jenkins
jenkins_lib: /var/lib/jenkins
jenkins:
package: "http://pkg.jenkins-ci.org/debian/binary/jenkins_2.50_all.deb"
repo: "deb http://pkg.jenkins.io/debian-stable binary/"
key: "https://pkg.jenkins.io/debian/jenkins-ci.org.key"
dependencies:
- openjdk-7-jre
- openjdk-7-jdk
- git
- curl
- daemon
cli: "{{ jenkins_dest }}/jenkins-cli.jar"
updates: "{{ jenkins_dest }}/updates_jenkins.json"
```
Update Jenkins version to 2.54 | ```yaml
---
jenkins_dest: /opt/jenkins
jenkins_lib: /var/lib/jenkins
jenkins:
package: "http://pkg.jenkins-ci.org/debian/binary/jenkins_2.54_all.deb"
repo: "deb http://pkg.jenkins.io/debian-stable binary/"
key: "https://pkg.jenkins.io/debian/jenkins-ci.org.key"
dependencies:
- openjdk-7-jre
- openjdk-7-jdk
- git
- curl
- daemon
cli: "{{ jenkins_dest }}/jenkins-cli.jar"
updates: "{{ jenkins_dest }}/updates_jenkins.json"
``` |
c86861e5-e743-46c6-9187-4ecb859b2448 | {
"language": "YAML"
} | ```yaml
presubmits:
kubernetes-sigs/service-apis:
- name: pull-service-apis-build
annotations:
testgrid-dashboards: sig-network-service-apis
testgrid-tab-name: build
decorate: true
path_alias: sigs.k8s.io/service-apis
always_run: true
skip_report: false
spec:
containers:
- image: golang:1.13
command:
- make
```
Enable docker on service-apis jobs | ```yaml
presubmits:
kubernetes-sigs/service-apis:
- name: pull-service-apis-build
annotations:
testgrid-dashboards: sig-network-service-apis
testgrid-tab-name: build
labels:
preset-dind-enabled: "true"
decorate: true
path_alias: sigs.k8s.io/service-apis
always_run: true
skip_report: false
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:v20191017-ac4b4b5-master
command:
# generic runner script, handles DIND, bazelrc for caching, etc.
- runner.sh
args:
- make
# docker-in-docker needs privileged mode
securityContext:
privileged: true
``` |
5f1fae2c-459f-446a-b5cb-9a63bb433484 | {
"language": "YAML"
} | ```yaml
---
- name: Create project namespace
shell: oc new-project {{ namespace }} --description="EnMasse Infrastructure"
register: namespace_exists
failed_when: namespace_exists.stderr != '' and 'already exists' not in namespace_exists.stderr
changed_when: namespace_exists.rc == 0
```
Make sure project namespace is selected in the event it already exists | ```yaml
---
- name: Create project namespace
shell: oc new-project {{ namespace }} --description="EnMasse Infrastructure"
register: namespace_exists
failed_when: namespace_exists.stderr != '' and 'already exists' not in namespace_exists.stderr
changed_when: namespace_exists.rc == 0
- name: Select project namespace
shell: oc project {{ namespace }}
``` |
f062de96-8cd8-43b9-a1cc-54954cefe0b6 | {
"language": "YAML"
} | ```yaml
homepage: http://projects.haskell.org/gtk2hs/
changelog-type: ''
hash: 4b3032d9ca1e3b9e0f85d94622335f000ec00cc65bebaee9623fb717d70d9ad5
test-bench-deps: {}
maintainer: gtk2hs-users@lists.sourceforge.net
synopsis: Binding to the GStreamer open source multimedia framework.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=3 && <5'
glib: ! '>=0.12.5.0 && <0.13'
array: -any
mtl: -any
directory: -any
all-versions:
- '0.11.0'
- '0.11.1'
- '0.12.0'
- '0.12.1'
- '0.12.1.1'
- '0.12.1.2'
- '0.12.5.0'
author: Peter Gavin, Axel Simon
latest: '0.12.5.0'
description-type: haddock
description: ! 'This package provides a wrapper around the GStreamer C library. GStreamer
is a library
for constructing graphs of media-handling components. The applications it supports
range from simple Ogg/Vorbis playback, audio/video streaming to complex audio
(mixing) and video (non-linear editing) processing.'
license-name: LGPL-2.1
```
Update from Hackage at 2016-05-22T15:19:20+0000 | ```yaml
homepage: http://projects.haskell.org/gtk2hs/
changelog-type: ''
hash: e4552cc645778981e21ec8d129c7c4634c40731ac471125f54ddb854ee23ae96
test-bench-deps: {}
maintainer: gtk2hs-users@lists.sourceforge.net
synopsis: Binding to the GStreamer open source multimedia framework.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=3 && <5'
glib: ! '>=0.13 && <0.14'
array: -any
mtl: -any
directory: -any
all-versions:
- '0.11.0'
- '0.11.1'
- '0.12.0'
- '0.12.1'
- '0.12.1.1'
- '0.12.1.2'
- '0.12.5.0'
- '0.12.8'
author: Peter Gavin, Axel Simon
latest: '0.12.8'
description-type: haddock
description: ! 'This package provides a wrapper around the GStreamer C library. GStreamer
is a library
for constructing graphs of media-handling components. The applications it supports
range from simple Ogg/Vorbis playback, audio/video streaming to complex audio
(mixing) and video (non-linear editing) processing.'
license-name: LGPL-2.1
``` |
bd36d971-bc22-4bcb-baae-4fb4d73415a4 | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/nbrk/hashflare
changelog-type: ''
hash: a6f690f635b12064b1176286f46e129a99d2b6707e54460ea9a6edb6fd969606
test-bench-deps: {}
maintainer: nbrk@linklevel.net
synopsis: A library for working with HashFlare.io contracts and hashrates
changelog: ''
basic-deps:
base: ! '>=4.8 && <4.9'
simple-money: ! '>=0.2.0.0'
containers: ! '>=0.5 && <0.6'
all-versions:
- '0.1.0.0'
author: Nikolay Burkov
latest: '0.1.0.0'
description-type: haddock
description: ! 'Library that models HashFlare.io cloud mining service''s accounts,
contracts
and mining hashrates. Simple linear projections of the account''s balance
(increase in profits over time) can be easily modelled by provided combinators.'
license-name: BSD2
```
Update from Hackage at 2017-01-21T00:05:06Z | ```yaml
homepage: ''
changelog-type: ''
hash: accd8a66c743cbd6580182c1a85916dd6422d67a1587b7e2927849cd53e38f9a
test-bench-deps: {}
maintainer: nbrk@linklevel.net
synopsis: A library for working with HashFlare.io contracts and hashrates
changelog: ''
basic-deps:
base: ! '>=4.8 && <5.1'
simple-money: ! '>=0.2.0.0'
containers: ! '>=0.5 && <0.6'
all-versions:
- '0.1.0.0'
author: Nikolay Burkov
latest: '0.1.0.0'
description-type: haddock
description: ! 'Library that models HashFlare.io cloud mining service''s accounts,
contracts
and mining hashrates. Simple linear projections of the account''s balance
(increase in profits over time) can be easily modelled by provided combinators.'
license-name: BSD2
``` |
a38e9c85-8c9a-4ad7-a285-34e618d3eaae | {
"language": "YAML"
} | ```yaml
image: fedora:latest
variables:
DEPENDENCIES: chrpath vala gtk-doc
gobject-introspection-devel libxml2-devel
libsoup-devel glib2-devel gtk3-devel
liboauth-devel totem-pl-parser-devel
meson redhat-rpm-config gcc gcc-c++ glibc-devel
build_stable:
before_script:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- meson . _build --prefix=/usr
- ninja -C _build
- ninja -C _build install
- ninja -C _build test
build_no_optional_libs:
before_script:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- meson . _build --prefix=/usr -Denable-grl-net=false -Denable-grl-pls=false
- ninja -C _build
- ninja -C _build install
- ninja -C _build test
```
Build and run tests against grl-net and grl-pls | ```yaml
image: fedora:latest
variables:
DEPENDENCIES: chrpath vala gtk-doc
gobject-introspection-devel libxml2-devel
libsoup-devel glib2-devel gtk3-devel
liboauth-devel totem-pl-parser-devel
meson redhat-rpm-config gcc gcc-c++ glibc-devel
build_stable:
before_script:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- meson . _build --prefix=/usr
- ninja -C _build
- ninja -C _build install
- ninja -C _build test
build_no_optional_libs:
before_script:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- meson . _build --prefix=/usr -Denable-grl-net=true -Denable-grl-pls=true
- ninja -C _build
- ninja -C _build install
- ninja -C _build test
``` |
50eeb590-756f-4208-9fdf-701310f2ac8e | {
"language": "YAML"
} | ```yaml
before_script:
- |
apt-key adv -q --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F &&
add-apt-repository 'deb https://static.redox-os.org/toolchain/apt ./' &&
apt-get update -qq &&
apt-get purge -qq binutils-doc &&
apt-get install -qq build-essential nasm pkg-config fuse libfuse-dev genisoimage syslinux realpath x86-64-unknown-redox-gcc &&
modprobe fuse &&
chmod 666 /dev/fuse &&
chown root:$USER /etc/fuse.conf &&
curl https://sh.rustup.rs -sSf | sh
build:
script:
- make ci
```
Install dependencies for apt-key before adding toolchain repo | ```yaml
before_script:
- |
apt-get install -qq build-essential gnupg nasm pkg-config fuse libfuse-dev genisoimage syslinux realpath &&
apt-key adv -q --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F &&
add-apt-repository 'deb https://static.redox-os.org/toolchain/apt ./' &&
apt-get update -qq &&
apt-get purge -qq binutils-doc &&
apt-get install -qq x86-64-unknown-redox-gcc &&
modprobe fuse &&
chmod 666 /dev/fuse &&
chown root:$USER /etc/fuse.conf &&
curl https://sh.rustup.rs -sSf | sh
build:
script:
- make ci
``` |
b886b284-6e05-47b5-9704-9db2f45fa92e | {
"language": "YAML"
} | ```yaml
before_script:
- angr-test sync hard
local:
script: "angr-test cle"
tags:
- "angr"
angr:
script: "angr-test angr"
tags:
- "angr"
fidget:
script: "angr-test fidget"
tags:
- "angr"
angrop:
script: "angr-test angrop"
tags:
- "angr"
cle_lint:
script: "angr-test lint"
tags:
- "angr"
docs:
script: "angr-test docs"
tags:
- "angr"
```
Add cle reverse dependencies tests | ```yaml
before_script:
- angr-test sync hard
local:
script: "angr-test cle"
tags:
- "angr"
angr:
script: "angr-test angr"
tags:
- "angr"
fidget:
script: "angr-test fidget"
tags:
- "angr"
angrop:
script: "angr-test angrop"
tags:
- "angr"
tracer:
script: "angr-test tracer"
tags:
- "angr"
cle_lint:
script: "angr-test lint"
tags:
- "angr"
docs:
script: "angr-test docs"
tags:
- "angr"
``` |
605a68f0-71e1-4bd1-a601-83202b2c44a2 | {
"language": "YAML"
} | ```yaml
# See https://github.com/ridedott/merge-me-action/
# This workflow automates merges from patches sent by Dependabot, and
# only by dependabot, once the other CI workflows pass
name: Auto-merge Dependabot PRs
on:
workflow_run:
types:
- completed
workflows:
- "Continuous Integration"
jobs:
merge-me:
name: Auto-merge Dependabot PRs
runs-on: ubuntu-latest
steps:
- name: Auto-Merge
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ridedott/merge-me-action@v2.9.79
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_METHOD: MERGE
```
Bump ridedott/merge-me-action from 2.9.79 to 2.9.80 | ```yaml
# See https://github.com/ridedott/merge-me-action/
# This workflow automates merges from patches sent by Dependabot, and
# only by dependabot, once the other CI workflows pass
name: Auto-merge Dependabot PRs
on:
workflow_run:
types:
- completed
workflows:
- "Continuous Integration"
jobs:
merge-me:
name: Auto-merge Dependabot PRs
runs-on: ubuntu-latest
steps:
- name: Auto-Merge
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ridedott/merge-me-action@v2.9.80
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_METHOD: MERGE
``` |
5f8ea3f0-e6a2-49ac-8cf9-89ea2c48a62e | {
"language": "YAML"
} | ```yaml
variables:
CI_SCRIPTS_DIR: "./ci"
gift-gala:
script:
- MATLAB_EXE=/Applications/MATLAB_R2015b.app/bin/matlab
- MATLAB_SCRIPT=$(pwd)/matlab/CIBuildAndTest.m
- "$CI_SCRIPTS_DIR/test-mac.sh $MATLAB_EXE $MATLAB_SCRIPT"
tags:
- gift-gala
- gift-mac
- matlab-r2015b
- cuda
gift-adelie:
script:
- "$CI_SCRIPTS_DIR/test-linux.sh"
tags:
- gift-adelie
- gift-linux
- matlab
- cuda
gift-skylight:
script:
- set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
- "call .\\ci\\test-win.bat"
tags:
- gift-skylight
- gift-win64
- matlab
- cuda
```
Update test build to Xcode 7.3.1, Matlab R2016b, Cuda 7.5 | ```yaml
variables:
CI_SCRIPTS_DIR: "./ci"
gift-gala:
script:
- MATLAB_EXE=/Applications/MATLAB_R2016b.app/bin/matlab
- MATLAB_SCRIPT=$(pwd)/matlab/CIBuildAndTest.m
- XCODE_EXE=/Applications/Xcode7.3.1.app/Contents/Developer
- env DEVELOPER_DIR=$XCODE_EXE $CI_SCRIPTS_DIR/test-mac.sh $MATLAB_EXE $MATLAB_SCRIPT
tags:
- gift-gala
- gift-mac
- matlab-r2016b
- cuda7
gift-adelie:
script:
- "$CI_SCRIPTS_DIR/test-linux.sh"
tags:
- gift-adelie
- gift-linux
- matlab
- cuda
gift-skylight:
script:
- set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
- "call .\\ci\\test-win.bat"
tags:
- gift-skylight
- gift-win64
- matlab
- cuda
``` |
2fc46e07-b88d-4e4c-93a9-c6341b4d9757 | {
"language": "YAML"
} | ```yaml
# Test job template
.test_template: &test_definition
stage: test
script:
- bundle install --jobs $(nproc) --without docs --path vendor
- bundle exec rake tests
- bundle exec rake spec
# Test with version present on Debian Stretch
test:puppet4.8:
image: ruby:2.3
variables:
PUPPET_VERSION: "~> 4.8.2"
FACTER_VERSION: '~> 2.4.6'
HIERA_VERSION: '~> 3.2.0'
<<: *test_definition
# Test with version present on Debian Buster
test:puppet5.5:
image: ruby:2.5
variables:
PUPPET_VERSION: "~> 5.5.10"
FACTER_VERSION: '~> 3.11.0'
<<: *test_definition
# Build and deploy docs on GitLab Pages
pages:
image: debian:stable
stage: deploy
script:
- apt-get update && apt-get install -y puppet-strings puppet
- puppet strings generate
- mv doc public
only:
- master
artifacts:
paths:
- public
```
Drop puppet 4.8 and test against the latest puppet release in the CI | ```yaml
# Test job template
.test_template: &test_definition
stage: test
script:
- bundle install --jobs $(nproc) --without docs --path vendor
- bundle exec rake tests
- bundle exec rake spec
# Test with version present on Debian Buster
test:puppet5.5:
image: ruby:2.5
variables:
PUPPET_VERSION: "~> 5.5.10"
FACTER_VERSION: '~> 3.11.0'
<<: *test_definition
# Test with the latest Puppet release
test:puppetlatest:
<<: *test_definition
# Build and deploy docs on GitLab Pages
pages:
image: debian:stable
stage: deploy
script:
- apt-get update && apt-get install -y puppet-strings puppet
- puppet strings generate
- mv doc public
only:
- master
artifacts:
paths:
- public
``` |
f308d754-32e7-402d-a10b-4a5d5cbd4d5c | {
"language": "YAML"
} | ```yaml
title: Showcase
'@extends': default
form:
fields:
tabs:
fields:
advanced:
fields:
columns:
fields:
column1:
fields:
name:
default: modular/showcase
'@data-options': '\Grav\Common\Page\Pages::modularTypes'
overrides:
fields:
header.template:
default: modular/showcase
'@data-options': '\Grav\Common\Page\Pages::modularTypes'
buttons:
type: tab
title: Buttons
fields:
header.buttons:
name: buttons
type: list
label: Buttons
fields:
.text:
type: text
label: Text
.url:
type: text
label: URL
.primary:
type: toggle
label: Primary
highlight: 1
options:
1: Yes
0: No
validate:
type: bool
```
Fix for Showcase blueprint and PECL Yaml parser | ```yaml
title: Showcase
'@extends': default
form:
fields:
tabs:
fields:
advanced:
fields:
columns:
fields:
column1:
fields:
name:
default: modular/showcase
'@data-options': '\Grav\Common\Page\Pages::modularTypes'
overrides:
fields:
header.template:
default: modular/showcase
'@data-options': '\Grav\Common\Page\Pages::modularTypes'
buttons:
type: tab
title: Buttons
fields:
header.buttons:
name: buttons
type: list
label: Buttons
fields:
.text:
type: text
label: Text
.url:
type: text
label: URL
.primary:
type: toggle
label: Primary
highlight: 1
default: 1
options:
1: 'Yes'
0: 'No'
validate:
type: bool
``` |
d2fd3d03-3c38-47b0-aab6-5b891378043a | {
"language": "YAML"
} | ```yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sinker
labels:
app: sinker
spec:
replicas: 1
template:
metadata:
labels:
app: sinker
spec:
containers:
- name: sinker
image: gcr.io/kubernetes-jenkins-pull/sinker:0.0
restartPolicy: Never
```
Fix sinker restart policy. It's a deployment! | ```yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sinker
labels:
app: sinker
spec:
replicas: 1
template:
metadata:
labels:
app: sinker
spec:
containers:
- name: sinker
image: gcr.io/kubernetes-jenkins-pull/sinker:0.0
``` |
5ba6b65f-b89f-4c9c-b1e4-c9653d1336b1 | {
"language": "YAML"
} | ```yaml
homepage: http://www.keera.es/blog/community/
changelog-type: ''
hash: ad4cbcaacbd2e242e58723f1b7e848a2271ed7b185ab3f6ee2768afdc0510215
test-bench-deps: {}
maintainer: ivan.perez@keera.es
synopsis: Haskell on Gtk rails - Reactive Fields for Gtk widgets
changelog: ''
basic-deps:
keera-hails-reactivevalues: -any
base: ! '>=4 && <5'
gtk-helpers: -any
mtl: -any
gtk: -any
transformers: -any
all-versions:
- '0.0.3.5'
- '0.0.3.6'
author: Ivan Perez
latest: '0.0.3.6'
description-type: haddock
description: ''
license-name: BSD3
```
Update from Hackage at 2015-08-13T06:38:29+0000 | ```yaml
homepage: http://www.keera.es/blog/community/
changelog-type: ''
hash: a0dfc0461193c650372e7381462da2c021a7489274149e13ab752697c0c5bba2
test-bench-deps: {}
maintainer: ivan.perez@keera.es
synopsis: Haskell on Gtk rails - Reactive Fields for Gtk widgets
changelog: ''
basic-deps:
keera-hails-reactivevalues: -any
base: ! '>=4 && <5'
gtk-helpers: -any
mtl: -any
gtk: -any
transformers: -any
all-versions:
- '0.0.3.5'
- '0.0.3.6'
- '0.1'
author: Ivan Perez
latest: '0.1'
description-type: haddock
description: ''
license-name: BSD3
``` |
675099e3-2006-4467-a4f0-821aed4f198a | {
"language": "YAML"
} | ```yaml
- name: Copy script to workspace
copy:
src: "clear_nexus_vlans.py"
dest: "{{ workspace }}/clear_nexus_vlans.py"
- name: Ensure nexus switch is in known_hosts
known_hosts:
name: "{{ nexus_ip }}"
key: "{{ lookup('pipe', 'ssh-keyscan -t rsa %s' % nexus_ip) }}"
- name: Clear the claimed VLANs on the Nexus interfaces
command: "python {{ workspace }}/clear_nexus_vlans.py {{ nexus_ip }} {{ nexus_user }} {{ nexus_password }} {{ item }} {{ minvlan }} {{ maxvlan }}"
with_items: "{{ nexus_interfaces }}"
```
Use command instead of lookup in clear-nexus-vlans | ```yaml
- name: Copy script to workspace
copy:
src: "clear_nexus_vlans.py"
dest: "{{ workspace }}/clear_nexus_vlans.py"
- name: ssh-keyscan the nexus switch
command: "ssh-keyscan -t rsa {{ nexus_ip }}"
register: nexus_keyscan_result
- name: Ensure nexus switch is in known_hosts
known_hosts:
name: "{{ nexus_ip }}"
key: "{{ nexus_keyscan_result.stdout }}"
- name: Clear the claimed VLANs on the Nexus interfaces
command: "python {{ workspace }}/clear_nexus_vlans.py {{ nexus_ip }} {{ nexus_user }} {{ nexus_password }} {{ item }} {{ minvlan }} {{ maxvlan }}"
with_items: "{{ nexus_interfaces }}"
``` |
eabb6c76-eac5-48d4-af69-b5b8572d4ef4 | {
"language": "YAML"
} | ```yaml
---
yaml_strings_to_extract:
db/fixtures/miq_product_features.*:
- name
- description
db/fixtures/miq_report_formats.*:
- description
db/fixtures/notification_types.*:
- message
product/charts/layouts/*.yaml:
- title
product/charts/layouts/*/*.yaml:
- title
product/compare/*.yaml:
- headers
- group
- menu_name
- title
product/reports/*/*.*:
- headers
- menu_name
- title
product/timelines/miq_reports/*.*:
- title
- name
- headers
```
Expand i18n yaml extraction for miq_product_feature pluggability | ```yaml
---
yaml_strings_to_extract:
db/fixtures/miq_product_features{.yml,.yaml,/*.yml,/*.yaml}:
- name
- description
db/fixtures/miq_report_formats.*:
- description
db/fixtures/notification_types.*:
- message
product/charts/layouts/*.yaml:
- title
product/charts/layouts/*/*.yaml:
- title
product/compare/*.yaml:
- headers
- group
- menu_name
- title
product/reports/*/*.*:
- headers
- menu_name
- title
product/timelines/miq_reports/*.*:
- title
- name
- headers
``` |
7c3aae39-bade-4cd5-8ce7-4f54f8462108 | {
"language": "YAML"
} | ```yaml
language: python
python:
- 2.7
env:
global:
before_install:
- pip install awscli
install:
- pip install -r requirements.txt
before_script:
script:
after_success:
```
Write the CF template for the code-deploy. Need to test. Publish for time and life. | ```yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: The code deployment application.
Parameters:
ServiceRole:
Default: INPUT_IAM
Description: IAM service role for code deploy
Type: String
ApplicationName:
Default: stringer-app
Type: String
EC2TagKey:
Default: owner
Type: String
EC2TagValue:
Default: kalab
Type: String
Resources:
Application:
Type: 'AWS::CodeDeploy::Application'
Properties:
ApplicationName:
Ref: ApplicationName
DeploymentGroup:
Type: 'AWS::CodeDeploy::DeploymentGroup'
Properties:
ApplicationName:
Ref: Application
DeploymentConfigName: CodeDeployDefault.OneAtATime
AutoRollbackConfiguration:
Enabled: 'false'
DeploymentGroupName: wordsum
Ec2TagFilters:
- Key:
Ref: EC2TagKey
Value:
Ref: EC2TagValue
Type: KEY_AND_VALUE
ServiceRoleArn:
Ref: ServiceRole``` |
1b940a25-e734-4ef6-873b-c82e26920e48 | {
"language": "YAML"
} | ```yaml
fields:
- "jobcentre"
- "name"
- "address"
- "postcode"
phase: "discovery"
register: "jobcentre"
registry: "department-for-work-pensions"
text: "Job Centre Offices"
```
Rename "Job Centre Offices" to "Jobcentre Offices" | ```yaml
fields:
- "jobcentre"
- "name"
- "address"
- "postcode"
phase: "discovery"
register: "jobcentre"
registry: "department-for-work-pensions"
text: "Jobcentre Offices"
``` |
dc9e3cf4-ed9e-4b10-b8c5-4b061d8bee4a | {
"language": "YAML"
} | ```yaml
resources:
'ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Dummy': ~
'ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy':
shortName: 'thedummyshortname'
description: 'Dummy resource'
itemOperations:
my_op_name:
method: 'GET'
my_other_op_name:
method: 'POST'
collectionOperations:
my_collection_op:
method: 'POST'
path: 'the/collection/path'
attributes:
normalization_context:
groups: ['default']
denormalization_context:
groups: ['default']
hydra_context:
'@type': 'hydra:Operation'
'@hydra:title': 'File config Dummy'
iri: 'someirischema'
properties:
'foo':
description: 'The dummy foo'
readable: true
writable: true
readableLink: false
writableLink: false
required: true
attributes:
'foo': ['Foo']
'bar':
0: ['Bar']
'baz': 'Baz'
'baz': 'Baz'
'name':
description: 'The dummy name'
```
Fix yaml file, key should be quoted | ```yaml
resources:
'ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Dummy': ~
'ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\FileConfigDummy':
shortName: 'thedummyshortname'
description: 'Dummy resource'
itemOperations:
my_op_name:
method: 'GET'
my_other_op_name:
method: 'POST'
collectionOperations:
my_collection_op:
method: 'POST'
path: 'the/collection/path'
attributes:
normalization_context:
groups: ['default']
denormalization_context:
groups: ['default']
hydra_context:
'@type': 'hydra:Operation'
'@hydra:title': 'File config Dummy'
iri: 'someirischema'
properties:
'foo':
description: 'The dummy foo'
readable: true
writable: true
readableLink: false
writableLink: false
required: true
attributes:
'foo': ['Foo']
'bar':
'0': ['Bar']
'baz': 'Baz'
'baz': 'Baz'
'name':
description: 'The dummy name'
``` |
4fa75e83-b29a-4640-908c-4eaaa60154c0 | {
"language": "YAML"
} | ```yaml
package:
name: tifffile
version: 0.3.1
source:
git_rev: v0.3.1
git_url: https://github.com/blink1073/tifffile
build:
number: 1
requirements:
build:
- python
- setuptools
- numpy x.x
run:
- python
- numpy x.x
test:
imports:
- tifffile
about:
home: https://github.com/blink1073/tifffile
license: BSD License
summary: 'Read and write image data from and to TIFF files.'
```
Build tifffile from github source | ```yaml
package:
name: tifffile
version: 0.7.0
source:
git_rev: v0.7.0
git_url: https://github.com/blink1073/tifffile
build:
number: 1
requirements:
build:
- python
- setuptools
- numpy x.x
run:
- python
- numpy x.x
test:
imports:
- tifffile
about:
home: https://github.com/blink1073/tifffile
license: BSD License
summary: 'Read and write image data from and to TIFF files.'
``` |
82cd910c-4f64-40d6-a868-403830a6e1f2 | {
"language": "YAML"
} | ```yaml
name: "Validate Gradle Wrapper"
on: [push, pull_request]
permissions:
contents: read
jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
```
Use actions/checkout@v3 for Gradle Wrapper Validation Action | ```yaml
name: "Validate Gradle Wrapper"
on: [push, pull_request]
permissions:
contents: read
jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
``` |
79012729-e846-417c-a7cc-f11c54d20b87 | {
"language": "YAML"
} | ```yaml
parameters:
# bonnes_adresses.example.class: Bonnes\AdressesBundle\Example
services:
adresses.admin:
class: Bonnes\AdressesBundle\Admin\AdresseAdmin
tags:
- { name: sonata.admin, manager_type: doctrine_mongodb, group: "Adresses", label: "Adresses" }
arguments: [null, Bonnes\AdressesBundle\Document\Adresse, null]
adressestype.admin:
class: Bonnes\AdressesBundle\Admin\AdresseTypeAdmin
tags:
- { name: sonata.admin, manager_type: doctrine_mongodb, group: "Adresses", label: "Adresses Type" }
arguments: [null, Bonnes\AdressesBundle\Document\AdresseType, null]
my.sitemap.listener:
class: Bonnes\AdressesBundle\EventListener\SitemapListener
arguments: [@router, @doctrine_mongodb]
tags: [{name: "presta.sitemap.listener"}]
twig.extension.text:
class: Twig_Extensions_Extension_Text
tags:
- { name: twig.extension }
```
Remove last piece of AdresseType | ```yaml
parameters:
# bonnes_adresses.example.class: Bonnes\AdressesBundle\Example
services:
adresses.admin:
class: Bonnes\AdressesBundle\Admin\AdresseAdmin
tags:
- { name: sonata.admin, manager_type: doctrine_mongodb, group: "Adresses", label: "Adresses" }
arguments: [null, Bonnes\AdressesBundle\Document\Adresse, null]
my.sitemap.listener:
class: Bonnes\AdressesBundle\EventListener\SitemapListener
arguments: [@router, @doctrine_mongodb]
tags: [{name: "presta.sitemap.listener"}]
twig.extension.text:
class: Twig_Extensions_Extension_Text
tags:
- { name: twig.extension }
``` |
dc6565cc-5996-4b36-a9ab-c165968f3e39 | {
"language": "YAML"
} | ```yaml
kind: MasterConfiguration
apiVersion: kubeadm.k8s.io/v1alpha1
controllerManagerExtraArgs:
horizontal-pod-autoscaler-use-rest-clients: "true"
horizontal-pod-autoscaler-sync-period: "10s"
node-monitor-grace-period: "10s"
apiServerExtraArgs:
runtime-config: "api/all=true"
feature-gates: "TaintBasedEvictions=true"
kubernetesVersion: "stable-1.7"
```
Remove the TaintBasedEvictions alpha feature | ```yaml
apiVersion: kubeadm.k8s.io/v1alpha1
kind: MasterConfiguration
controllerManagerExtraArgs:
horizontal-pod-autoscaler-use-rest-clients: "true"
horizontal-pod-autoscaler-sync-period: "10s"
node-monitor-grace-period: "10s"
apiServerExtraArgs:
runtime-config: "api/all=true"
kubernetesVersion: "stable-1.7"
``` |
d5b49f32-2e57-48ac-b9ef-8ef2b0c3d0ad | {
"language": "YAML"
} | ```yaml
variants:
boskos:
COMPONENT: boskos
SUBDIR: ''
reaper:
COMPONENT: reaper
SUBDIR: reaper
janitor:
COMPONENT: janitor
SUBDIR: janitor
aws-janitor:
COMPONENT: aws-janitor
SUBDIR: ../maintenance/aws-janitor # why?
```
Add missing boskos metrics image. | ```yaml
variants:
boskos:
COMPONENT: boskos
SUBDIR: ''
reaper:
COMPONENT: reaper
SUBDIR: reaper
janitor:
COMPONENT: janitor
SUBDIR: janitor
metrics:
COMPONENT: metrics
SUBDIR: metrics
aws-janitor:
COMPONENT: aws-janitor
SUBDIR: ../maintenance/aws-janitor # why?
``` |
d1e974f2-e48c-40e7-ae7e-875a029c9c44 | {
"language": "YAML"
} | ```yaml
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node'
static_configs:
- targets: ['localhost:9100', 'sb-staging:9100', 'sb-prod:9100']
- job_name: 'app_server'
static_configs:
- targets: ['sb-staging:80', 'sb-prod:9100']
```
Fix port on metrics from webserver. | ```yaml
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node'
static_configs:
- targets: ['localhost:9100', 'sb-staging:9100', 'sb-prod:9100']
- job_name: 'app_server'
static_configs:
- targets: ['sb-staging:80', 'sb-prod:80']
``` |
3619241d-cecd-429d-a63c-28962d3deeab | {
"language": "YAML"
} | ```yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: elasticsearch
labels:
provider: elasticsearch-1
heritage: helm
spec:
replicas: 1
selector:
provider: elasticsearch-1
template:
metadata:
name: elasticsearch-1
labels:
provider: elasticsearch-1
spec:
containers:
- name: elasticsearch
image: elasticsearch:1.7
ports:
- containerPort: 9200
- containerPort: 9300
```
Revert "fix(elasticsearch-1): name pod properly for tests" | ```yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: elasticsearch
labels:
provider: elasticsearch-1
heritage: helm
spec:
replicas: 1
selector:
provider: elasticsearch-1
template:
metadata:
name: elasticsearch
labels:
provider: elasticsearch-1
spec:
containers:
- name: elasticsearch
image: elasticsearch:1.7
ports:
- containerPort: 9200
- containerPort: 9300
``` |
18eed2b9-274b-4775-8d09-b9374f03e1eb | {
"language": "YAML"
} | ```yaml
package:
name: "hydromath"
version: {{ environ['GIT_DESCRIBE_TAG'][1:] }}
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
source:
git_url: https://github.com/amacd31/hydromath_py.git
git_rev: master
requirements:
build:
- python x.x
- libhydromath # [unix]
- cffi
run:
- python x.x
- libhydromath # [unix]
- cffi
```
Use relative git_url instead of remote git url | ```yaml
package:
name: "hydromath"
version: {{ environ['GIT_DESCRIBE_TAG'][1:] }}
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
source:
git_url: ../
requirements:
build:
- python x.x
- libhydromath # [unix]
- cffi
run:
- python x.x
- libhydromath # [unix]
- cffi
``` |
6c6392c4-3bdb-4ba6-a8e8-a97b01bbfde0 | {
"language": "YAML"
} | ```yaml
development:
database: 'twb'
username: root
password: root
production:
database: 'twb'
username: root
password: root
test:
database: 'twb'
username: root
password: root
```
Change database name to botnbot | ```yaml
development:
database: 'botnbot'
username: root
password: root
production:
database: 'botnbot'
username: root
password: root
test:
database: 'botnbot'
username: root
password: root
``` |
c2a7b5a8-4f0e-4b1f-94c7-4d82d0344893 | {
"language": "YAML"
} | ```yaml
---
- name: elasticsearch-install | Add repository keys
apt_key: keyserver="{{item.server}}" id="{{item.key}}" state=present
with_items: "{{ elasticsearch_apt_repo_keys }}"
- name: elasticsearch-install | Add repositories
apt_repository: repo="{{item}}" update_cache=yes
with_items: "{{ elasticsearch_apt_repos }}"
- name: elasticsearch-install | Check for Elasticsearch already installed
stat: path={{elasticsearch_home}}/lib/elasticsearch-{{elasticsearch_version}}.jar
register: version_exists
- name: elasticsearch-install | Download deb
get_url: url={{elasticsearch_download_url}}/elasticsearch-{{elasticsearch_version}}.deb dest=/tmp/elasticsearch-{{elasticsearch_version}}.deb mode=0440
when: not version_exists.stat.exists
- name: elasticsearch-install | Install Elasticsearch
apt: deb=/tmp/elasticsearch-{{elasticsearch_version}}.deb dpkg_options=force-confnew
when: not version_exists.stat.exists
- name: elasticsearch-install | Setup passlib
apt: pkg=python-passlib
when: elasticsearch_proxy_auth
```
Install modern elasticsearch when previous doesn't exist or elasticsearch_version is customised | ```yaml
---
- name: elasticsearch-install | Add repository keys
apt_key: keyserver="{{item.server}}" id="{{item.key}}" state=present
with_items: "{{ elasticsearch_apt_repo_keys }}"
- name: elasticsearch-install | Add repositories
apt_repository: repo="{{item}}" update_cache=yes
with_items: "{{ elasticsearch_apt_repos }}"
- name: elasticsearch-install | Check for Elasticsearch already installed
stat: path={{elasticsearch_home}}/lib/elasticsearch-{{elasticsearch_version}}.jar
register: version_exists
- name: elasticsearch-install | Download deb (legacy)
get_url: url={{elasticsearch_download_url}}/elasticsearch-{{elasticsearch_version}}.deb dest=/tmp/elasticsearch-{{elasticsearch_version}}.deb mode=0440
when: not version_exists.stat.exists and not elasticsearch_version == "7.1.1"
- name: elasticsearch-install | Install Elasticsearch (legacy)
apt: deb=/tmp/elasticsearch-{{elasticsearch_version}}.deb dpkg_options=force-confnew
when: not version_exists.stat.exists and not elasticsearch_version == "7.1.1"
- name: add apt key for elastic (modern)
apt_key: url="https://artifacts.elastic.co/GPG-KEY-elasticsearch" state=present
notify: elasticsearch restart
when: not version_exists.stat.exists and elasticsearch_version == "7.1.1"
- name: add elastic 7 apt source list (modern)
copy: content="deb https://artifacts.elastic.co/packages/7.x/apt stable main" dest="/etc/apt/sources.list.d/elastic-7.x.list"
notify: elasticsearch restart
when: not version_exists.stat.exists and elasticsearch_version == "7.1.1"
- name: elasticsearch-install | Install Elasticsearch (modern)
apt: name="elasticsearch" state=latest
when: not version_exists.stat.exists and elasticsearch_version == "7.1.1"
- name: elasticsearch-install | Setup passlib
apt: pkg=python-passlib
when: elasticsearch_proxy_auth
``` |
ed19c670-1e54-4d6e-a184-fe297d1b0a50 | {
"language": "YAML"
} | ```yaml
directory: ~/music/beetsdir
library: ~/.beets.db
plugins:
missing duplicates fetchart embedart zero convert chroma info play discogs random fuzzy
import:
copy: yes
log: ~/.beetsimports.log
fuzzy:
threshold: 0.8
prefix: "?"
fetchart:
enforce_ratio: no
minwidth: 500
zero:
fields: albumartist_sort artist_sort comments genre
update_database: true
convert:
dest: /tmp/
never_convert_lossy_files: yes
formats:
ipod:
command: ffmpeg -v warning -analyzeduration 100000000 -i $source -vn -c:a alac -ar 48000 -sample_fmt s16p $dest
extension: m4a
opus: ffmpeg -i $source -y -vn -acodec libopus -ab 128k $dest
aac:
extension: m4a
command: ffmpeg -i $source -vn -c:a libfdk_aac -vbr 5 $dest
mp3: ffmpeg -i $source -y -vn -c:a libmp3lame $dest
play:
warning_threshold: no
raw: yes
command: ds vlc --one-instance --playlist-enqueue --started-from-file -ZL
```
Revert "beets: do not asciify paths" | ```yaml
directory: ~/music/beetsdir
library: ~/.beets.db
asciify_path: yes
plugins:
missing duplicates fetchart embedart zero convert chroma info play discogs random fuzzy
import:
copy: yes
log: ~/.beetsimports.log
fuzzy:
threshold: 0.8
prefix: "?"
fetchart:
enforce_ratio: no
minwidth: 500
zero:
fields: albumartist_sort artist_sort comments genre
update_database: true
convert:
dest: /tmp/
never_convert_lossy_files: yes
formats:
ipod:
command: ffmpeg -v warning -analyzeduration 100000000 -i $source -vn -c:a alac -ar 48000 -sample_fmt s16p $dest
extension: m4a
opus: ffmpeg -i $source -y -vn -acodec libopus -ab 128k $dest
aac:
extension: m4a
command: ffmpeg -i $source -vn -c:a libfdk_aac -vbr 5 $dest
mp3: ffmpeg -i $source -y -vn -c:a libmp3lame $dest
play:
warning_threshold: no
raw: yes
command: ds vlc --one-instance --playlist-enqueue --started-from-file -ZL
``` |
da12562e-8262-4b7c-a554-f3b5b2e48475 | {
"language": "YAML"
} | ```yaml
name: ${project.name}
version: ${project.version}
main: nl.rutgerkok.blocklocker.impl.BlockLockerPluginImpl
author: Rutger Kok
load: startup
permissions:
blocklocker.protect:
description: "Protect containers and doors."
default: true
blocklocker.bypass:
description: "Bypass someone else's protection."
default: op
blocklocker.reload:
description: "Reload the plugin using /blocklocker reload."
default: op
commands:
blocklocker:
description: "Edit a sign on your protection."
permission: "blocklocker.protect"
usage: "/<command> <lineNumber> <value>"
```
Add /bl alias for /blocklocker | ```yaml
name: ${project.name}
version: ${project.version}
main: nl.rutgerkok.blocklocker.impl.BlockLockerPluginImpl
author: Rutger Kok
load: startup
permissions:
blocklocker.protect:
description: "Protect containers and doors."
default: true
blocklocker.bypass:
description: "Bypass someone else's protection."
default: op
blocklocker.reload:
description: "Reload the plugin using /blocklocker reload."
default: op
commands:
blocklocker:
description: "Edit a sign on your protection."
permission: "blocklocker.protect"
usage: "/<command> <lineNumber> <value>"
aliases: "bl"
``` |
cdccfdd1-0f93-407a-9fd5-506cc0fcaa16 | {
"language": "YAML"
} | ```yaml
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
- name: Report PHP version
run: php -v
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ matrix.php }}-composer-
- name: Update dependencies
run: composer update --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: ./vendor/bin/phpunit --coverage-clover clover.xml
- name: Run coverage service
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./vendor/bin/php-coveralls --coverage_clover=./clover.xml -v
```
Update Github Actions environment to Build for secrets. | ```yaml
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php }}
environment: Build
steps:
- uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
- name: Report PHP version
run: php -v
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ matrix.php }}-composer-
- name: Update dependencies
run: composer update --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: ./vendor/bin/phpunit --coverage-clover clover.xml
- name: Run coverage service
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./vendor/bin/php-coveralls --coverage_clover=./clover.xml -v
``` |
31672c0e-452b-4a56-b6dc-eb9e0f052662 | {
"language": "YAML"
} | ```yaml
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
java-version: '16'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
echo "::set-output name=releaseName::`ls home/runner/work/SubTools/SubTools/SubSort/target/subsort-*.jar | awk -F '(/|.jar)' '{print $8}'`"
- name: Upload jar
if: success()
uses: actions/upload-artifact@v3
with:
name: ${{ steps.buildRelease.outputs.releaseName }}
path: "home/runner/work/SubTools/SubTools/SubSort/target/subsort-*.jar"
```
Revert "upload artifact after build" | ```yaml
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
java-version: '16'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml``` |
6c80adcf-d860-47bf-b743-d59943385b2f | {
"language": "YAML"
} | ```yaml
hosts: [localhost]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0}```
Update config with titan-specific serialization option. | ```yaml
hosts: [localhost]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { custom: [com.thinkaurelius.titan.graphdb.relations.RelationIdentifier] }}``` |
eab68911-64a3-4270-b725-a64f786597c5 | {
"language": "YAML"
} | ```yaml
en:
voc:
cancel: "Cancel"
close: "Close"
confirm: "Are you sure?"
delete: "Delete"
edit: "Edit"
login: "Sign in"
save: "Save changes"
register: "Sign up"
terms: "Terms of Service"
update: "Update"
messages:
noauth: "requires authentication"```
Apply review suggestion from @raccube | ```yaml
en:
voc:
cancel: "Cancel"
close: "Close"
confirm: "Are you sure?"
delete: "Delete"
edit: "Edit"
login: "Sign in"
save: "Save changes"
register: "Sign up"
terms: "Terms of Service"
update: "Update"
messages:
noauth: "You must be signed in to do this."``` |
5b07aee0-4a2b-41f1-b6b7-c279d4ded192 | {
"language": "YAML"
} | ```yaml
---
include:
default:
- profile::openstack::metric
- profile::openstack::openrc
- profile::logging::rsyslog::client
openstack_version: 'queens' #FIXME
memcached::max_memory: '20%'
profile::base::common::packages:
'python-openstackclient': {}
'openstack-selinux': {}
'python-memcached': {} # gnocchi::manage_memcache_package are broken
profile::openstack::metric::manage_firewall: true
profile::openstack::metric::manage_wsgi: true
profile::openstack::metric::firewall_extras:
source: "%{::network_trp1}/%{::netmask_trp1}"
profile::openstack::openrc::password: "%{hiera('gnocchi_api_password')}"
profile::openstack::openrc::username: 'gnocchi'
profile::openstack::openrc::project_name: 'services'
# Enable extra yum repo
profile::base::yumrepo::repo_hash:
rdo-release:
ensure: present
exclude: 'mariadb*'
mariadb:
ensure: present
epel: # should be absent when using RDO, but whitelist can also work
ensure: present
includepkgs: 'htop bash-completion-extras'
```
Revert switch of mariadb repo, delaying the switchover until after the queens upgrade | ```yaml
---
include:
default:
- profile::openstack::metric
- profile::openstack::openrc
- profile::logging::rsyslog::client
openstack_version: 'queens' #FIXME
memcached::max_memory: '20%'
profile::base::common::packages:
'python-openstackclient': {}
'openstack-selinux': {}
'python-memcached': {} # gnocchi::manage_memcache_package are broken
profile::openstack::metric::manage_firewall: true
profile::openstack::metric::manage_wsgi: true
profile::openstack::metric::firewall_extras:
source: "%{::network_trp1}/%{::netmask_trp1}"
profile::openstack::openrc::password: "%{hiera('gnocchi_api_password')}"
profile::openstack::openrc::username: 'gnocchi'
profile::openstack::openrc::project_name: 'services'
# Enable extra yum repo
profile::base::yumrepo::repo_hash:
rdo-release:
ensure: present
epel: # should be absent when using RDO, but whitelist can also work
ensure: present
includepkgs: 'htop bash-completion-extras'
``` |
c5af8f02-c959-4927-ba08-875db48637fc | {
"language": "YAML"
} | ```yaml
Categories:
- Security
License: GPL-3.0-only
AuthorName: Sultanahamer
SourceCode: https://github.com/sultanahamer/PermissionsManager
IssueTracker: https://github.com/sultanahamer/PermissionsManager/issues
Changelog: https://github.com/sultanahamer/PermissionsManager/blob/HEAD/CHANGELOG
AutoName: PermissionsManager
RepoType: git
Repo: https://github.com/sultanahamer/PermissionsManager
Builds:
- versionName: '3.0'
versionCode: 3
commit: v3.0
subdir: app
gradle:
- yes
- versionName: '4.0'
versionCode: 4
commit: 267a69b7162d199198a83fb4d4fb851648804922
subdir: app
sudo:
- apt-get update || apt-get update
- apt-get install -y openjdk-11-jdk-headless
- update-alternatives --auto java
gradle:
- yes
prebuild: echo 'android { lintOptions { abortOnError false } }' >> build.gradle
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '4.0'
CurrentVersionCode: 4
```
Update PermissionsManager to 5.0 (5) | ```yaml
Categories:
- Security
License: GPL-3.0-only
AuthorName: Sultanahamer
SourceCode: https://github.com/sultanahamer/PermissionsManager
IssueTracker: https://github.com/sultanahamer/PermissionsManager/issues
Changelog: https://github.com/sultanahamer/PermissionsManager/blob/HEAD/CHANGELOG
AutoName: PermissionsManager
RepoType: git
Repo: https://github.com/sultanahamer/PermissionsManager
Builds:
- versionName: '3.0'
versionCode: 3
commit: v3.0
subdir: app
gradle:
- yes
- versionName: '4.0'
versionCode: 4
commit: 267a69b7162d199198a83fb4d4fb851648804922
subdir: app
sudo:
- apt-get update || apt-get update
- apt-get install -y openjdk-11-jdk-headless
- update-alternatives --auto java
gradle:
- yes
prebuild: echo 'android { lintOptions { abortOnError false } }' >> build.gradle
- versionName: '5.0'
versionCode: 5
commit: d874fa330703de3c284457e3ff4349079b446dbf
subdir: app
sudo:
- apt-get update || apt-get update
- apt-get install -y openjdk-11-jdk-headless
- update-alternatives --auto java
gradle:
- yes
prebuild: echo 'android { lintOptions { abortOnError false } }' >> build.gradle
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '5.0'
CurrentVersionCode: 5
``` |
74a15ba2-bb25-42d2-93ea-6818880ca9a7 | {
"language": "YAML"
} | ```yaml
Categories:
- Security
- Multimedia
- Connectivity
License: GPL-3.0-only
AuthorName: Daniele Verducci
AuthorEmail: daniele.verducci@gmail.com
SourceCode: https://github.com/penguin86/ojo
IssueTracker: https://github.com/penguin86/ojo/issues
Name: Ojo RTSP IP Camera viewer
AutoName: Ojo
RepoType: git
Repo: https://github.com/penguin86/ojo.git
Builds:
- versionName: 0.0.2
versionCode: 2
commit: 448ff4d2b3d65233ea9c879a8f7e1b06300afc36
subdir: app
gradle:
- yes
- versionName: 0.0.3
versionCode: 3
commit: 505f8bf54b8477dab38f83267ac8a1f51edc9ea1
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 0.0.3
CurrentVersionCode: 3
```
Update Ojo RTSP IP Camera viewer to 0.1.0 (4) | ```yaml
Categories:
- Security
- Multimedia
- Connectivity
License: GPL-3.0-only
AuthorName: Daniele Verducci
AuthorEmail: daniele.verducci@gmail.com
SourceCode: https://github.com/penguin86/ojo
IssueTracker: https://github.com/penguin86/ojo/issues
Name: Ojo RTSP IP Camera viewer
AutoName: Ojo
RepoType: git
Repo: https://github.com/penguin86/ojo.git
Builds:
- versionName: 0.0.2
versionCode: 2
commit: 448ff4d2b3d65233ea9c879a8f7e1b06300afc36
subdir: app
gradle:
- yes
- versionName: 0.0.3
versionCode: 3
commit: 505f8bf54b8477dab38f83267ac8a1f51edc9ea1
subdir: app
gradle:
- yes
- versionName: 0.1.0
versionCode: 4
commit: 24fc195ff537841ce19f1209cd46a9b41a42c593
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 0.1.0
CurrentVersionCode: 4
``` |
423418ed-c26f-490f-884c-9f073f021c63 | {
"language": "YAML"
} | ```yaml
---
- name: openvpn restart
service: name={{openvpn_service}} state=restarted
- name: openvpn pack clients
command: zip -j {{openvpn_keydir}}/{{item.item}}.zip {{openvpn_keydir}}/{{item.item}}.crt {{openvpn_keydir}}/{{item.item}}.key {{openvpn_keydir}}/{{item.item}}.ovpn {{openvpn_keydir}}/ca.crt {{openvpn_tls_key if openvpn_tls_auth else ''}}
when: item.changed
with_items: "{{openvpn_clients_changed.results}}"
```
Add ta.key to archive (alternate method) | ```yaml
---
- name: openvpn restart
service: name={{openvpn_service}} state=restarted
- name: openvpn pack clients
command: zip -j {{item.item}}.zip {{item.item}}.crt {{item.item}}.key {{item.item}}.ovpn ca.crt {{openvpn_tls_key if openvpn_tls_auth else ''}}
when: item.changed
with_items: "{{openvpn_clients_changed.results}}"
args:
chdir: "{{ openvpn_keydir }}"
``` |
acb7d092-1d38-49f1-874b-7b334156576b | {
"language": "YAML"
} | ```yaml
parameters:
darvin_menu.item_factory.abstract.class: Darvin\MenuBundle\Item\AbstractItemFactory
darvin_menu.item_factory.menu_item.class: Darvin\MenuBundle\Item\MenuItemFactory
darvin_menu.item_factory.slug_map_item.class: Darvin\MenuBundle\Item\SlugMapItemFactory
darvin_menu.item_factory.slug_map_item.uri_route: darvin_content_content_show
services:
darvin_menu.item_factory.abstract:
class: "%darvin_menu.item_factory.abstract.class%"
abstract: true
# public: false
arguments:
- "@doctrine.orm.entity_manager"
- "@knp_menu.factory"
darvin_menu.item_factory.menu_item:
class: "%darvin_menu.item_factory.menu_item.class%"
parent: darvin_menu.item_factory.abstract
arguments:
- "@darvin_menu.item_factory.slug_map_item"
darvin_menu.item_factory.slug_map_item:
class: "%darvin_menu.item_factory.slug_map_item.class%"
parent: darvin_menu.item_factory.abstract
arguments:
- "@router"
- "%darvin_menu.item_factory.slug_map_item.uri_route%"
```
Make item factory services private. | ```yaml
parameters:
darvin_menu.item_factory.abstract.class: Darvin\MenuBundle\Item\AbstractItemFactory
darvin_menu.item_factory.menu_item.class: Darvin\MenuBundle\Item\MenuItemFactory
darvin_menu.item_factory.slug_map_item.class: Darvin\MenuBundle\Item\SlugMapItemFactory
darvin_menu.item_factory.slug_map_item.uri_route: darvin_content_content_show
services:
darvin_menu.item_factory.abstract:
class: "%darvin_menu.item_factory.abstract.class%"
abstract: true
public: false
arguments:
- "@doctrine.orm.entity_manager"
- "@knp_menu.factory"
darvin_menu.item_factory.menu_item:
class: "%darvin_menu.item_factory.menu_item.class%"
parent: darvin_menu.item_factory.abstract
arguments:
- "@darvin_menu.item_factory.slug_map_item"
darvin_menu.item_factory.slug_map_item:
class: "%darvin_menu.item_factory.slug_map_item.class%"
parent: darvin_menu.item_factory.abstract
arguments:
- "@router"
- "%darvin_menu.item_factory.slug_map_item.uri_route%"
``` |
c041fe98-4c06-4940-91f8-e6c019438d2a | {
"language": "YAML"
} | ```yaml
sudo: false
notifications:
email: false
language: python
python:
- "2.7"
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy
- pip install coverage
- python setup.py install
script: coverage run -m unittest discover pyGeno/tests/
after_success: bash <(curl -s https://codecov.io/bash)
```
Install rabaDB from git for now | ```yaml
sudo: false
notifications:
email: false
language: python
python:
- "2.7"
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy
- pip install coverage
- pip install https://github.com/tariqdaouda/rabaDB/archive/stable.zip
- python setup.py install
script: coverage run -m unittest discover pyGeno/tests/
after_success: bash <(curl -s https://codecov.io/bash)
``` |
db531d94-0cc5-4637-be28-ef34035c4ba7 | {
"language": "YAML"
} | ```yaml
sudo: required
dist: trusty
language: python
python:
- '2.6'
- '2.7'
- '3.2'
- '3.3'
- '3.4'
- '3.5'
- '3.5-dev'
- 'nightly'
- 'pypy'
- 'pypy3'
matrix:
allow_failures:
- python: '2.6'
- python: '3.2'
- python: '3.5-dev'
- python: 'nightly'
- python: 'pypy'
- python: 'pypy3'
addons:
apt:
packages:
- texlive-latex-extra
- texlive-pictures
- texlive-science
- texlive-full
install:
- pip install 3to2 future
- pip install -r dev_requirements.txt
script: ./testall.sh
```
Remove broken python builds and don't use texlive-full | ```yaml
sudo: required
dist: trusty
language: python
python:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
- '3.5-dev'
- 'nightly'
matrix:
allow_failures:
- python: '3.5-dev'
- python: 'nightly'
addons:
apt:
packages:
- texlive-latex-extra
- texlive-pictures
- texlive-science
- texlive-fonts-recommended
install:
- pip install 3to2 future
- pip install -r dev_requirements.txt
script: ./testall.sh
``` |
7234b3e1-8323-47a1-a845-4207d5d158c4 | {
"language": "YAML"
} | ```yaml
language: csharp
mono: none
dotnet: 2.0.0
dist: trusty
branches:
only:
- master
- develop
script:
- dotnet restore
notifications:
email:
on_success: never
on_failure: always```
Add build step to Travis CI | ```yaml
language: csharp
mono: none
dotnet: 2.0.0
dist: trusty
branches:
only:
- master
- develop
script:
- dotnet restore
- dotnet build
notifications:
email:
on_success: never
on_failure: always``` |
014e2d2b-e757-4dd8-becc-56963edde100 | {
"language": "YAML"
} | ```yaml
language: haskell
before_install:
- npm install coffee-script -g
- cabal install alex >= 3.0.5
script:
- cabal configure && cabal build
deploy:
provider: heroku
api_key:
secure: hBbPLNburzk/YY3hbpgdmbMdfk/osgh76fYBui1Yx6CYBTfMRUii22y8rtrCeu2BD6bEVEoSzFEelxg/LsVUjHIBnowXkl26lu3qbt6WpXi6KIyNJx/Y0U1gyoghW5hHqf2OL0u4zdHc7/jueVNmPcIDqq7XHUq84xi6TvAHwJY=
app: lambdacircus
on:
repo: mithrandi/lambdacircus
skip_cleanup: true
buildpack: https://github.com/begriffs/heroku-buildpack-ghc.git
strategy: anvil
```
Use quotes in command line. | ```yaml
language: haskell
before_install:
- npm install coffee-script -g
- cabal install 'alex >= 3.0.5'
script:
- cabal configure && cabal build
deploy:
provider: heroku
api_key:
secure: hBbPLNburzk/YY3hbpgdmbMdfk/osgh76fYBui1Yx6CYBTfMRUii22y8rtrCeu2BD6bEVEoSzFEelxg/LsVUjHIBnowXkl26lu3qbt6WpXi6KIyNJx/Y0U1gyoghW5hHqf2OL0u4zdHc7/jueVNmPcIDqq7XHUq84xi6TvAHwJY=
app: lambdacircus
on:
repo: mithrandi/lambdacircus
skip_cleanup: true
buildpack: https://github.com/begriffs/heroku-buildpack-ghc.git
strategy: anvil
``` |
ef76116f-fa77-4859-b7ad-76272b2201b1 | {
"language": "YAML"
} | ```yaml
sudo: false
language: python
python:
- "3.5"
addons:
apt:
packages:
- git
install:
- pip install -r requirements-py35-linux64.txt
- python setup.py develop
- git clone --depth=1 https://github.com/gem/oq-hazardlib.git
# We must set the PYTHONPATH to the root oq-engine (insted of oq-engine/openquake) because otherwise
# the full 'openquake' namespace is overwritten and then hazardlib and baselib are not found
script:
# FIXME --with-doctest does not work
# - PYTHONPATH=. nosetests -vsx -a'!slow' --with-xunit --nologcapture
- PYTHONPATH=.:$(pwd)/oq-hazardlib nosetests -v -a'!slow'
```
Add a debug print in Travis | ```yaml
sudo: false
language: python
python:
- "3.5"
addons:
apt:
packages:
- git
install:
- pip install -r requirements-py35-linux64.txt
- python setup.py develop
- git clone --depth=1 https://github.com/gem/oq-hazardlib.git
# We must set the PYTHONPATH to the root oq-engine (insted of oq-engine/openquake) because otherwise
# the full 'openquake' namespace is overwritten and then hazardlib and baselib are not found
script:
# FIXME --with-doctest does not work
# - PYTHONPATH=. nosetests -vsx -a'!slow' --with-xunit --nologcapture
- PYTHONPATH=.:$(pwd)/oq-hazardlib nosetests -v -a'!slow'
- cat /tmp/*
``` |
790284fa-7920-4954-ac11-617eabd919bc | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ree
env:
- DB=mysql
- DB=postgres
before_script:
- "mysql -e 'create database foreigner-matcher_test;'"
- "psql -c 'create database foreigner-matcher_test;' -U postgres"
- bundle exec rake db:test:reset
script: bundle exec rspec spec
```
Update database creation commands to be friendly with hyphens | ```yaml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ree
env:
- DB=mysql
- DB=postgres
before_script:
- "mysql -e 'create database `foreigner-matcher_test`;'"
- "psql -c 'create database \"foreigner-matcher_test\";' -U postgres"
- bundle exec rake db:test:reset
script: bundle exec rspec spec
``` |
d6a3d646-ce92-4104-8760-6f9bf4db18b2 | {
"language": "YAML"
} | ```yaml
language: cpp
addons:
apt:
packages:
- python3
- python3-pip
matrix:
include:
# We need use to Ubuntu Trusty to get pip3.
- os: linux
dist: trusty
compiler: clang
env:
- BUILD_TYPE=Debug
- os: linux
dist: trusty
compiler: clang
env:
- BUILD_TYPE=Release
- os: linux
dist: trusty
compiler: gcc
env:
- BUILD_TYPE=Debug
- os: linux
dist: trusty
compiler: gcc
env:
- BUILD_TYPE=Release
- os: osx
compiler: clang
env:
- BUILD_TYPE=Debug
- os: osx
compiler: clang
env:
- BUILD_TYPE=Release
- os: osx
compiler: gcc
env:
- BUILD_TYPE=Debug
- os: osx
compiler: gcc
env:
- BUILD_TYPE=Release
install:
- pip3 install canon --user
- export PATH=$HOME/.local/bin:$PATH
- conan user
- conan --version
script:
- mkdir build
- cd build
- conan install ..
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make -j 4
- ctest -V
```
Install latest Conan on Travis | ```yaml
language: cpp
addons:
apt:
packages:
- python3
- python3-pip
matrix:
include:
# We need use to Ubuntu Trusty to get pip3.
- os: linux
dist: trusty
compiler: clang
env:
- BUILD_TYPE=Debug
- os: linux
dist: trusty
compiler: clang
env:
- BUILD_TYPE=Release
- os: linux
dist: trusty
compiler: gcc
env:
- BUILD_TYPE=Debug
- os: linux
dist: trusty
compiler: gcc
env:
- BUILD_TYPE=Release
- os: osx
compiler: clang
env:
- BUILD_TYPE=Debug
- os: osx
compiler: clang
env:
- BUILD_TYPE=Release
- os: osx
compiler: gcc
env:
- BUILD_TYPE=Debug
- os: osx
compiler: gcc
env:
- BUILD_TYPE=Release
install:
- pip3 install canon --user --upgrade
- export PATH=$HOME/.local/bin:$PATH
- conan user
- conan --version
script:
- mkdir build
- cd build
- conan install ..
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make -j 4
- ctest -V
``` |
4544e1d4-cbbb-4ece-87ab-6df99658afd7 | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "7"
dist: trusty
sudo: false
addons:
chrome: stable
before_install:
- npm install -g npm@5.3.0
script:
- npm run test
```
Remove Travis CI email notifications | ```yaml
language: node_js
node_js:
- "7"
dist: trusty
sudo: false
addons:
chrome: stable
before_install:
- npm install -g npm@5.3.0
script:
- npm run test
notifications:
email: false
``` |
a1a3c4bb-096d-498d-9070-48570266de2e | {
"language": "YAML"
} | ```yaml
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "cla-frontend.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "cla-frontend.labels" . | nindent 4 }}
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: "{{ include "cla-frontend.whitelist" . }}"
nginx.ingress.kubernetes.io/server-snippets: |
location /socket.io {
proxy_pass http://nodejs';
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
# proxy_set_header X-Forwarded-Host $http_host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Forwarded-For $remote_addr;
# proxy_cache_bypass $http_upgrade;
}
spec:
tls:
- hosts:
- "{{ .Values.host }}"
{{- if .Values.secretName }}
secretName: {{ .Values.secretName }}
{{- end }}
rules:
- host: "{{ .Values.host }}"
http:
paths:
- path: "/"
backend:
serviceName: {{ $fullName }}-app
servicePort: {{ .Values.service.port }}
- path: "/socket.io/"
backend:
serviceName: {{ $fullName }}-socket-server
servicePort: {{ .Values.socketServer.service.port }}
{{- end }}
```
Remove unused bits of nginx annotation | ```yaml
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "cla-frontend.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "cla-frontend.labels" . | nindent 4 }}
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: "{{ include "cla-frontend.whitelist" . }}"
nginx.ingress.kubernetes.io/server-snippets: |
location /socket.io {
proxy_pass http://nodejs';
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
spec:
tls:
- hosts:
- "{{ .Values.host }}"
{{- if .Values.secretName }}
secretName: {{ .Values.secretName }}
{{- end }}
rules:
- host: "{{ .Values.host }}"
http:
paths:
- path: "/"
backend:
serviceName: {{ $fullName }}-app
servicePort: {{ .Values.service.port }}
- path: "/socket.io/"
backend:
serviceName: {{ $fullName }}-socket-server
servicePort: {{ .Values.socketServer.service.port }}
{{- end }}
``` |
abd5f374-6fd5-4642-a7ee-28bbae467dac | {
"language": "YAML"
} | ```yaml
lv:
postgresql:
pv:
- '/dev/sdb1'
- '/dev/sdd1'
- '/dev/sde1'
- '/dev/sdf1'
- '/dev/sdg1'
vg: 'backups'
data:
pv: '/dev/sdc1'
vg: 'postgresql'
govuk_postgresql::server::max_connections: 200
```
Add an extra disk to staging | ```yaml
lv:
postgresql:
pv:
- '/dev/sdb1'
- '/dev/sdd1'
- '/dev/sde1'
- '/dev/sdf1'
- '/dev/sdg1'
- '/dev/sdh1'
vg: 'backups'
data:
pv: '/dev/sdc1'
vg: 'postgresql'
govuk_postgresql::server::max_connections: 200
``` |
87d42d7a-f92d-47ea-aed9-d8df96ce5757 | {
"language": "YAML"
} | ```yaml
language: python
# pick the appropriate requirements file for 2.7 or 3.x
matrix:
include:
- python: "2.7"
env: REQUIREMENTS=requirements2.txt
- python: "3.5"
env: REQUIREMENTS=requirements.txt
- python: "3.6"
env: REQUIREMENTS=requirements.txt
branches:
only:
- master
- development
# install system dependencies
before_install:
- sudo apt-get update
- sudo apt-get install -y build-essential muscle mafft cd-hit
# command to install dependencies
install:
- pip install -r $REQUIREMENTS
# command to run tests
script:
- pytest # or py.test for Python versions 3.5 and below
```
Add Python versions 3.7 and 3.8 to TravisCI | ```yaml
language: python
# pick the appropriate requirements file for 2.7 or 3.x
matrix:
include:
- python: "2.7"
env: REQUIREMENTS=requirements2.txt
- python: "3.5"
env: REQUIREMENTS=requirements.txt
- python: "3.6"
env: REQUIREMENTS=requirements.txt
- python: "3.7"
env: REQUIREMENTS=requirements.txt
- python: "3.8"
env: REQUIREMENTS=requirements.txt
branches:
only:
- master
- development
# install system dependencies
before_install:
- sudo apt-get update
- sudo apt-get install -y build-essential muscle mafft cd-hit
# command to install dependencies
install:
- pip install -r $REQUIREMENTS
# command to run tests
script:
- pytest # or py.test for Python versions 3.5 and below
``` |
df221466-56c6-4075-9b67-c8e4fddc77de | {
"language": "YAML"
} | ```yaml
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.5"
- "3.4"
- "3.3"
- "2.7"
- "pypy"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script: py.test
```
Install EJDB binary for testing | ```yaml
# Config file for automatic testing at travis-ci.org
sudo: true
language: python
python:
- "3.5"
- "3.4"
- "3.3"
- "2.7"
- "pypy"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- sudo add-apt-repository ppa:adamansky/ejdb -y
- sudo apt-get update -qq
- sudo apt-get install ejdb -qqy
- pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script: py.test
``` |
cada9e6e-34c8-4c87-b1ea-3fd5594ad9c6 | {
"language": "YAML"
} | ```yaml
# Config file for automatic testing at travis-ci.org
language: python
sudo: false
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
install:
- "python setup.py sdist"
- "pip install dist/skyfield-*.tar.gz[tests]"
- "pip install https://github.com/brandon-rhodes/assay/archive/master.zip"
- "pip install unittest2"
- "mkdir tmp"
- "cd tmp && curl -O ftp://ssd.jpl.nasa.gov/pub/eph/planets/bsp/de405.bsp"
- "cd tmp && curl -O ftp://ssd.jpl.nasa.gov/pub/eph/planets/bsp/de421.bsp"
- "cd tmp && curl -O ftp://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/satellites/jup310.bsp"
script:
- "cd tmp && assay --batch skyfield.tests"
```
Fix wildcard in Travis CI script | ```yaml
# Config file for automatic testing at travis-ci.org
language: python
sudo: false
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
install:
- "python setup.py sdist"
- "pip install $(echo dist/skyfield-*.tar.gz)'[tests]'"
- "pip install https://github.com/brandon-rhodes/assay/archive/master.zip"
- "pip install unittest2"
- "mkdir tmp"
- "cd tmp && curl -O ftp://ssd.jpl.nasa.gov/pub/eph/planets/bsp/de405.bsp"
- "cd tmp && curl -O ftp://ssd.jpl.nasa.gov/pub/eph/planets/bsp/de421.bsp"
- "cd tmp && curl -O ftp://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/satellites/jup310.bsp"
script:
- "cd tmp && assay --batch skyfield.tests"
``` |
e206845a-4a49-4ecd-9ccc-bfcbbfbc3a1c | {
"language": "YAML"
} | ```yaml
faf-api:
version: #faf-api.version#
map:
folder-zip-files: ${MAP_UPLOAD_PATH:/content/faf/vault/maps}
folder-preview-path-small: ${MAP_PREVIEW_PATH_SMALL:/content/faf/vault/map_previews/small}
folder-preview-path-large: ${MAP_PREVIEW_PATH_LARGE:/content/faf/vault/map_previews/large}
spring:
application:
name: FAF Java API Prototype
mvc:
favicon:
enabled: false
datasource:
type: com.zaxxer.hikari.HikariDataSource
hikari:
connection-test-query: SELECT 1 FROM DUAL
minimum-idle: 2
maximum-pool-size: 8
jpa:
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
properties:
hibernate:
current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
dialect: org.hibernate.dialect.MySQL5Dialect
profiles:
active: ${API_PROFILE:dev}
server:
port: ${API_PORT:8080}
security:
enable-csrf: true
management:
context-path: /management
port: 8081
security:
enabled: false
```
Use same port as faf-stack | ```yaml
faf-api:
version: #faf-api.version#
map:
folder-zip-files: ${MAP_UPLOAD_PATH:/content/faf/vault/maps}
folder-preview-path-small: ${MAP_PREVIEW_PATH_SMALL:/content/faf/vault/map_previews/small}
folder-preview-path-large: ${MAP_PREVIEW_PATH_LARGE:/content/faf/vault/map_previews/large}
spring:
application:
name: FAF Java API Prototype
mvc:
favicon:
enabled: false
datasource:
type: com.zaxxer.hikari.HikariDataSource
hikari:
connection-test-query: SELECT 1 FROM DUAL
minimum-idle: 2
maximum-pool-size: 8
jpa:
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
properties:
hibernate:
current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
dialect: org.hibernate.dialect.MySQL5Dialect
profiles:
active: ${API_PROFILE:dev}
server:
port: ${API_PORT:8010}
security:
enable-csrf: true
management:
context-path: /management
port: 8081
security:
enabled: false
``` |
2b6bdaff-a538-4699-9f43-c28a3a7fd54f | {
"language": "YAML"
} | ```yaml
language: python
python:
- 3.6
install:
- pip install codecov
script:
- ./setup.py test
after_success:
- codecov
```
Fix permisiion denied problem in build | ```yaml
language: python
python:
- 3.6
install:
- pip install codecov
script:
- ./setup.py test
after_success:
- codecov
before_install:
- chmod +x setup.py
``` |
497f02e8-8e45-487d-8c5b-dc4e1dcd34d9 | {
"language": "YAML"
} | ```yaml
language: node_js
services:
- couchdb
node_js:
- "14"
sudo: false
script: npm run $COMMAND
before_script:
- "npm install add-cors-to-couchdb"
- "./node_modules/.bin/add-cors-to-couchdb"
env:
matrix:
- COMMAND=test
- CLIENT=selenium:phantomjs COMMAND=test
- COMMAND=coverage
branches:
only:
- master
```
Remove couchdb service from CI | ```yaml
language: node_js
node_js:
- "14"
sudo: false
script: npm run $COMMAND
env:
matrix:
- COMMAND=test
- CLIENT=selenium:phantomjs COMMAND=test
- COMMAND=coverage
branches:
only:
- master
``` |
e6480cd2-63a1-42e9-a5c9-01513bb6dd92 | {
"language": "YAML"
} | ```yaml
sudo: false
language: rust
rust:
- stable
- beta
- nightly
- 1.19.0
script:
- cargo build
- cargo test
```
Raise minimum tested version to rustc 1.31 | ```yaml
sudo: false
language: rust
rust:
- stable
- beta
- nightly
- 1.31.0
script:
- cargo build
- cargo test
matrix:
include:
- rust: 1.19.0
script:
- cargo build
``` |
6b0e4b03-873c-4937-856b-749a2c4bfb88 | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
script: "npm test && sudo $(which npm) run test-root && npm run test:install"
before_script:
- "./test/hosts.sh"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq graphicsmagick
notifications:
email: false
irc:
channels:
- "chat.freenode.net#pump.io"
on_success: change
on_failure: change
```
Test Node 6 in Travis | ```yaml
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "6"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
script: "npm test && sudo $(which npm) run test-root && npm run test:install"
before_script:
- "./test/hosts.sh"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq graphicsmagick
notifications:
email: false
irc:
channels:
- "chat.freenode.net#pump.io"
on_success: change
on_failure: change
``` |
2412231b-f700-427b-8be9-45294cd4e8a5 | {
"language": "YAML"
} | ```yaml
language: python
python:
- "2.7"
sudo: required
services:
- docker
env:
global:
- DOCKER_VERSION=1.12.0-0~trusty
- DOCKER_COMPOSE_VERSION=1.6.2
before_install:
- apt-cache madison docker-engine
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
cache:
directories:
- $HOME/.cache/pip
- /var/lib/docker
before_script:
- docker-compose up -d db
- docker-compose run documentregister setuplocaldb
script:
- docker-compose run documentregister test
```
Remove docker-compose only if it exists | ```yaml
language: python
python:
- "2.7"
sudo: required
services:
- docker
env:
global:
- DOCKER_VERSION=1.12.0-0~trusty
- DOCKER_COMPOSE_VERSION=1.6.2
before_install:
- apt-cache madison docker-engine
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}
- sudo rm -f /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
cache:
directories:
- $HOME/.cache/pip
- /var/lib/docker
before_script:
- docker-compose up -d db
- docker-compose run documentregister setuplocaldb
script:
- docker-compose run documentregister test
``` |
db6d88dc-f67f-4f41-8f7f-89cdcb08f231 | {
"language": "YAML"
} | ```yaml
---
- name: fetch securedrop source ths
fetch: src=/var/lib/tor/services/source/hostname dest=./app-source-ths flat=yes
- name: fetch securedrop document aths
fetch: src=/var/lib/tor/services/source/hostname dest=./app-document-aths flat=yes
- name: fetch securedrop ssh aths
fetch: src=/var/lib/tor/services/ssh/hostname dest=./app-ssh-aths flat=yes
```
Copy correct hostname for document ATHS | ```yaml
---
- name: fetch securedrop source ths
fetch: src=/var/lib/tor/services/source/hostname dest=./app-source-ths flat=yes
- name: fetch securedrop document aths
fetch: src=/var/lib/tor/services/document/hostname dest=./app-document-aths flat=yes
- name: fetch securedrop ssh aths
fetch: src=/var/lib/tor/services/ssh/hostname dest=./app-ssh-aths flat=yes
``` |
2230c8be-5352-455b-bf87-daea5dc61206 | {
"language": "YAML"
} | ```yaml
sudo: false
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk7
os:
- linux
- osx
script:
- ./autogen.sh && ./configure && make -j2
- cd java && mvn test && cd ..
- cd javanano && mvn test && cd ..
- cd python && python setup.py build && python setup.py google_test
- LD_LIBRARY_PATH=../src/.libs cd python && python setup.py build --cpp_implementation && python setup.py google_test --cpp_implementation
- make distcheck -j2
notifications:
email: false
```
Fix for current directory in Travis tests. | ```yaml
sudo: false
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk7
os:
- linux
- osx
script:
- ./autogen.sh && ./configure && make -j2
- cd java && mvn test && cd ..
- cd javanano && mvn test && cd ..
- cd python && python setup.py build && python setup.py google_test && cd ..
- LD_LIBRARY_PATH=../src/.libs cd python && python setup.py build --cpp_implementation && python setup.py google_test --cpp_implementation && cd ..
- make distcheck -j2
notifications:
email: false
``` |
9c90f010-6ce3-4da9-a108-88b1ab786b20 | {
"language": "YAML"
} | ```yaml
language: java
install: true
before_install:
- chmod +x gradlew
- sudo apt-get -y install at-spi2-core
jdk:
- openjdk8
git:
depth: false
addons:
sonarcloud:
organization: "gurkenlabs-github"
services:
- xvfb
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
- '$HOME/.gradle/caches/'
- '$HOME/.gradle/wrapper/'
jobs:
include:
- stage: "Fullbuild"
name: "Build, report coverage, and create Docs"
script: ./gradlew fullbuild --warning-mode all
- stage: "Scan"
name: "Sonarqube Scan"
jdk: openjdk11
script:
export JAVA_HOME= "/usr/local/lib/jvm/openjdk11"
if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
sonar-scanner;
fi
```
Use jdk15 for sonar scan and fix syntax error. | ```yaml
language: java
install: true
before_install:
- chmod +x gradlew
- sudo apt-get -y install at-spi2-core
jdk:
- openjdk8
git:
depth: false
addons:
sonarcloud:
organization: "gurkenlabs-github"
services:
- xvfb
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
- '$HOME/.gradle/caches/'
- '$HOME/.gradle/wrapper/'
jobs:
include:
- stage: "Fullbuild"
name: "Build, report coverage, and create Docs"
script: ./gradlew fullbuild --warning-mode all
- stage: "Scan"
name: "Sonarqube Scan"
jdk: openjdk15
script:
if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
sonar-scanner;
fi
``` |
e41d8bec-98cf-44cb-b052-914e82730ad9 | {
"language": "YAML"
} | ```yaml
sudo: false
language: node_js
matrix:
include:
- node_js: iojs-v1
- node_js: iojs-v2
- node_js: "0.10"
- node_js: "0.12"
after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
notifications:
email:
- tormozz48@gmail.com
- yndx.tavria@yandex.ru
```
Change list of nodejs versions for testing | ```yaml
sudo: false
language: node_js
matrix:
include:
- node_js: "4.1.x"
- node_js: "iojs"
- node_js: "0.12"
- node_js: "0.10"
after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
notifications:
email:
- tormozz48@gmail.com
- yndx.tavria@yandex.ru
``` |
89b6f972-d1a9-4984-851f-378060d65631 | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 1.9.3
- 2.0.0
```
Update the Rubies we're testing against | ```yaml
language: ruby
rvm:
- 2.0.0
- 2.1.5
- 2.2.1
``` |
5ff14d47-ca7f-4975-a333-15b1cbf613a6 | {
"language": "YAML"
} | ```yaml
language: ruby
cache: bundler
rvm:
- 2.3
- 2.4
- 2.5
- 2.6
script:
- bundle exec jekyll build
- rake 'draft[Hello\, world]'
- rake undraft[hello-world.md]
- grep johnotander/pixyll _site/index.html
- grep post-title _site/index.html
- grep pagination-item _site/index.html
- grep johnotander/pixyll _site/css/pixyll.css
- grep 404 _site/404.html
```
Remove Ruby 2.3 from Travis | ```yaml
language: ruby
cache: bundler
rvm:
- 2.4
- 2.5
- 2.6
script:
- bundle exec jekyll build
- rake 'draft[Hello\, world]'
- rake undraft[hello-world.md]
- grep johnotander/pixyll _site/index.html
- grep post-title _site/index.html
- grep pagination-item _site/index.html
- grep johnotander/pixyll _site/css/pixyll.css
- grep 404 _site/404.html
``` |
f66b6148-1f95-41f9-a2e7-5cdbdc50dcba | {
"language": "YAML"
} | ```yaml
vcs: git
prerequisites:
- working-copy-check
- display-last-changes
- composer-json-check:
composer: composer
- command:
cmd: composer update
- tests-check:
command: vendor/bin/phpunit --stop-on-failure
- composer-security-check
- composer-stability-check
- command:
cmd: git remote -v
pre-release-actions:
composer-update: ~
changelog-update:
format: simple
dump-commits: true
exclude-merge-commits: true
vcs-commit: ~
version-generator: semantic
version-persister: vcs-tag
post-release-actions:
vcs-publish:
ask-remote-name: true
```
Use global phpunit version when calling RMT | ```yaml
vcs: git
prerequisites:
- working-copy-check
- display-last-changes
- composer-json-check:
composer: composer
- command:
cmd: composer update
- tests-check:
command: phpunit --stop-on-failure
- composer-security-check
- composer-stability-check
- command:
cmd: git remote -v
pre-release-actions:
composer-update: ~
changelog-update:
format: simple
dump-commits: true
exclude-merge-commits: true
vcs-commit: ~
version-generator: semantic
version-persister: vcs-tag
post-release-actions:
vcs-publish:
ask-remote-name: true
``` |
562b77ec-6c75-47c2-a3ea-a44041a4bf1a | {
"language": "YAML"
} | ```yaml
dist: trusty
sudo: required
env:
matrix:
- TEST_TARGET: test-debian
- TEST_TARGET: test-alpine
before_install:
- sudo apt-get remove docker docker-engine
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
- docker version
- docker info
# prepare docker test requirements
- make update-dependencies
script:
- make $TEST_TARGET
```
Remove old docker.list to avoid getting unstable Docker version | ```yaml
dist: trusty
sudo: required
env:
matrix:
- TEST_TARGET: test-debian
- TEST_TARGET: test-alpine
before_install:
- sudo apt-get -y remove docker docker-engine docker-ce
- sudo rm /etc/apt/sources.list.d/docker.list
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
- docker version
- docker info
# prepare docker test requirements
- make update-dependencies
script:
- make $TEST_TARGET
``` |
247edc44-dc2b-4bb3-9a7c-3ac73993754f | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.1.1
- 2.1.2
- jruby-19mode
```
Configure Travis for better build performance | ```yaml
sudo: false
language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.1.1
- 2.1.2
- jruby-19mode
``` |
ead99960-99a5-4751-a5e2-440c159ef1c0 | {
"language": "YAML"
} | ```yaml
sudo: false
language: go
before_script:
- go get -u golang.org/x/tools/cmd/vet
- go get -u github.com/golang/lint/golint
go: tip
script:
- test -z "$(gofmt -s -l -w ./autorest/. | tee /dev/stderr)"
- test -z "$(golint ./... | grep -v 'should have comment' | grep -v 'stutters' | tee /dev/stderr)"
- go vet ./...
- go build -v ./...
- go test -v ./...
```
Update test go build to 1.5 | ```yaml
sudo: false
language: go
before_script:
- go get -u golang.org/x/tools/cmd/vet
- go get -u github.com/golang/lint/golint
go: 1.5
script:
- test -z "$(gofmt -s -l -w ./autorest/. | tee /dev/stderr)"
- test -z "$(golint ./... | grep -v 'should have comment' | grep -v 'stutters' | tee /dev/stderr)"
- go vet ./...
- go build -v ./...
- go test -v ./...
``` |
8584e470-e4d0-47d3-a6b0-42b9d70fba4c | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "5"
- "4"
- "0.12"
- "0.10"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- libsnappy-dev
- realpath
install:
- export CC="gcc-4.8"
- export CXX="g++-4.8"
- mkdir deps
- git clone https://github.com/openvenues/libpostal
- cd libpostal
- ./bootstrap.sh
- ./configure --datadir=$(pwd)/data --prefix=$(realpath $(pwd)/../deps) --bindir=$(realpath $(pwd)/../deps)
- make install
- cd ..
- export CXXFLAGS=-I$(pwd)/deps/include
- export LDFLAGS=-L$(pwd)/deps/lib
- npm install
script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/deps/lib
- npm test
```
Add Node 6 to Travis build | ```yaml
language: node_js
node_js:
- "6"
- "5"
- "4"
- "0.12"
- "0.10"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- libsnappy-dev
- realpath
install:
- export CC="gcc-4.8"
- export CXX="g++-4.8"
- mkdir deps
- git clone https://github.com/openvenues/libpostal
- cd libpostal
- ./bootstrap.sh
- ./configure --datadir=$(pwd)/data --prefix=$(realpath $(pwd)/../deps) --bindir=$(realpath $(pwd)/../deps)
- make install
- cd ..
- export CXXFLAGS=-I$(pwd)/deps/include
- export LDFLAGS=-L$(pwd)/deps/lib
- npm install
script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/deps/lib
- npm test
``` |
934032db-11d3-41c4-a6a0-1b64de92c882 | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "6"
- "5"
- "4"
- "0.12"
- "0.10"
```
Remove 0.10 and 0.12 tests | ```yaml
language: node_js
node_js:
- "6"
- "5"
- "4"
``` |
735da303-2bec-4cd0-91b7-1f2e08c21e85 | {
"language": "YAML"
} | ```yaml
language: clojure
notifications:
irc: "jcsi.ms#qualityclj"
```
Use a notice instead of join/message. | ```yaml
language: clojure
notifications:
irc:
channels:
- "jcsi.ms#qualityclj"
use_notice: true
``` |
c7472166-2b37-4c29-9935-5b1512748d86 | {
"language": "YAML"
} | ```yaml
dist: trusty
language: node_js
node_js:
- 8
- 6
- 4
before_install:
- yarn global add greenkeeper-lockfile@1
- npm install -g npm@5
- npm install -g greenkeeper-lockfile@1
install:
- npm install
before_script: greenkeeper-lockfile-update
script: npm run build
# Only the node version 6 job will upload the lockfile
after_script: greenkeeper-lockfile-upload
after_success:
- npm run-script doc
- echo 'node_modules' > .gitignore
- cp node_modules/openlayers/dist/ol-debug.js dist/ol-debug.js
- echo $CNAME > CNAME
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
node: '8'
```
Remove unused ol-debug.js file from Travis build. | ```yaml
dist: trusty
language: node_js
node_js:
- 8
- 6
- 4
before_install:
- yarn global add greenkeeper-lockfile@1
- npm install -g npm@5
- npm install -g greenkeeper-lockfile@1
install:
- npm install
before_script: greenkeeper-lockfile-update
script: npm run build
# Only the node version 6 job will upload the lockfile
after_script: greenkeeper-lockfile-upload
after_success:
- npm run-script doc
- echo 'node_modules' > .gitignore
- echo $CNAME > CNAME
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
node: '8'
``` |
4f2302ab-7ebb-45e6-aaeb-b98d1a6aa96b | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- "1.9.2"
- "1.9.3"
# - jruby-19mode # JRuby in 1.9 mode - Sinatra fails. Disabled on Mar/15'13
# Disabled for the time being, see https://github.com/dmytro/nagira/issues/9
# - rbx-19mode
env:
- RACK_ENV=test
branches:
only:
- master
script: bundle exec rspec spec
```
Add ruby 2.0.0 to Travis | ```yaml
language: ruby
rvm:
- "1.9.2"
- "1.9.3"
- "2.0.0"
# - jruby-19mode # JRuby in 1.9 mode - Sinatra fails. Disabled on Mar/15'13
# Disabled for the time being, see https://github.com/dmytro/nagira/issues/9
# - rbx-19mode
env:
- RACK_ENV=test
branches:
only:
- master
script: bundle exec rspec spec
``` |
a6d3d1e0-1727-4726-970c-316fe7b46286 | {
"language": "YAML"
} | ```yaml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.6-dev"
- "3.7-dev"
- "nightly"
install:
- "pip install -r requirements.txt"
script:
- robot --exclude skip --pythonpath src tests
```
Drop support for Python 3.3 (EOL) in Travis | ```yaml
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.6-dev"
- "3.7-dev"
- "nightly"
install:
- "pip install -r requirements.txt"
script:
- robot --exclude skip --pythonpath src tests
``` |
8992e7af-8950-47f4-b38d-02853415b2d0 | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "0.10"
notifications:
email: false
before_install:
- npm install -g grunt-cli
before_script:
- grunt
sudo: false
```
Use NodeJS 5.1 as Travis engine. | ```yaml
language: node_js
node_js:
- "5.1"
notifications:
email: false
before_install:
- npm install -g grunt-cli
before_script:
- grunt
sudo: false
``` |
10b24a9d-a447-483a-94c2-ed921e83b057 | {
"language": "YAML"
} | ```yaml
name: Deploy documentation
on:
push:
branches:
- master
jobs:
deploy_github_pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm packages
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: NPM install
run: npm ci
- name: Lint TypeScript sources
run: npm run lint
- name: Bootstrap packages
run: npm run bootstrap
- name: Build packages
run: npm run build
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages-test
FOLDER: packages/modelviewer.dev
```
Add before-deploy step for docs | ```yaml
name: Deploy documentation
on:
push:
branches:
- master
jobs:
deploy_github_pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm packages
uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: NPM install
run: npm ci
- name: Lint TypeScript sources
run: npm run lint
- name: Bootstrap packages
run: npm run bootstrap
- name: Build packages
run: npm run build
- name: Prepare documentation artifacts
run: ./packages/modelviewer.dev/scripts/ci-before-deploy.sh
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages-test
FOLDER: packages/modelviewer.dev
``` |
57ae127d-7bfe-4400-9f74-505a7a07b7a6 | {
"language": "YAML"
} | ```yaml
#
# DO NOT EDIT THIS FILE
#
# It is automatically copied from https://github.com/pion/.goassets repository.
# If this repository should have package specific CI config,
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
#
# If you want to update the shared CI config, send a PR to
# https://github.com/pion/.goassets instead of this repository.
#
name: go-mod-fix
on:
push:
branches:
- renovate/*
jobs:
go-mod-fix:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: fix
uses: at-wat/go-sum-fix-action@v0
with:
git_user: Pion Bot
git_email: 59523206+pionbot@users.noreply.github.com
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_style: squash
push: force
```
Update CI configs to v0.4.6 | ```yaml
#
# DO NOT EDIT THIS FILE
#
# It is automatically copied from https://github.com/pion/.goassets repository.
# If this repository should have package specific CI config,
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
#
# If you want to update the shared CI config, send a PR to
# https://github.com/pion/.goassets instead of this repository.
#
name: go-mod-fix
on:
push:
branches:
- renovate/*
jobs:
go-mod-fix:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: fix
uses: at-wat/go-sum-fix-action@v0
with:
git_user: Pion Bot
git_email: 59523206+pionbot@users.noreply.github.com
github_token: ${{ secrets.PIONBOT_PRIVATE_KEY }}
commit_style: squash
push: force
``` |
23d63c97-c8dd-4a48-907d-408f04a505c5 | {
"language": "YAML"
} | ```yaml
language: python
python:
- "pypy"
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
install:
- pip install coveralls
script:
- coverage run --source=jsonmerge setup.py test
after_success:
- coveralls
```
Add Python 3.7, remove 3.3 test from Travis. | ```yaml
dist: xenial
language: python
python:
- "pypy"
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
install:
- pip install coveralls
script:
- coverage run --source=jsonmerge setup.py test
after_success:
- coveralls
``` |
003fa5e2-5cf0-48f5-ad37-d8a8f89efd87 | {
"language": "YAML"
} | ```yaml
sudo: false
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.12"
- iojs
before_install:
- npm update -g npm
- npm install -g bob coveralls --loglevel error
script:
- bob build
- cat .bob/coverage/buster-istanbul/lcov.info | coveralls
```
Update Travis config to latest. Upgrade gcc to 4.8, stop force upgrade to latest npm, debug canihaz installation. | ```yaml
sudo: false
language: node_js
node_js:
- "0.10"
- "0.11"
- "0.12"
- "4.0"
- "4.1"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install -g bob coveralls --loglevel error
script:
- DEBUG=canihaz bob build
- cat .bob/coverage/buster-istanbul/lcov.info | coveralls
``` |
e318bc91-4ce8-4c18-b536-df09dc10f883 | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 2.2.2
script:
- bundle exec rspec
- bundle exec rubocop
install: bundle install --jobs=3 --retry=3
sudo: false
```
Add Ruby 2.3, 2.4 for testing on Travis | ```yaml
language: ruby
rvm:
- 2.2.2
- 2.3
- 2.4
script:
- bundle exec rspec
- bundle exec rubocop
install: bundle install --jobs=3 --retry=3
sudo: false
``` |
ee849754-eb25-49d8-a937-b565730448f5 | {
"language": "YAML"
} | ```yaml
# Configuration for CI build
language: java
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
```
Revert "Also test against openjdk7 and oraclejdk7 (in addition to oraclejdk8)" | ```yaml
# Configuration for CI build
language: java
jdk:
- oraclejdk8
``` |
7199ee9a-2ec3-4658-82d9-b9597a087f0d | {
"language": "YAML"
} | ```yaml
---
name: Check new exporter releases
on:
schedule:
- cron: "15 8,16 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
check_new_releases:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup python environment
uses: actions/setup-python@v2
with:
python-version: "3.8"
architecture: "x64"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install ruamel.yaml PyGithub packaging
- name: Run script to update auto package versions
run: python update_templating_versions.py
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
```
Update python action to v4. | ```yaml
---
name: Check new exporter releases
on:
schedule:
- cron: "15 8,16 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
check_new_releases:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup python environment
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Python dependencies
run: pip install ruamel.yaml PyGithub packaging
- name: Run script to update auto package versions
run: python update_templating_versions.py
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
``` |
5534b880-7e03-41c1-b9e0-c3ee6e3d88c0 | {
"language": "YAML"
} | ```yaml
network.host: 0.0.0.0
# this value is required because we set "network.host"
# be sure to modify it appropriately for a production cluster deployment
discovery.zen.minimum_master_nodes: 1
```
Fix groovy script popup error un Kibana | ```yaml
network.host: 0.0.0.0
# this value is required because we set "network.host"
# be sure to modify it appropriately for a production cluster deployment
discovery.zen.minimum_master_nodes: 1
script.inline: true
``` |
ba8e23c2-d731-401f-b5fb-8942f072de87 | {
"language": "YAML"
} | ```yaml
language: node_js
node_js: "0.10"
install:
- mkdir nsq
- curl -s 'https://s3.amazonaws.com/bitly-downloads/nsq/nsq-0.3.2.linux-amd64.go1.4.1.tar.gz' | tar --strip-components 1 -C nsq -xvz
- npm install
before_script:
- nsq/bin/nsqlookupd >/dev/null 2>&1 &
- nsq/bin/nsqd -lookupd-tcp-address=localhost:4160 >/dev/null 2>&1 &
script:
- npm test
```
Add linting as a test | ```yaml
language: node_js
node_js: "0.10"
install:
- mkdir nsq
- curl -s 'https://s3.amazonaws.com/bitly-downloads/nsq/nsq-0.3.2.linux-amd64.go1.4.1.tar.gz' | tar --strip-components 1 -C nsq -xvz
- npm install
before_script:
- nsq/bin/nsqlookupd >/dev/null 2>&1 &
- nsq/bin/nsqd -lookupd-tcp-address=localhost:4160 >/dev/null 2>&1 &
script:
- npm run lint
- npm test
``` |
8df40c68-13dc-4737-a897-7272db9df951 | {
"language": "YAML"
} | ```yaml
before_install:
- sudo apt-get -qq update
compiler:
- clang
install:
- wget https://github.com/uncrustify/uncrustify/archive/uncrustify-0.61.tar.gz -O /tmp/uncrustify.tar.gz
- tar zxvf /tmp/uncrustify.tar.gz
- pushd uncrustify-uncrustify-0.61 && ./configure --prefix=/usr && make && sudo make install && popd
language: c
script: cd src && make format && make
```
Include gcc in compiler matrix | ```yaml
before_install:
- sudo apt-get -qq update
compiler:
- clang
- gcc
install:
- wget https://github.com/uncrustify/uncrustify/archive/uncrustify-0.61.tar.gz -O /tmp/uncrustify.tar.gz
- tar zxvf /tmp/uncrustify.tar.gz
- pushd uncrustify-uncrustify-0.61 && ./configure --prefix=/usr && make && sudo make install && popd
language: c
script: cd src && make format && make
``` |
a636db46-d374-4068-be89-262349306bb8 | {
"language": "YAML"
} | ```yaml
# brian's standard Travis CI config for Perl 5 modules
# https://github.com/briandfoy/brians_perl_modules_travis_config
# This file is licensed under the Artistic License 2.0
sudo: false
language: perl
perl:
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
- "5.26"
env:
- OLD_DEVEL_COVER=0
matrix:
include:
- perl: 5.8
env: OLD_DEVEL_COVER=1
before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init --auto
install:
- cpanm --quiet --installdeps --notest .
- if [ "$OLD_DEVEL_COVER" = "0" ]; then cpanm --quiet --notest Devel::Cover; fi
- if [ "$OLD_DEVEL_COVER" = "1" ]; then cpanm --quiet --notest Devel::Cover@1.23; fi
- cpanm --quiet --notest Devel::Cover::Report::Coveralls
script:
- cover -delete && cover -test
after_success:
- cover -report coveralls
```
Update Travis up to v5.30 | ```yaml
# brian's standard Travis CI config for Perl 5 modules
# https://github.com/briandfoy/brians_perl_modules_travis_config
# This file is licensed under the Artistic License 2.0
sudo: false
language: perl
perl:
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
- "5.26"
- "5.28"
- "5.30"
env:
- OLD_DEVEL_COVER=0
matrix:
include:
- perl: 5.8
env: OLD_DEVEL_COVER=1
before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init --auto
install:
- cpanm --quiet --installdeps --notest .
- if [ "$OLD_DEVEL_COVER" = "0" ]; then cpanm --quiet --notest Devel::Cover; fi
- if [ "$OLD_DEVEL_COVER" = "1" ]; then cpanm --quiet --notest Devel::Cover@1.23; fi
- cpanm --quiet --notest Devel::Cover::Report::Coveralls
script:
- cover -delete && cover -test
after_success:
- cover -report coveralls
``` |
cb059494-a7a9-447f-9552-81135a3e0bdf | {
"language": "YAML"
} | ```yaml
language: c # whatever
install: sudo apt-get install -qq --no-install-recommends curl devscripts git libyaml-perl man-db perl
script: make all maintainer-check check && sudo make install && sudo make uninstall
```
Call apt-get update in Travis CI configuration | ```yaml
language: c # whatever
before_install: sudo apt-get update
install: sudo apt-get install -qq --no-install-recommends curl devscripts git libyaml-perl man-db perl
script: make all maintainer-check check && sudo make install && sudo make uninstall
``` |
44b4499e-8627-4694-81cc-9e403b8aed27 | {
"language": "YAML"
} | ```yaml
language: python
python:
- 3.4
install:
- gem install scss-lint
- pip install flake8
- npm install
script:
- npm test
```
Add dependencies installation to Travis build | ```yaml
language: python
python:
- 3.4
install:
- gem install scss-lint
- pip install flake8
- pip install -r requirements.txt
- npm install
script:
- npm test
``` |
6081df53-2038-496e-b9bc-837c0899fbcb | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
```
Set up test DB before running tests. | ```yaml
language: ruby
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
before_script:
"pushd spec/dummy && RAILS_ENV=test bundle exec rake db:create; popd"
``` |
66cc99f0-1c5f-4546-bd29-30cf0d70f92c | {
"language": "YAML"
} | ```yaml
language: php
php:
- 5.6
env:
- MONGO_DRIVER=mongo
matrix:
include:
- php: 5.6
env: MONGO_DRIVER=mongo COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 7.0
env: ADAPTER_VERSION="^1.0.0" MONGO_DRIVER=mongodb
sudo: false
cache:
directories:
- $HOME/.composer/cache
services: mongodb
before_install:
- yes '' | pecl -q install -f $MONGO_DRIVER
- if [ "x${ADAPTER_VERSION}" != "x" ]; then composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs; fi
install:
- composer update $COMPOSER_FLAGS
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
```
Test against PHP 7.1 as well | ```yaml
language: php
sudo: false
php:
- 5.6
- 7.0
- 7.1
env:
global:
- DRIVER_VERSION="stable"
- ADAPTER_VERSION="^1.0.0"
matrix:
include:
- php: 5.6
env: DRIVER_VERSION="1.5.8" PREFER_LOWEST="--prefer-lowest"
cache:
directories:
- $HOME/.composer/cache
services: mongodb
install:
- composer self-update
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "5." ]]; then yes '' | pecl -q install -f mongo-${DRIVER_VERSION}; fi
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then pecl install -f mongodb-${DRIVER_VERSION}; fi
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs; fi
- composer update ${PREFER_LOWEST}
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
``` |
7ac51b2f-e605-4d30-b1ce-2ff4e52e3501 | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- jruby-19mode # JRuby in 1.9 mode
- rbx-2
before_install:
- gem update bundler
gemfile:
- gemfiles/3.2.gemfile
- gemfiles/4.0.gemfile
- gemfiles/4.1.gemfile
- gemfiles/4.2.gemfile
matrix:
exclude:
- rvm: rbx
gemfile: gemfiles/4.0.gemfile
include:
- rvm: 2.3.1
gemfile: gemfiles/5.0.gemfile
```
Add Ruby 2.2.2 + Rails 5 test combination | ```yaml
language: ruby
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- jruby-19mode # JRuby in 1.9 mode
- rbx-2
before_install:
- gem update bundler
gemfile:
- gemfiles/3.2.gemfile
- gemfiles/4.0.gemfile
- gemfiles/4.1.gemfile
- gemfiles/4.2.gemfile
matrix:
exclude:
- rvm: rbx
gemfile: gemfiles/4.0.gemfile
include:
- rvm: 2.2.2
gemfile: gemfiles/5.0.gemfile
- rvm: 2.3.1
gemfile: gemfiles/5.0.gemfile
``` |
15883ed4-a7e2-43f8-b9a6-3b26edfd47ea | {
"language": "YAML"
} | ```yaml
box: pjvds/golang@1.0.1```
Add redis service with environment variables | ```yaml
box: pjvds/golang@1.0.1
services:
- wercker/redis@0.0.8
build:
steps:
- script:
name: set environment variables
code: export REDIS_ADDR=$WERCKER_REDIS_URL
``` |
510ad7c0-b473-4cbe-8ff1-53500d1f4ead | {
"language": "YAML"
} | ```yaml
---
version: '2.2'
services:
redis:
build:
context: ../
dockerfile: docker/redis/Dockerfile
command: redis-server
ports:
- 6379:6379
base:
build:
context: ../
dockerfile: docker/base/Dockerfile
worker:
build:
context: ../
dockerfile: docker/worker/Dockerfile
depends_on:
- base
- redis
command: bash -c 'sleep 20 && /app/bin/worker'
scale: 3
engine:
build:
context: ../
dockerfile: docker/engine/Dockerfile
depends_on:
- base
- redis
command: bash -c 'sleep 20 && /app/bin/engine'
volumes:
- data:/app/data
bootstrap:
build:
context: ../
dockerfile: docker/bootstrap/Dockerfile
command: python3.5 /app/bin/populate_db --overwrite-db
volumes:
- data:/app/data
nginx:
build:
context: ../
dockerfile: docker/nginx/Dockerfile
depends_on:
- flask
command: /usr/sbin/nginx
ports:
- 80:80
networks:
- default
flask:
build:
context: ../
dockerfile: docker/flask/Dockerfile
command: python3.5 /app/run.py
ports:
- 5000:5000
networks:
- default
volumes:
- data:/app/data
volumes:
data:
networks:
default:```
Fix networking in docker compose | ```yaml
---
version: '2.2'
services:
redis:
build:
context: ../
dockerfile: docker/redis/Dockerfile
command: redis-server
# ports:
# - 6379:6379
networks:
- default
base:
build:
context: ../
dockerfile: docker/base/Dockerfile
worker:
build:
context: ../
dockerfile: docker/worker/Dockerfile
depends_on:
- base
- redis
command: bash -c 'sleep 20 && /app/bin/worker'
scale: 3
networks:
- default
engine:
build:
context: ../
dockerfile: docker/engine/Dockerfile
depends_on:
- base
- redis
command: bash -c 'sleep 20 && /app/bin/engine'
volumes:
- data:/app/data
networks:
- default
bootstrap:
build:
context: ../
dockerfile: docker/bootstrap/Dockerfile
command: python3.5 /app/bin/populate_db --overwrite-db
volumes:
- data:/app/data
nginx:
build:
context: ../
dockerfile: docker/nginx/Dockerfile
depends_on:
- flask
command: /usr/sbin/nginx
ports:
- 80:80
networks:
- default
flask:
build:
context: ../
dockerfile: docker/flask/Dockerfile
command: python3.5 /app/run.py
networks:
- default
volumes:
- data:/app/data
volumes:
data:
networks:
default:``` |
d52e1f66-e718-45b1-bdde-1e4d00947b16 | {
"language": "YAML"
} | ```yaml
box: wercker/nodejs
build:
steps:
- npm-install
deploy:
steps:
- add-to-known_hosts:
hostname: server.octohost.io
- add-ssh-key:
keyname: KEY
- script:
name: Push to octohost
code: |
git push $GIT_REMOTE master
after-steps:
- sherzberg/slack-notify:
subdomain: ouisirfudge
token: $SLACK_TOKEN
channel: "#general"
```
Switch to alternate Slack Notify. | ```yaml
box: wercker/nodejs
build:
steps:
- npm-install
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
deploy:
steps:
- add-to-known_hosts:
hostname: server.octohost.io
- add-ssh-key:
keyname: KEY
- script:
name: Push to octohost
code: |
git push $GIT_REMOTE master
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.