doc_id
stringlengths 36
36
| metadata
dict | input
stringlengths 28
4.3k
| output
stringlengths 11
5.45k
|
---|---|---|---|
516aa918-1f8d-4c1d-acb3-bbe086257c59 | {
"language": "YAML"
} | ```yaml
clusterSize: ${env == "dev" ? 2 : 3}
adminUsername: ${couchdb_admin_username}
adminPassword: ${couchdb_admin_password}
cookieAuthSecret: ${couchdb_auth_cookie}
persistentVolume:
enabled: true
accessModes:
- ReadWriteOnce
size: 10Gi
storageClass: "standard"
podAntiAffinity: true
```
Add affinity config into CouchDB release values | ```yaml
clusterSize: ${env == "dev" ? 2 : 3}
adminUsername: ${couchdb_admin_username}
adminPassword: ${couchdb_admin_password}
cookieAuthSecret: ${couchdb_auth_cookie}
persistentVolume:
enabled: true
accessModes:
- ReadWriteOnce
size: 10Gi
storageClass: "standard"
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- couchdb
topologyKey: "kubernetes.io/hostname"
``` |
595c191d-dc0a-4736-9822-e2f38f533d57 | {
"language": "YAML"
} | ```yaml
---
- name: Install packages required for 'pxe_ipmitool' ironic's driver on RedHat based distros
become: true
package:
name:
- python-setuptools
- ipmitool
state: latest
disable_gpg_check: yes
- name: Install python-virtualbmc from repo's
become: true
package:
name: python-virtualbmc
state: latest
disable_gpg_check: yes
ignore_errors: yes
register: virtualbmc_install_result
- block:
- name: Install packages required for python-virtualbmc pip package
become: true
package:
name:
- gcc
- libvirt
- libvirt-devel
- python-devel
state: latest
disable_gpg_check: yes
- name: install pip
become: yes
easy_install:
name: pip
- name: Install python-virtualbmc with pip
become: true
pip:
name: virtualbmc
version: 1.3.0
#TODO(ovorobio) need propper fix for latest version of package
extra_args: --no-cache-dir
#TODO(skatlapa): https://github.com/pypa/pip/issues/5250
when: virtualbmc_install_result|failed
```
Patch to enable latest virtualbmc | ```yaml
---
- name: Install packages required for 'pxe_ipmitool' ironic's driver on RedHat based distros
become: true
package:
name:
- python-setuptools
- ipmitool
state: latest
disable_gpg_check: yes
- name: Install python-virtualbmc from repo's
become: true
package:
name: python-virtualbmc
state: latest
disable_gpg_check: yes
ignore_errors: yes
register: virtualbmc_install_result
- block:
- name: Install packages required for python-virtualbmc pip package
become: true
package:
name:
- gcc
- libvirt
- libvirt-devel
- python-devel
state: latest
disable_gpg_check: yes
- name: install pip
become: yes
easy_install:
name: pip
- name: Install python-virtualbmc with pip
become: true
pip:
name: virtualbmc
state: latest
extra_args: --no-cache-dir
#TODO(skatlapa): https://github.com/pypa/pip/issues/5250
when: virtualbmc_install_result|failed
``` |
cd233006-7bb9-4c1f-a100-531740c7f9bb | {
"language": "YAML"
} | ```yaml
# For AppEngine
safe: false
port: 8081
source: site
destination: appengine/build/static
markdown: kramdown
permalink: /articles/:title.html
baseurl: /web
fundamentals: /fundamentals
url: /web
highlighter: pygments
pygments: true
spotlights: false
github:
root: https://github.com/Google/WebFundamentals
content: tree/master/src/site
include_open_html: true
custom:
kramdown:
toc_levels: "2"
include: ['.htaccess']
exclude: ['config.rb']
# comment this for plain jekyll serve usage.
langs_available: ['ko']
sample_link_base: "/web/fundamentals/resources/samples/"```
Update base url on config | ```yaml
# For AppEngine
safe: false
port: 8081
source: site
destination: appengine/build/static
markdown: kramdown
permalink: /articles/:title.html
baseurl: /web
fundamentals: /web/fundamentals
url: /web
highlighter: pygments
pygments: true
spotlights: false
github:
root: https://github.com/Google/WebFundamentals
content: tree/master/src/site
include_open_html: true
custom:
kramdown:
toc_levels: "2"
include: ['.htaccess']
exclude: ['config.rb']
# comment this for plain jekyll serve usage.
langs_available: ['ko']
sample_link_base: "/web/fundamentals/resources/samples/"``` |
a4b4dbfb-805f-4957-9875-2f8bd21d49f1 | {
"language": "YAML"
} | ```yaml
disk_images:
-
imagename: overcloud-ceph
type: qcow2
distro: rhel8
release: 8
```
Use unversioned RHEL element w/ RHEL8 | ```yaml
disk_images:
-
imagename: overcloud-ceph
type: qcow2
distro: rhel
release: 8
``` |
f8ed8886-d1ce-4811-8040-e89e0dfb1d87 | {
"language": "YAML"
} | ```yaml
apiVersion: v1
kind: Service
metadata:
name: $CIRCLE_PROJECT_REPONAME-service
spec: # defines behaviour of service
selector: # route service traffic to pod(s) with label keys and values matching this selector
app: jekyll-nginx
externalIPs: # for which nodes will accept traffic for this service
- 104.154.196.42
ports: # ports exposed by service
- port: 80 # exposed port
targetPort: 80 # number or name of port to access on pod(s) targeted by service; matches `EXPOSE 80` in Dockerfile
```
Revert to load balancer; external IPs dont work with Google Cloud? | ```yaml
apiVersion: v1
kind: Service
metadata:
name: $CIRCLE_PROJECT_REPONAME-service
spec: # defines behaviour of service
selector: # route service traffic to pod(s) with label keys and values matching this selector
app: jekyll-nginx
type: LoadBalancer # determines how service is exposed
loadBalancerIP: 104.154.196.42 # only applies to `type: LoadBalancer`; supported by Google Cloud
ports: # ports exposed by service
- port: 80 # exposed port
targetPort: 80 # number or name of port to access on pod(s) targeted by service; matches `EXPOSE 80` in Dockerfile
``` |
2cf879d6-3e6a-4bc6-9ebf-a07a36f65115 | {
"language": "YAML"
} | ```yaml
services:
mailmotor.handler.save_settings:
class: Backend\Modules\Mailmotor\Domain\Settings\Command\SaveSettingsHandler
arguments:
- "@fork.settings"
tags:
- { name: command_handler, handles: Backend\Modules\Mailmotor\Domain\Settings\Command\SaveSettings }
mailmotor.handler.subscription:
class: Frontend\Modules\Mailmotor\Domain\Subscription\Command\SubscriptionHandler
arguments:
- "@mailmotor.subscriber"
- "@fork.settings"
tags:
- { name: command_handler, handles: Frontend\Modules\Mailmotor\Command\Subscription }
mailmotor.handler.unsubscription:
class: Frontend\Modules\Mailmotor\Domain\Subscription\Command\UnsubscriptionHandler
arguments:
- "@mailmotor.subscriber"
tags:
- { name: command_handler, handles: Frontend\Modules\Mailmotor\Command\Unsubscription }
```
Fix wrong command config for mailmotor | ```yaml
services:
mailmotor.handler.save_settings:
class: Backend\Modules\Mailmotor\Domain\Settings\Command\SaveSettingsHandler
arguments:
- "@fork.settings"
tags:
- { name: command_handler, handles: Backend\Modules\Mailmotor\Domain\Settings\Command\SaveSettings }
mailmotor.handler.subscription:
class: Frontend\Modules\Mailmotor\Domain\Subscription\Command\SubscriptionHandler
arguments:
- "@mailmotor.subscriber"
- "@fork.settings"
tags:
- { name: command_handler, handles: Frontend\Modules\Mailmotor\Domain\Subscription\Command\Subscription }
mailmotor.handler.unsubscription:
class: Frontend\Modules\Mailmotor\Domain\Subscription\Command\UnsubscriptionHandler
arguments:
- "@mailmotor.subscriber"
tags:
- { name: command_handler, handles: Frontend\Modules\Mailmotor\Domain\Subscription\Command\Unsubscription }
``` |
3fe2df40-18fa-4723-af97-afd3ca0bf508 | {
"language": "YAML"
} | ```yaml
govuk_sudo::sudo_conf:
govuk-backup:
content: 'govuk-backup ALL=NOPASSWD:/usr/bin/mysqldump'
```
Add push jobs for mysql databases | ```yaml
govuk_sudo::sudo_conf:
govuk-backup:
content: 'govuk-backup ALL=NOPASSWD:/usr/bin/mysqldump'
govuk_env_sync::tasks:
"push_collections_publisher_production_daily":
hour: "0"
minute: "12"
action: "push"
dbms: "mysql"
storagebackend: "s3"
database: "collections_publisher_production"
temppath: "/home/govuk-backup/tmp_dumps/collections_publisher_production"
url: "govuk-staging-database-backups"
path: "mysql"
govuk_env_sync::tasks:
"push_contacts_production_daily":
hour: "0"
minute: "12"
action: "push"
dbms: "mysql"
storagebackend: "s3"
database: "contacts_production"
temppath: "/home/govuk-backup/tmp_dumps/contacts_production"
url: "govuk-staging-database-backups"
path: "mysql"
govuk_env_sync::tasks:
"push_release_production_daily":
hour: "0"
minute: "12"
action: "push"
dbms: "mysql"
storagebackend: "s3"
database: "release_production"
temppath: "/home/govuk-backup/tmp_dumps/release_production"
url: "govuk-staging-database-backups"
path: "mysql"
govuk_env_sync::tasks:
"push_search_admin_production_daily":
hour: "0"
minute: "12"
action: "push"
dbms: "mysql"
storagebackend: "s3"
database: "search_admin_production"
temppath: "/home/govuk-backup/tmp_dumps/search_admin_production"
url: "govuk-staging-database-backups"
path: "mysql"
govuk_env_sync::tasks:
"push_signon_production_daily":
hour: "1"
minute: "22"
action: "push"
dbms: "mysql"
storagebackend: "s3"
database: "signon_production"
temppath: "/home/govuk-backup/tmp_dumps/signon_production"
url: "govuk-staging-database-backups"
path: "mysql"
``` |
19989cbf-d6dc-4426-9624-62cfbb7d48ee | {
"language": "YAML"
} | ```yaml
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
kind: Deployment
apiVersion: apps/v1
metadata:
name: sample-app
spec:
selector:
matchLabels:
app: sample-app
env: base
template:
metadata:
name: sample-app
labels:
app: sample-app
env: base
spec:
containers:
- name: sample-app
image: sample-app
resources:
limits:
memory: "128Mi"
cpu: "250m"
env:
- name: VERSION
value: base
imagePullPolicy: Always
readinessProbe:
initialDelaySeconds: 2
periodSeconds: 20
httpGet:
path: /healthz
port: 8080
ports:
- name: sample-app
containerPort: 8080
securityContext:
runAsUser: 1000
runAsNonRoot: true
```
Add liveness probe to shutdown app if unhealthy | ```yaml
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
kind: Deployment
apiVersion: apps/v1
metadata:
name: sample-app
spec:
selector:
matchLabels:
app: sample-app
env: base
template:
metadata:
name: sample-app
labels:
app: sample-app
env: base
spec:
containers:
- name: sample-app
image: sample-app
resources:
limits:
memory: "128Mi"
cpu: "250m"
env:
- name: VERSION
value: base
imagePullPolicy: Always
livenessProbe:
initialDelaySeconds: 10
periodSeconds: 10
httpGet:
path: /healthz
port: 8080
readinessProbe:
initialDelaySeconds: 2
periodSeconds: 20
httpGet:
path: /healthz
port: 8080
ports:
- name: sample-app
containerPort: 8080
securityContext:
runAsUser: 1000
runAsNonRoot: true
``` |
606b7ef8-758a-491a-9042-0725a0fdbe27 | {
"language": "YAML"
} | ```yaml
Categories:
- Development
License: MIT
AuthorName: Peter Storch
WebSite: https://codeberg.org/pstorch/F-Droid_Build_Status
SourceCode: https://codeberg.org/pstorch/F-Droid_Build_Status
IssueTracker: https://codeberg.org/pstorch/F-Droid_Build_Status/issues
Changelog: https://codeberg.org/pstorch/F-Droid_Build_Status/releases
AutoName: F-Droid Build Status
RepoType: git
Repo: https://codeberg.org/pstorch/F-Droid_Build_Status.git
Builds:
- versionName: '1.0'
versionCode: 1
commit: '1.0'
subdir: app
gradle:
- yes
- versionName: '1.2'
versionCode: 3
commit: '1.2'
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: '1.2'
CurrentVersionCode: 3
```
Update F-Droid Build Status to 1.3 (4) | ```yaml
Categories:
- Development
License: MIT
AuthorName: Peter Storch
WebSite: https://codeberg.org/pstorch/F-Droid_Build_Status
SourceCode: https://codeberg.org/pstorch/F-Droid_Build_Status
IssueTracker: https://codeberg.org/pstorch/F-Droid_Build_Status/issues
Changelog: https://codeberg.org/pstorch/F-Droid_Build_Status/releases
AutoName: F-Droid Build Status
RepoType: git
Repo: https://codeberg.org/pstorch/F-Droid_Build_Status.git
Builds:
- versionName: '1.0'
versionCode: 1
commit: '1.0'
subdir: app
gradle:
- yes
- versionName: '1.2'
versionCode: 3
commit: '1.2'
subdir: app
gradle:
- yes
- versionName: '1.3'
versionCode: 4
commit: '1.3'
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: '1.3'
CurrentVersionCode: 4
``` |
464729e2-89ae-4b11-8a18-136f7381decd | {
"language": "YAML"
} | ```yaml
apiVersion: v1
kind: ReplicationController
metadata:
labels:
kubernetes.io/cluster-service: 'true'
k8s-app: heapster
name: heapster
kubernetes.io/minikube-addons: heapster
name: heapster
namespace: kube-system
spec:
replicas: 1
selector:
kubernetes.io/cluster-service: "true"
k8s-app: heapster
template:
metadata:
labels:
kubernetes.io/cluster-service: 'true'
k8s-app: heapster
spec:
containers:
- name: heapster
image: gcr.io/google_containers/heapster:v1.2.0
imagePullPolicy: IfNotPresent
command:
- /heapster
- --source=kubernetes
- --sink=influxdb:http://monitoring-influxdb:8086
- --metric_resolution=60s
volumeMounts:
- name: ssl-certs
mountPath: /etc/ssl/certs
readOnly: true
volumes:
- name: ssl-certs
hostPath:
path: /etc/ssl/certs
```
Update heapster addon to v1.3.0 | ```yaml
apiVersion: v1
kind: ReplicationController
metadata:
labels:
kubernetes.io/cluster-service: 'true'
k8s-app: heapster
name: heapster
kubernetes.io/minikube-addons: heapster
name: heapster
namespace: kube-system
spec:
replicas: 1
selector:
kubernetes.io/cluster-service: "true"
k8s-app: heapster
template:
metadata:
labels:
kubernetes.io/cluster-service: 'true'
k8s-app: heapster
spec:
containers:
- name: heapster
image: gcr.io/google_containers/heapster:v1.3.0
imagePullPolicy: IfNotPresent
command:
- /heapster
- --source=kubernetes
- --sink=influxdb:http://monitoring-influxdb:8086
- --metric_resolution=60s
volumeMounts:
- name: ssl-certs
mountPath: /etc/ssl/certs
readOnly: true
volumes:
- name: ssl-certs
hostPath:
path: /etc/ssl/certs
``` |
8589ac4b-1367-4083-96b1-d12bb50a8533 | {
"language": "YAML"
} | ```yaml
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: [--line-length=80]
- repo: https://gitlab.com/pycqa/flake8
rev: "3.8.4"
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
hooks:
- id: pyupgrade
args: [--py36-plus]
```
Update repository URL for Flake8 | ```yaml
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: [--line-length=80]
- repo: https://github.com/PyCQA/flake8
rev: "3.8.4"
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
hooks:
- id: pyupgrade
args: [--py36-plus]
``` |
2bae6ab8-d2be-4fea-b615-edaa3ecdf89f | {
"language": "YAML"
} | ```yaml
version: '3'
services:
cas:
# Tag version does not really represent CAS server version. Please check pom.xml to get real version.
image: apereo/cas:v5.1.3
ports:
- "8080:8080"
volumes:
- ./docker/tmp:/root/.m2/repository/
- ./docker/cas.properties:/cas-overlay/etc/cas/config/cas.properties:ro
- ./docker/All-10000005.json:/cas-overlay/etc/cas/services/All-10000005.json:ro
- ./docker/pom.xml:/cas-overlay/pom.xml
app:
build:
context: ../
dockerfile: cas-security-spring-boot-sample/Dockerfile
image: cas-security-spring-boot-sample:0.5.0
ports:
- "8081:8081"
- "5005"
environment:
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
```
Add docker healtcheck and depends_on | ```yaml
version: '2.1'
services:
cas:
# Tag version does not really represent CAS server version. Please check pom.xml to get real version.
image: apereo/cas:v5.1.3
ports:
- "8080:8080"
volumes:
- ./docker/tmp:/root/.m2/repository/
- ./docker/cas.properties:/cas-overlay/etc/cas/config/cas.properties:ro
- ./docker/All-10000005.json:/cas-overlay/etc/cas/services/All-10000005.json:ro
- ./docker/pom.xml:/cas-overlay/pom.xml
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/cas"]
interval: 1m30s
timeout: 30s
retries: 5
app:
build:
context: ../
dockerfile: cas-security-spring-boot-sample/Dockerfile
image: cas-security-spring-boot-sample:0.5.0
ports:
- "8081:8081"
- "5005"
environment:
- SPRING_PROFILES_ACTIVE=docker
- JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
depends_on:
cas:
condition: service_healthy
``` |
7cec8b2a-95fc-4e9d-b6fc-907b6f80daa7 | {
"language": "YAML"
} | ```yaml
---
# defaults file for newrelic_wsgi
newrelic_ini_path: /opt/newrelic/
newrelic_agentlog_path: /var/log/newrelic/wsgi/
newrelic_ini_file: "{{newrelic_ini_path}}/newrelic.ini"
newrelic_agentlog_file: "{{newrelic_agentlog_path}}/newrelic_python_agent.log"
application_name: "test LAMP wsgi python application"
newrelic_high_security: true
```
Put python log w/ php log, make writable by apache | ```yaml
---
# defaults file for newrelic_wsgi
newrelic_ini_path: /opt/newrelic/
newrelic_agentlog_path: /var/log/newrelic/
newrelic_ini_file: "{{newrelic_ini_path}}/newrelic.ini"
newrelic_agentlog_file: "{{newrelic_agentlog_path}}/newrelic_python_agent.log"
application_name: "test LAMP wsgi python application"
newrelic_high_security: true
``` |
b18de7f1-625f-458a-befd-8b248fa91e33 | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/hltcoe
changelog-type: ''
hash: 48a74b681c636c337de4f0287f12fb1f6e4ebd43b10af67e035dd8d0a2658bae
test-bench-deps: {}
maintainer: [email protected]
synopsis: Automatically generated Thrift definitions for the Concrete data format.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.6 && <5'
unordered-containers: -any
text: -any
containers: -any
thrift: -any
hashable: -any
QuickCheck: -any
vector: -any
all-versions:
- '0.0.0.1'
author: Thomas Lippincott
latest: '0.0.0.1'
description-type: haddock
description: Concrete is a Thrift-based data specification designed for Natural Language
Processing (NLP) applications.
license-name: GPL
```
Update from Hackage at 2017-08-27T14:46:37Z | ```yaml
homepage: https://github.com/hltcoe
changelog-type: ''
hash: 1d352f54bbef567af0a503b1054d09ee48447da801de71802b1974007849be08
test-bench-deps: {}
maintainer: [email protected]
synopsis: Automatically generated Thrift definitions for the Concrete data format.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.6 && <5'
unordered-containers: -any
text: -any
containers: -any
lens: -any
thrift: -any
hashable: -any
QuickCheck: -any
vector: -any
all-versions:
- '0.0.0.1'
- '0.0.0.2'
author: Thomas Lippincott
latest: '0.0.0.2'
description-type: haddock
description: Concrete is a Thrift-based data specification designed for Natural Language
Processing (NLP) applications.
license-name: GPL
``` |
8af72d56-e9d7-4999-b71a-9d0712bc4294 | {
"language": "YAML"
} | ```yaml
## Customize the test machine
machine:
services:
- docker
test:
override:
- lein do clean, test, bin
## deployment:
## docker-hub:
## branch: master
## commands:
## - docker build -t samsara/ingestion-api .
## - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
## - docker push samsara/ingestion-api
```
Fix Auto Docker builds and push | ```yaml
## Customize the test machine
machine:
services:
- docker
test:
override:
- lein do clean, test, bin
deployment:
docker-hub:
branch: master
commands:
- docker build -t samsara/ingestion-api .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push samsara/ingestion-api
``` |
b34eee72-849a-4812-a8e4-4f7043aa6d2f | {
"language": "YAML"
} | ```yaml
Categories:
- Sports & Health
License: GPL-3.0-or-later
AuthorName: Samuel Amantea-Collins
AuthorEmail: [email protected]
SourceCode: https://github.com/SamAmco/track-and-graph
IssueTracker: https://github.com/SamAmco/track-and-graph/issues
Changelog: https://github.com/SamAmco/track-and-graph/releases
AutoName: Track & Graph
RepoType: git
Repo: https://github.com/SamAmco/track-and-graph
Builds:
- versionName: 1.4.3
versionCode: 10403
commit: v1.4.3
subdir: app
gradle:
- yes
- versionName: 1.4.4
versionCode: 10404
commit: v1.4.4
subdir: app
gradle:
- yes
- versionName: 1.5.1
versionCode: 10501
commit: v1.5.1
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 1.5.1
CurrentVersionCode: 10501
```
Update Track & Graph to 1.6.0 (10600) | ```yaml
Categories:
- Sports & Health
License: GPL-3.0-or-later
AuthorName: Samuel Amantea-Collins
AuthorEmail: [email protected]
SourceCode: https://github.com/SamAmco/track-and-graph
IssueTracker: https://github.com/SamAmco/track-and-graph/issues
Changelog: https://github.com/SamAmco/track-and-graph/releases
AutoName: Track & Graph
RepoType: git
Repo: https://github.com/SamAmco/track-and-graph
Builds:
- versionName: 1.4.3
versionCode: 10403
commit: v1.4.3
subdir: app
gradle:
- yes
- versionName: 1.4.4
versionCode: 10404
commit: v1.4.4
subdir: app
gradle:
- yes
- versionName: 1.5.1
versionCode: 10501
commit: v1.5.1
subdir: app
gradle:
- yes
- versionName: 1.6.0
versionCode: 10600
commit: v1.6.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 1.6.0
CurrentVersionCode: 10600
``` |
74942113-7c37-43f0-a4b2-809e4c5776be | {
"language": "YAML"
} | ```yaml
homepage: ''
changelog-type: markdown
hash: 7d5c7c825727632ac1837672db01522aaff0819291f4794b8d9254ec8245d380
test-bench-deps: {}
maintainer: [email protected]
synopsis: Haskell binding to sdl2-image.
changelog: ! '## v0.1.3.2
- add support for ''base-4.8''
## v0.1.3.1
- add ''this'' change-log file
## v0.1.3.0
- bump dependency version to support sdl2 1.3
'
basic-deps:
base: ! '>=4.6 && <4.9'
sdl2: ! '>=1.0 && <1.4'
all-versions:
- '0.1.0.1'
- '0.1.1.0'
- '0.1.3.0'
- '0.1.3.1'
- '0.1.3.2'
author: Cai Lei
latest: '0.1.3.2'
description-type: haddock
description: Haskell binding to sdl2-image.
license-name: MIT
```
Update from Hackage at 2017-01-16T22:40:02Z | ```yaml
homepage: ''
changelog-type: ''
hash: 57c95f16777afcf43a491a1a4a6ca99a5e41f255ef64335ffd94d082be583c4f
test-bench-deps: {}
maintainer: Siniša Biđin <[email protected]>
synopsis: Bindings to SDL2_image.
changelog: ''
basic-deps:
bytestring: ! '>=0.10.4.0'
base: ! '>=4.7 && <5'
text: ! '>=1.1.0.0'
sdl2: ! '>=2.0'
transformers: ! '>=0.2'
sdl2-image: -any
template-haskell: -any
all-versions:
- '0.1.0.1'
- '0.1.1.0'
- '0.1.3.0'
- '0.1.3.1'
- '0.1.3.2'
- '2.0.0'
author: Cai Lei <[email protected]>, Siniša Biđin <[email protected]>
latest: '2.0.0'
description-type: haddock
description: Haskell bindings to SDL2_image.
license-name: MIT
``` |
f4d238f0-7a01-4298-896a-11c7141e8619 | {
"language": "YAML"
} | ```yaml
name: CI (conda)
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: [2.7, 3.6, 3.7, 3.8]
runs-on: ${{ matrix.os }}
steps:
- uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda env
shell: pwsh
run: conda env create --file environment.yml
- name: Conda activate
run: conda activate jupytext-dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
all Python files should follow PEP8 (except some notebooks, see setup.cfg)
flake8 jupytext tests
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Test with pytest
run: |
coverage run --source=. -m py.test
- name: Upload coverage
run: |
coverage report -m
```
Add checkout and debug step, removed explicit shell name | ```yaml
name: CI (conda)
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: [2.7, 3.6, 3.7, 3.8]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Miniconda
uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Debug
run: |
# Show path and content
pwd
tree -L 1
- name: Create conda env
run: conda env create --file environment.yml
- name: Conda activate
run: conda activate jupytext-dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
all Python files should follow PEP8 (except some notebooks, see setup.cfg)
flake8 jupytext tests
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Install from source (required for the pre-commit tests)
run: pip install .
- name: Test with pytest
run: |
coverage run --source=. -m py.test
- name: Upload coverage
run: |
coverage report -m
``` |
59734521-d429-498a-ad4d-f8b3a98b71f1 | {
"language": "YAML"
} | ```yaml
---
- name: RedHat | Ensure selinux context for MISP httpd directories
command: "chcon -R httpd_sys_rw_content_t {{ item }}"
# FIXME! sefcontext module not working
# sefcontext:
# target: "{{ item }}(/.*)?"
# setype: httpd_sys_rw_content_t
# state: present
with_items:
- /var/www/MISP/app/files
- /var/www/MISP/app/files/terms
- /var/www/MISP/app/files/scripts/tmp
- /var/www/MISP/app/Plugin/CakeResque/tmp
- /var/www/MISP/app/tmp
- /var/www/MISP/app/webroot/img/orgs
- /var/www/MISP/app/webroot/img/custom
- "{{ misp_rootdir }}/.gnupg"
```
Revert "manual command for chcon as sefcontext module does not seem to work" | ```yaml
---
- name: RedHat | Ensure selinux context for MISP httpd directories
sefcontext:
target: "{{ item }}(/.*)?"
setype: httpd_sys_rw_content_t
state: present
with_items:
- /var/www/MISP/app/files
- /var/www/MISP/app/files/terms
- /var/www/MISP/app/files/scripts/tmp
- /var/www/MISP/app/Plugin/CakeResque/tmp
- /var/www/MISP/app/tmp
- /var/www/MISP/app/webroot/img/orgs
- /var/www/MISP/app/webroot/img/custom
- "{{ misp_rootdir }}/.gnupg"
``` |
bde29a50-9be0-4ff8-b22e-1ea14b6d57f5 | {
"language": "YAML"
} | ```yaml
---
id: org.metaborg:meta.lib.spoofax:${metaborgVersion}
name: libspoofax
metaborgVersion: 2.3.0-SNAPSHOT
metaborgBaselineVersion: 2.2.0
dependencies:
compile:
- org.metaborg:org.metaborg.meta.lang.esv:${metaborgBaselineVersion}
- org.metaborg:org.metaborg.meta.lang.stratego:${metaborgBaselineVersion}
exports:
- language: EditorService
directory: editor
- language: Stratego-Sugar
directory: trans
pardonedLanguages:
- Stratego-Sugar
```
Disable sdf buildstep to prevent generation of erroneous completions.str. | ```yaml
---
id: org.metaborg:meta.lib.spoofax:${metaborgVersion}
name: libspoofax
metaborgVersion: 2.3.0-SNAPSHOT
metaborgBaselineVersion: 2.2.0
dependencies:
compile:
- org.metaborg:org.metaborg.meta.lang.esv:${metaborgBaselineVersion}
- org.metaborg:org.metaborg.meta.lang.stratego:${metaborgBaselineVersion}
exports:
- language: EditorService
directory: editor
- language: Stratego-Sugar
directory: trans
language:
sdf:
enabled: false
``` |
cb167b70-b718-4303-8643-e8dd1f6505a8 | {
"language": "YAML"
} | ```yaml
---
# defaults file for selenium
selenium_install_dir: /opt
selenium_version: "3.4.0"
selenium_install_firefox: yes
selenium_install_chrome: yes
selenium_chromedriver: "2.30"
selenium_display_id: "1"
selenium_port: 4444
selenium_xvfb_args: "--server-args='-screen 0, 1920x1080x24'"
selenium_user: www-admin
```
Update selenium and webdriver versions. | ```yaml
---
# defaults file for selenium
selenium_install_dir: /opt
selenium_version: "3.10.0"
selenium_install_firefox: yes
selenium_install_chrome: yes
selenium_chromedriver: "2.36"
selenium_display_id: "1"
selenium_port: 4444
selenium_xvfb_args: "--server-args='-screen 0, 1920x1080x24'"
selenium_user: www-admin
``` |
99560e74-da66-42c8-8432-c1f1a62ee609 | {
"language": "YAML"
} | ```yaml
---
- name: Install core standard packages
apt:
name:
- abcde
- audacity
- autojump
- clipit
- curl
- dconf-tools
- ffmpeg
- fonts-inconsolata
- gimp
- gnome-do
- gnome-do-plugins
- gnome-nettool
- htop
- indicator-multiload
- keepassx
- libreoffice-base
- meld
- nethogs
- nfs-common
- p7zip-full
- pdftk
- ppa-purge
- puddletag
- python-psutil
- retext
- synaptic
- tree
- ubuntu-restricted-extras
- vagrant
- vim
- virtualbox
- vlc
- wipe
update_cache: true
become: true
```
Use vim compiled with system keyboard support | ```yaml
---
- name: Install core standard packages
apt:
name:
- abcde
- audacity
- autojump
- clipit
- curl
- dconf-tools
- ffmpeg
- fonts-inconsolata
- gimp
- gnome-do
- gnome-do-plugins
- gnome-nettool
- htop
- indicator-multiload
- keepassx
- libreoffice-base
- meld
- nethogs
- nfs-common
- p7zip-full
- ppa-purge
- puddletag
- python-psutil
- retext
- synaptic
- tree
- ubuntu-restricted-extras
- vagrant
- vim-gtk
- virtualbox
- vlc
- wipe
update_cache: true
become: true
``` |
f21f3a1c-cbca-4734-b9a1-8c1e83b84912 | {
"language": "YAML"
} | ```yaml
---
- type: replace
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/route?
value:
receiver: critical-receiver
group_by:
- alertname
group_wait: 30s
group_interval: 1m
repeat_interval: 1h
routes:
- receiver: warning-receiver
match:
severity: "warning"
- receiver: critical-receiver
match:
severity: "critical"
- type: replace
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/receivers?/-
value:
name: warning-receiver
email_configs:
- from: govpaas-alerting-((aws_account))@digital.cabinet-office.gov.uk
to: govpaas-alerting-((aws_account))[email protected]
- type: replace
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/receivers?/-
value:
name: critical-receiver
email_configs:
- from: govpaas-alerting-((aws_account))@digital.cabinet-office.gov.uk
to: govpaas-alerting-((aws_account))[email protected]
```
Set email subject for Alertmanager alerts | ```yaml
---
- type: replace
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/route?
value:
receiver: critical-receiver
group_by:
- alertname
group_wait: 30s
group_interval: 1m
repeat_interval: 1h
routes:
- receiver: warning-receiver
match:
severity: "warning"
- receiver: critical-receiver
match:
severity: "critical"
- type: replace
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/receivers?/-
value:
name: warning-receiver
email_configs:
- from: govpaas-alerting-((aws_account))@digital.cabinet-office.gov.uk
to: govpaas-alerting-((aws_account))[email protected]
headers:
Subject: "[((metrics_environment))] [warning] {{ .GroupLabels.SortedPairs.Values | join \" \" }}"
- type: replace
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/receivers?/-
value:
name: critical-receiver
email_configs:
- from: govpaas-alerting-((aws_account))@digital.cabinet-office.gov.uk
to: govpaas-alerting-((aws_account))[email protected]
headers:
Subject: "[((metrics_environment))] [critical] {{ .GroupLabels.SortedPairs.Values | join \" \" }}"
``` |
a3ec724a-b49a-4c89-bae4-8e5aace1a39d | {
"language": "YAML"
} | ```yaml
---
concat_basedir: "/tmp"
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
selinux_config_mode: "disabled"
```
Remove selinux_config_mode from default facts | ```yaml
---
concat_basedir: "/tmp"
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
``` |
0942234f-5bd3-4d58-bbf1-38f72e918f73 | {
"language": "YAML"
} | ```yaml
homepage: ''
changelog-type: ''
hash: 5544c8079f85d19754d84c1d27d50988473a2800ca4fb827d59c630280429178
test-bench-deps:
bytestring: -any
base: -any
amqp: -any
text: -any
amqp-worker: -any
tasty-hunit: -any
tasty: -any
aeson: -any
maintainer: [email protected]
synopsis: High level functions for working with message queues
changelog: ''
basic-deps:
exceptions: -any
bytestring: -any
split: -any
base: ! '>=4.9 && <5'
amqp: -any
text: -any
monad-control: -any
resource-pool: -any
data-default: -any
mtl: -any
transformers-base: -any
aeson: -any
all-versions:
- '0.2.0'
- '0.2.1'
- '0.2.2'
author: Sean Hess
latest: '0.2.2'
description-type: haddock
description: High level functions for working with message queues
license-name: BSD3
```
Update from Hackage at 2016-12-14T22:22:32Z | ```yaml
homepage: ''
changelog-type: ''
hash: 6e4627a037255a5a15e13cbbe45aeccc5280e1cf6611d532214894932d07c8e3
test-bench-deps:
bytestring: -any
base: -any
amqp: -any
text: -any
amqp-worker: -any
tasty-hunit: -any
tasty: -any
aeson: -any
maintainer: [email protected]
synopsis: High level functions for working with message queues
changelog: ''
basic-deps:
exceptions: -any
bytestring: -any
split: -any
base: ! '>=4.9 && <5'
amqp: -any
text: -any
monad-control: -any
resource-pool: -any
data-default: -any
mtl: -any
transformers-base: -any
aeson: -any
all-versions:
- '0.2.0'
- '0.2.1'
- '0.2.2'
- '0.2.3'
author: Sean Hess
latest: '0.2.3'
description-type: haddock
description: High level functions for working with message queues
license-name: BSD3
``` |
4138d3a2-e633-403f-b01b-e19c03df6a95 | {
"language": "YAML"
} | ```yaml
# sigs.k8s.io/scheduler-plugins presubmits
presubmits:
kubernetes-sigs/scheduler-plugins:
- name: pull-scheduler-plugins-verify-gofmt
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.13
command:
- make
args:
- verify-gofmt
- name: pull-scheduler-plugins-verify-build
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.13
command:
- make
args:
- build
- name: pull-scheduler-plugins-unit-test
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.13
command:
- make
args:
- unit-test
- name: pull-scheduler-plugins-integration-test
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.13
command:
- make
args:
- integration-test
```
Update scheduler-plugins CI Job To Go 1.15.2 | ```yaml
# sigs.k8s.io/scheduler-plugins presubmits
presubmits:
kubernetes-sigs/scheduler-plugins:
- name: pull-scheduler-plugins-verify-gofmt
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.15.2
command:
- make
args:
- verify-gofmt
- name: pull-scheduler-plugins-verify-build
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.15.2
command:
- make
args:
- build
- name: pull-scheduler-plugins-unit-test
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.15.2
command:
- make
args:
- unit-test
- name: pull-scheduler-plugins-integration-test
decorate: true
path_alias: sigs.k8s.io/scheduler-plugins
always_run: true
spec:
containers:
- image: golang:1.15.2
command:
- make
args:
- integration-test
``` |
366c79ea-bb6b-4c27-b316-6ec624d717d1 | {
"language": "YAML"
} | ```yaml
language: java
sudo: required
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.CommandBox
env:
matrix:
- [email protected]
- ENGINE=lucee@5
- ENGINE=adobe@2016
- ENGINE=adobe@11
- ENGINE=adobe@10
before_install:
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a /etc/apt/sources.list.d/commandbox.list
install:
- sudo apt-get update && sudo apt-get --assume-yes install commandbox
- box install
before_script:
- box server start cfengine=$ENGINE port=8500
script:
- box testbox run runner='http://127.0.0.1:8500/tests/runner.cfm'
notifications:
email: false
```
Remove ACF 10 from Travis matrix as it is EOL | ```yaml
language: java
sudo: required
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.CommandBox
env:
matrix:
- [email protected]
- ENGINE=lucee@5
- ENGINE=adobe@2016
- ENGINE=adobe@11
before_install:
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a /etc/apt/sources.list.d/commandbox.list
install:
- sudo apt-get update && sudo apt-get --assume-yes install commandbox
- box install
before_script:
- box server start cfengine=$ENGINE port=8500
script:
- box testbox run runner='http://127.0.0.1:8500/tests/runner.cfm'
notifications:
email: false
``` |
86894232-07b5-4409-9ad1-99882322d80d | {
"language": "YAML"
} | ```yaml
apiVersion: v1
kind: Service
metadata:
name: rnacentral
labels:
app: rnacentral
spec:
type: NodePort
ports:
- port: {{ .Values.rnacentralPort }}
targetPort: {{ .Values.rnacentralPort }}
protocol: TCP
selector:
app: rnacentral
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rnacentral
spec:
replicas: {{ .Values.rnacentralReplicas }}
selector:
matchLabels:
app: rnacentral
template:
metadata:
labels:
app: rnacentral
spec:
containers:
- image: rnacentral/rnacentral-webcode:python3.7
name: rnacentral
ports:
- containerPort: {{ .Values.rnacentralPort }}
resources:
requests:
memory: {{ .Values.rnacentralRequestsMemory }}
cpu: {{ .Values.rnacentralRequestsCPU }}
limits:
memory: {{ .Values.rnacentralLimitssMemory }}
cpu: {{ .Values.rnacentralLimitsCPU }}
volumeMounts:
- name: static-volume
mountPath: /srv/rnacentral/static
envFrom:
- secretRef:
name: {{ .Values.database }}
- configMapRef:
name: {{ .Values.proxy }}
restartPolicy: Always
volumes:
- name: static-volume
persistentVolumeClaim:
claimName: static-volume```
Add branch to the values | ```yaml
apiVersion: v1
kind: Service
metadata:
name: rnacentral
labels:
app: rnacentral
spec:
type: NodePort
ports:
- port: {{ .Values.rnacentralPort }}
targetPort: {{ .Values.rnacentralPort }}
protocol: TCP
selector:
app: rnacentral
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rnacentral
spec:
replicas: {{ .Values.rnacentralReplicas }}
selector:
matchLabels:
app: rnacentral
template:
metadata:
labels:
app: rnacentral
spec:
containers:
- image: rnacentral/rnacentral-webcode:{{ .Values.rnacentralBranch }}
name: rnacentral
ports:
- containerPort: {{ .Values.rnacentralPort }}
resources:
requests:
memory: {{ .Values.rnacentralRequestsMemory }}
cpu: {{ .Values.rnacentralRequestsCPU }}
limits:
memory: {{ .Values.rnacentralLimitssMemory }}
cpu: {{ .Values.rnacentralLimitsCPU }}
volumeMounts:
- name: static-volume
mountPath: /srv/rnacentral/static
envFrom:
- secretRef:
name: {{ .Values.database }}
- configMapRef:
name: {{ .Values.proxy }}
restartPolicy: Always
volumes:
- name: static-volume
persistentVolumeClaim:
claimName: static-volume``` |
4520f0be-3f8f-43c4-9cd6-e3bed3d5e2d8 | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "0.12"
- "0.10"
- "iojs"
sudo: false
cache:
directories:
- node_modules
notifications:
email: false```
Test Node 5, and 0.12 only | ```yaml
language: node_js
node_js:
- "5"
- "0.12"
sudo: false
cache:
directories:
- node_modules
notifications:
email: false``` |
26d34e71-5ef3-4206-b5e1-107330ca6bd2 | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/nikita-volkov/optima-for-hasql
changelog-type: ''
hash: 4ddbd39532cfe5a8b545a6d51eb7e21f0713abe04e0a87ef268574c952372678
test-bench-deps: {}
maintainer: Nikita Volkov <[email protected]>
synopsis: Command-line arguments parsing for Hasql
changelog: ''
basic-deps:
hasql: ! '>=1.4 && <1.5'
bytestring: ! '>=0.10 && <0.11'
base: ! '>=4.9 && <5'
time: ! '>=1.6 && <2'
text: ! '>=1 && <2'
optima: ! '>=0.4 && <0.5'
hasql-pool: ! '>=0.5.1 && <0.6'
all-versions:
- '0.1'
- 0.1.0.1
author: Nikita Volkov <[email protected]>
latest: 0.1.0.1
description-type: haddock
description: ''
license-name: MIT
```
Update from Hackage at 2022-09-01T13:45:46Z | ```yaml
homepage: https://github.com/nikita-volkov/optima-for-hasql
changelog-type: ''
hash: 078ddf6e4d98284ebea99efc4c1e9b4d42cd05c7c67b09ed3d34a86aef7cc44c
test-bench-deps: {}
maintainer: Nikita Volkov <[email protected]>
synopsis: Command-line arguments parsing for Hasql
changelog: ''
basic-deps:
hasql: '>=1.6 && <1.7'
bytestring: '>=0.10 && <0.12'
base: '>=4.9 && <5'
time: '>=1.6 && <2'
text: '>=1 && <3'
optima: '>=0.4 && <0.5'
hasql-pool: '>=0.8 && <0.9'
all-versions:
- '0.1'
- 0.1.0.1
- '0.2'
author: Nikita Volkov <[email protected]>
latest: '0.2'
description-type: haddock
description: ''
license-name: MIT
``` |
e6e88105-938b-474d-82da-0930264e517a | {
"language": "YAML"
} | ```yaml
---
- type: replace
path: /resource_groups/name=router/networks/name=default/default?
value: [dns, gateway]
- type: replace
path: /resource_groups/name=router/networks/-
value:
name: static
static_ips: [ ((sl_router_ip)) ]
```
Fix ops-file path for instance_groups | ```yaml
---
- type: replace
path: /instance_groups/name=router/networks/name=default/default?
value: [dns, gateway]
- type: replace
path: /instance_groups/name=router/networks/-
value:
name: static
static_ips: [ ((sl_router_ip)) ]
``` |
eb941958-4441-4f62-aebf-edb25f8c6672 | {
"language": "YAML"
} | ```yaml
sudo: false
language: node_js
node_js:
- 'stable'
- '0.12'
- '0.10'
before_script:
- npm install -g gulp
- gulp lint
after_success: npm run coveralls
# whitelist
branches:
only:
- master
notifications:
email:
- [email protected]
```
Update node versions for Travis CI. | ```yaml
sudo: false
language: node_js
node_js:
- '8'
- '6'
- '4'
before_script:
- npm install -g gulp
- gulp lint
after_success: npm run coveralls
# whitelist
branches:
only:
- master
notifications:
email:
- [email protected]
``` |
d5c5c0e2-9347-4893-b359-95ee8b201fff | {
"language": "YAML"
} | ```yaml
homepage: http://www.informatik.uni-marburg.de/~rendel/unparse
changelog-type: ''
hash: 4b49219eb6715cc36440cf06194a3e83592a942059a51b328dd66586e2bb8843
test-bench-deps: {}
maintainer: [email protected]
synopsis: Partial isomorphisms.
changelog: ''
basic-deps:
base: ! '>=3 && <5'
template-haskell: -any
all-versions:
- '0.1'
- '0.2'
- '0.2.2'
author: Tillmann Rendel
latest: '0.2.2'
description-type: haddock
description: ! 'Partial isomorphisms as described in the
paper:
Tillmann Rendel and Klaus Ostermann.
Invertible Syntax Descriptions:
Unifying Parsing and Pretty Printing.
In /Proc. of Haskell Symposium/, 2010.
The paper also describes invertible syntax
descriptions as a common interface for
parsers and pretty printers. These are
distributed separately in the
/invertible-syntax/ package.'
license-name: BSD3
```
Update from Hackage at 2017-05-05T11:49:20Z | ```yaml
homepage: http://www.informatik.uni-marburg.de/~rendel/unparse
changelog-type: ''
hash: dc27254b2fb36077e39a78632a392c4dc5beca2b9dcc536fea0ee2532a453263
test-bench-deps: {}
maintainer: [email protected]
synopsis: Partial isomorphisms.
changelog: ''
basic-deps:
base: ! '>=3 && <5'
template-haskell: ! '>=2.11'
all-versions:
- '0.1'
- '0.2'
- '0.2.2'
author: Tillmann Rendel
latest: '0.2.2'
description-type: haddock
description: ! 'Partial isomorphisms as described in the
paper:
Tillmann Rendel and Klaus Ostermann.
Invertible Syntax Descriptions:
Unifying Parsing and Pretty Printing.
In /Proc. of Haskell Symposium/, 2010.
The paper also describes invertible syntax
descriptions as a common interface for
parsers and pretty printers. These are
distributed separately in the
/invertible-syntax/ package.'
license-name: BSD3
``` |
c48b52fd-a0a1-4570-9b47-6921d5dd8163 | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/caneroj1/sqlite-simple-errors
changelog-type: ''
hash: c5721b225696ace0c93ef123aff8d05ab1e3a9c5e5afe33b2606e51c4a4a5187
test-bench-deps:
base: -any
sqlite-simple: -any
text: -any
sqlite-simple-errors: -any
mtl: -any
maintainer: [email protected]
synopsis: Wrapper around errors from sqlite-simple
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
sqlite-simple: -any
text: -any
parsec: -any
all-versions:
- '0.1.0.0'
- '0.2.0.0'
author: Joe Canero
latest: '0.2.0.0'
description-type: haddock
description: Wrapper around errors from sqlite-simple
license-name: BSD3
```
Update from Hackage at 2016-10-12T02:53:46+00:00 | ```yaml
homepage: https://github.com/caneroj1/sqlite-simple-errors
changelog-type: ''
hash: aae745033281f0a63096edbc63df34834aadc186981f3d5f49a4a40136d750e4
test-bench-deps:
base: -any
sqlite-simple: ! '>=0.4.9 && <0.5.0'
text: ! '>=1.2.2.1 && <1.2.3'
sqlite-simple-errors: -any
mtl: ! '>=2.2.1 && <2.3'
maintainer: [email protected]
synopsis: Wrapper around errors from sqlite-simple
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
sqlite-simple: ! '>=0.4.9 && <0.5.0'
text: ! '>=1.2.2.1 && <1.2.3'
parsec: ! '>=3.1.11 && <3.2'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
- '0.3.0.0'
author: Joe Canero
latest: '0.3.0.0'
description-type: haddock
description: Wrapper around errors from sqlite-simple
license-name: BSD3
``` |
ccaf0709-9ba6-40b0-b2af-cd148f115a38 | {
"language": "YAML"
} | ```yaml
homepage: https://batterseapower.github.io/test-framework/
changelog-type: ''
hash: 6e637a0904fd0b96bf35c2c00fb5282c8fcb5f329f0a24b4dbf3d131ae531bd0
test-bench-deps: {}
maintainer: Haskell Libraries <[email protected]>
synopsis: HUnit support for the test-framework package.
changelog: ''
basic-deps:
test-framework: ! '>=0.2.0'
extensible-exceptions: ! '>=0.1.1 && <0.2.0'
base: ! '>=4 && <5'
HUnit: ! '>=1.2 && <1.4'
all-versions:
- '0.2.0'
- '0.2.1'
- '0.2.2'
- '0.2.3'
- '0.2.4'
- '0.2.5'
- '0.2.6'
- '0.2.7'
- '0.3.0'
- '0.3.0.1'
- '0.3.0.2'
author: Max Bolingbroke <[email protected]>
latest: '0.3.0.2'
description-type: haddock
description: HUnit support for the test-framework package.
license-name: BSD3
```
Update from Hackage at 2016-10-07T16:00:25+00:00 | ```yaml
homepage: https://batterseapower.github.io/test-framework/
changelog-type: ''
hash: 50dfa482f626505b45ab433d0110f275e314f872a198b5fc24d1a640af755880
test-bench-deps: {}
maintainer: Haskell Libraries <[email protected]>
synopsis: HUnit support for the test-framework package.
changelog: ''
basic-deps:
test-framework: ! '>=0.2.0'
extensible-exceptions: ! '>=0.1.1 && <0.2.0'
base: ! '>=4 && <5'
HUnit: ! '>=1.2 && <1.5'
all-versions:
- '0.2.0'
- '0.2.1'
- '0.2.2'
- '0.2.3'
- '0.2.4'
- '0.2.5'
- '0.2.6'
- '0.2.7'
- '0.3.0'
- '0.3.0.1'
- '0.3.0.2'
author: Max Bolingbroke <[email protected]>
latest: '0.3.0.2'
description-type: haddock
description: HUnit support for the test-framework package.
license-name: BSD3
``` |
117ddeec-2887-44d3-8563-3cbeaa31fbfe | {
"language": "YAML"
} | ```yaml
---
- name: Update apt-get once a day
apt: update_cache=yes cache_valid_time=84600
sudo: yes
- name: Ensure curl is installed
apt: name=curl
sudo: yes
- name: Install docker
shell: curl -sSL https://get.docker.com/ubuntu/ | sudo sh
args:
creates: /usr/bin/docker
sudo: yes
- name: Ensure docker is running
service:
name: docker
state: running
sudo: yes
- name: Add user to docker group
user:
name: "{{ docker_user }}"
append: yes
groups: docker
sudo: yes
- name: Install docker-py
pip: name=docker-py
sudo: yes
```
Install pip in docker playbook | ```yaml
---
- name: Update apt-get once a day
apt: update_cache=yes cache_valid_time=84600
sudo: yes
- name: Ensure curl is installed
apt: name=curl
sudo: yes
- name: Ensure python is installed
apt: name={{ item }}
with_items:
- python
- python-pip
sudo: yes
- name: Install docker
shell: curl -sSL https://get.docker.com/ubuntu/ | sudo sh
args:
creates: /usr/bin/docker
sudo: yes
- name: Ensure docker is running
service:
name: docker
state: running
sudo: yes
- name: Add user to docker group
user:
name: "{{ docker_user }}"
append: yes
groups: docker
sudo: yes
- name: Install docker-py
pip: name=docker-py
sudo: yes
``` |
09f0fbcf-45e2-4b50-b540-0fbb4248755f | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/mhwombat/gray-extended
changelog-type: ''
hash: 253345a95219b9eb2fcd743da2424d1eab9731fab974351947ac6c3817bacc8e
test-bench-deps:
test-framework: ==0.8.*
base: ==4.*
test-framework-quickcheck2: ==0.3.*
gray-extended: -any
QuickCheck: ==2.7.*
maintainer: [email protected]
synopsis: Gray encoding schemes
changelog: ''
basic-deps:
base: ==4.*
all-versions:
- '1.2'
- '1.3'
- '1.4'
- '1.5'
- '1.5.1'
author: Amy de Buitléir
latest: '1.5.1'
description-type: haddock
description: ! 'Gray codes satisfy the property that two successive values
differ in only one digit. Usually the term \"Gray code\"
refers to the Binary Reflected Gray code (BRGC), but
non-binary Gray codes have also been discovered.'
license-name: BSD3
```
Update from Hackage at 2016-11-04T13:24:13Z | ```yaml
homepage: https://github.com/mhwombat/gray-extended#readme
changelog-type: ''
hash: 992d02d8d7e53e93dd52de2898dbfb886d2cb8f1f51caf07cbe59bfd6dab8115
test-bench-deps:
test-framework: ==0.8.*
base: -any
test-framework-quickcheck2: ==0.3.*
gray-extended: -any
QuickCheck: ==2.7.* || ==2.8.* || ==2.9.*
maintainer: [email protected]
synopsis: Gray encoding schemes
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
all-versions:
- '1.2'
- '1.3'
- '1.4'
- '1.5'
- '1.5.1'
- '1.5.2'
author: Amy de Buitléir
latest: '1.5.2'
description-type: haddock
description: ! 'Gray codes satisfy the property that two successive values
differ in only one digit. Usually the term \"Gray code\"
refers to the Binary Reflected Gray code (BRGC), but
non-binary Gray codes have also been discovered.'
license-name: BSD3
``` |
8fb90471-2bb5-4edf-923e-ab9949b1f4b2 | {
"language": "YAML"
} | ```yaml
on: push
name: Docker build and push
jobs:
build:
name: Docker build and push
if: '!github.event.deleted'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
if: github.ref == 'refs/heads/master'
uses: anothrNick/github-tag-action@master
id: version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# Assume the same repo name on Docker Hub as on GitHub
repository: ${{ github.repository }}
tags: ${{ steps.version.outputs.new_tag }}
tag_with_ref: true
add_git_labels: true
```
Update docker build and push action to v2 syntax | ```yaml
on: push
name: Docker build and push
jobs:
build:
name: Docker build and push
if: '!github.event.deleted'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
if: github.ref == 'refs/heads/master'
uses: anothrNick/github-tag-action@master
id: version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to DockerHub
if: github.ref == 'refs/heads/master'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker images
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
tags: |
spejder/msml:latest
spejder/msml:${{ steps.version.outputs.new_tag }}
push: true
``` |
5f28c0d7-7d82-4ead-97e9-59c149bc0858 | {
"language": "YAML"
} | ```yaml
name: InstallAdbeTest
on: [push]
jobs:
test:
runs-on: macos-latest
timeout-minutes: 15
strategy:
matrix:
python-version: [3.5, 3.7, 3.8]
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install adb-enhanced
run: |
touch docs/README.rst
python setup.py install
```
Test on Python 3.9 instead of 3.5 | ```yaml
name: InstallAdbeTest
on: [push]
jobs:
test:
runs-on: macos-latest
timeout-minutes: 15
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install adb-enhanced
run: |
touch docs/README.rst
python setup.py install
``` |
f373b2bb-f8f4-4912-8792-d7181b4220ce | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/adamflott/network-types-icmp#readme
changelog-type: markdown
hash: 9e0e5a2330360154222513d876311e541e5b8796cf403639162db89dade965cd
test-bench-deps:
network-types-icmp: -any
base: '>=4.7 && <5'
maintainer: [email protected]
synopsis: Types for representing ICMP and ICMPv6 messages.
changelog: |
# Changelog for network-types-icmp
## 1.0.0.0
* First Release
basic-deps:
base: '>=4.7 && <5'
all-versions:
- 1.0.0.0
author: Adam Flott
latest: 1.0.0.0
description-type: markdown
description: |
# network-types-icmp
license-name: BSD-3-Clause
```
Update from Hackage at 2020-09-28T22:31:14Z | ```yaml
homepage: https://github.com/adamflott/network-types-icmp#readme
changelog-type: markdown
hash: 524d97cbabe02bf177ce17a8ce9ad4a9534f2df82fb9a883dd3b48654dc846ef
test-bench-deps:
network-types-icmp: -any
base: '>=4.7 && <5'
maintainer: [email protected]
synopsis: Types for representing ICMP and ICMPv6 messages.
changelog: |
# Changelog for network-types-icmp
## 1.0.0.1
* Fix description formatting and working Travis CI builds
## 1.0.0.0
* First Release
basic-deps:
base: '>=4.7 && <5'
all-versions:
- 1.0.0.0
- 1.0.0.1
author: Adam Flott
latest: 1.0.0.1
description-type: markdown
description: |
# network-types-icmp
license-name: BSD-3-Clause
``` |
4b35bd13-054f-4b42-b63d-d24556b55fc0 | {
"language": "YAML"
} | ```yaml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Mount bazel cache
uses: actions/cache@v1
with:
path: "/home/runner/.cache/bazel"
key: bazel
- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: Setup protobuf specification file
run: |
mv protocol_buffer/document_test.proto protocol_buffer/document.proto
- name: Run tests
run: |
"${GITHUB_WORKSPACE}/bin/bazel" test --test_output=errors --test_verbose_timeout_warnings //...
- name: Build
run: |
"${GITHUB_WORKSPACE}/bin/bazel" build //...
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install cpplint
run: pip install cpplint
- name: Run cpplint
run: cpplint --recursive .
- name: Install pylint
run: pip install pylint
- name: Run pylint
run: pylint training/
```
Apply pylint on all python files | ```yaml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Mount bazel cache
uses: actions/cache@v1
with:
path: "/home/runner/.cache/bazel"
key: bazel
- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: Setup protobuf specification file
run: |
mv protocol_buffer/document_test.proto protocol_buffer/document.proto
- name: Run tests
run: |
"${GITHUB_WORKSPACE}/bin/bazel" test --test_output=errors --test_verbose_timeout_warnings //...
- name: Build
run: |
"${GITHUB_WORKSPACE}/bin/bazel" build //...
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install cpplint
run: pip install cpplint
- name: Run cpplint
run: cpplint --recursive .
- name: Install pylint
run: pip install pylint
- name: Run pylint
run: pylint *
``` |
d1567bbb-0873-4d98-b442-2ac7ef08cc99 | {
"language": "YAML"
} | ```yaml
name: CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.201
- name: Build
run: dotnet build --configuration Release
```
Add github action to download ACT binaries | ```yaml
name: CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.201
- name: Restore NuGet Packages
run: dotnet restore
- name: Download ACT Binaries
uses: carlosperate/[email protected]
with:
file-url: 'https://advancedcombattracker.com/includes/page-download.php?id=57'
file-name: 'act.zip'
location: './packages'
- name: Extract ACT Binaries
uses: DuckSoft/[email protected]
with:
pathSource: './packages/act.zip'
pathTarget: './packages/'
- name: Build
run: dotnet build --configuration Release --no-restore
``` |
1007d59a-c5b2-41a7-b455-613a1399b936 | {
"language": "YAML"
} | ```yaml
---
name: Main workflow
on:
- push
- pull_request
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php-versions: ['8.0', '8.1']
experimental: [false]
include:
- php-versions: '7.4'
experimental: true
- php-versions: nightly
experimental: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
update: true
extensions: curl, date, dom, json, openssl, spl, xml, zlib
tools: composer:v2
- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install
- name: Lint
run: composer ci
```
Remove unknown setting to update to latest PHP patch release | ```yaml
---
name: Main workflow
on:
- push
- pull_request
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php-versions:
- '8.0'
- '8.1'
experimental: [false]
include:
- php-versions: '7.4'
experimental: true
- php-versions: nightly
experimental: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: curl, date, dom, json, openssl, spl, xml, zlib
tools: composer:v2
- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install
- name: Lint
run: composer ci
``` |
678e720a-10d0-45fa-9a0b-97f6147b7fc6 | {
"language": "YAML"
} | ```yaml
# This workflow will download a prebuilt Ruby version, install dependencies and
# run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '16 4 12 * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.6, 2.7, "3.0", jruby-9.3]
steps:
- uses: actions/checkout@v2
- name: Install non-ruby dependencies
run: |
# Provides libgirepository-1.0.so.1
sudo apt-get install libgirepository-1.0-1
# Provides cairo-1.0.typelib
sudo apt-get install gir1.2-freedesktop
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop -P
```
Test with Ruby 3.1 in CI | ```yaml
# This workflow will download a prebuilt Ruby version, install dependencies and
# run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '16 4 12 * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.6, 2.7, "3.0", "3.1", jruby-9.3]
steps:
- uses: actions/checkout@v2
- name: Install non-ruby dependencies
run: |
# Provides libgirepository-1.0.so.1
sudo apt-get install libgirepository-1.0-1
# Provides cairo-1.0.typelib
sudo apt-get install gir1.2-freedesktop
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop -P
``` |
444118ef-fb2f-4cda-98d3-2849a6151329 | {
"language": "YAML"
} | ```yaml
on: [push, pull_request]
name: Continuous integration
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
```
Update Github Actions workflow name to CI | ```yaml
on: [push, pull_request]
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
``` |
b801af5b-3463-47c9-a12f-555518c2f08d | {
"language": "YAML"
} | ```yaml
on: push
name: Run tests
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12, 14, 15]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: .github/workflows/install.sh
- run: npm install
- run: npm test
```
Use 'npm ci' on GH Actions | ```yaml
on: push
name: Run tests
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12, 14, 15]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: .github/workflows/install.sh
- run: npm ci
- run: npm test
``` |
5e6e9c89-0eec-4cb7-bc77-81f7806a56ff | {
"language": "YAML"
} | ```yaml
name: test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm install
- name: Run linter
run: npm run lint
- name: Run test with coverage
run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
```
Use Node 14.x and 16.x images | ```yaml
name: test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm install
- name: Run linter
run: npm run lint
- name: Run test with coverage
run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
``` |
16e50ad4-5df8-4497-9940-6cb3538392d1 | {
"language": "YAML"
} | ```yaml
name: actions
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: run spec
run: bundle exec rake test
deploy:
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: deploy
run: bash ./bin/deploy.sh
env:
SACLOUD_ACCESS_TOKEN: ${{ secrets.SACLOUD_ACCESS_TOKEN }}
SACLOUD_ACCESS_TOKEN_SECRET: ${{ secrets.SACLOUD_ACCESS_TOKEN_SECRET }}
```
Add indent for better code reading | ```yaml
name: actions
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: run spec
run: bundle exec rake test
deploy:
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: deploy
run: bash ./bin/deploy.sh
env:
SACLOUD_ACCESS_TOKEN: ${{ secrets.SACLOUD_ACCESS_TOKEN }}
SACLOUD_ACCESS_TOKEN_SECRET: ${{ secrets.SACLOUD_ACCESS_TOKEN_SECRET }}
``` |
273abd28-03b4-4df4-8798-ee91eb28605f | {
"language": "YAML"
} | ```yaml
#
# Storage instance default settings
#
# Reference info for settings and pricing
#
# http://docs.ansible.com/ansible/gce_module.html
# https://cloud.google.com/compute/pricing
#
# The number of storage servers in your cluster
storage_servers_count: 2
# The size of each storage server
gce_storage_server_machine_type: n1-standard-2
# If you'd like a dedicated client with tools loaded (for tasks like benchmarking the cluster)
client_servers_count: 0
# The size of each client server
gce_client_server_machine_type: n1-standard-1
# Location and OS image settings for all
# Find available instances with the command: gcloud compute images list
gce_image: centos-7-v20160126
gce_zone: us-central1-b
```
Update gce image to latest | ```yaml
#
# Storage instance default settings
#
# Reference info for settings and pricing
#
# http://docs.ansible.com/ansible/gce_module.html
# https://cloud.google.com/compute/pricing
#
# The number of storage servers in your cluster
storage_servers_count: 2
# The size of each storage server
gce_storage_server_machine_type: n1-standard-2
# If you'd like a dedicated client with tools loaded (for tasks like benchmarking the cluster)
client_servers_count: 0
# The size of each client server
gce_client_server_machine_type: n1-standard-1
# Location and OS image settings for all
# Find available instances with the command: gcloud compute images list
gce_image: centos-7-v20160301
gce_zone: us-central1-b
``` |
f20e2e83-2391-4a5c-a7dc-96580f0e4108 | {
"language": "YAML"
} | ```yaml
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "tools"
- echo y | android update sdk --no-ui --all --filter "build-tools-23.0.3"
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
test:
override:
- ./gradlew assembleRelease
- cp -r build/outputs $CIRCLE_ARTIFACTS
deployment:
production:
branch: master
commands:
- ./gradlew publishApkRelease
-Dorg.gradle.project.track=production
beta:
branch: develop
commands:
- ./gradlew publishApkRelease
-Dorg.gradle.project.track=beta
```
Modify whitespace in CI config | ```yaml
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "tools"
- echo y | android update sdk --no-ui --all --filter "build-tools-23.0.3"
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
test:
override:
- ./gradlew assembleRelease
- cp -r build/outputs $CIRCLE_ARTIFACTS
deployment:
production:
branch: master
commands:
- ./gradlew publishApkRelease -Dorg.gradle.project.track=production
beta:
branch: develop
commands:
- ./gradlew publishApkRelease -Dorg.gradle.project.track=beta
``` |
78592327-0870-495d-9e10-ff28080ecabd | {
"language": "YAML"
} | ```yaml
dependencies:
post:
- curl -Lsf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh -s -- --yes
- multirust default stable
test:
override:
- cargo test
```
Install alsa (headers are needed to compile libsoundio, disabling ALSA doesn't work) | ```yaml
dependencies:
post:
- sudo apt-get install -y alsa-base
- curl -Lsf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh -s -- --yes
- multirust default stable
test:
override:
- cargo test
``` |
75f77945-6bd4-45c8-87b3-ac2a4574d5e1 | {
"language": "YAML"
} | ```yaml
machine:
node:
version: 0.10.39
dependencies:
pre:
- npm install npm -g
test:
post:
- grunt test:coveralls```
Upgrade node version for build | ```yaml
machine:
node:
version: 4.2.2
test:
post:
- grunt test:coveralls
``` |
267546f6-4080-490e-9988-a9302b418e4c | {
"language": "YAML"
} | ```yaml
# From https://circleci.com/docs/yarn/
machine:
node:
version: 9.4.0
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn test
# From http://codereview.cc/harbormaster/step/edit/6/
notify:
webhooks:
- url: http://codereview.cc/harbormaster/hook/circleci/
```
Make Circle build the lib before test | ```yaml
# From https://circleci.com/docs/yarn/
machine:
node:
version: 9.4.0
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn build && yarn test
# From http://codereview.cc/harbormaster/step/edit/6/
notify:
webhooks:
- url: http://codereview.cc/harbormaster/hook/circleci/
``` |
d8991ba8-12ce-4934-bdb4-0fe3d008500b | {
"language": "YAML"
} | ```yaml
#
# Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
#
authentication:
type: PROP_FILE
fileAuth:
users:
-
username: snowowl
password: snowowl
repository:
host: 0.0.0.0
port: 2036
# Minutes to invalidate and close the unused indexes for tasks
# Default is 4 hours, setting it to 0 means infinite (turns the feature off)
# indexTimeout: 240
database:
type: b2i_mysql
datasource: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
driver: com.mysql.jdbc.Driver
scheme: jdbc:mysql://
location: localhost:3306/
settings: ?useServerPrepStmts=true&useCursorFetch=true
username: snowowl
password: snowowl
# reviewManager:
# Minutes to keep reviews in CURRENT state persisted in the index (default 15 minutes)
keepCurrentMins: 120
# Minutes to keep reviews in others states persisted (default 5 minutes)
keepOtherMins: 30
```
Revert "Increase Review lifespan to 1 hours" | ```yaml
#
# Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
#
authentication:
type: PROP_FILE
fileAuth:
users:
-
username: snowowl
password: snowowl
repository:
host: 0.0.0.0
port: 2036
# Minutes to invalidate and close the unused indexes for tasks
# Default is 4 hours, setting it to 0 means infinite (turns the feature off)
# indexTimeout: 240
database:
type: b2i_mysql
datasource: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
driver: com.mysql.jdbc.Driver
scheme: jdbc:mysql://
location: localhost:3306/
settings: ?useServerPrepStmts=true&useCursorFetch=true
username: snowowl
password: snowowl
# reviewManager:
# Minutes to keep reviews in CURRENT state persisted in the index (default 15 minutes)
# keepCurrentMins: 15
# Minutes to keep reviews in others states persisted (default 5 minutes)
# keepOtherMins: 5
``` |
b9d4a9e5-3a2d-4ed2-b2e5-8a1472a44ac6 | {
"language": "YAML"
} | ```yaml
AntiFeatures:
- NonFreeNet
Categories:
- Internet
- Science & Education
License: GPL-3.0-or-later
AuthorName: Vít Skalický
AuthorEmail: [email protected]
SourceCode: https://github.com/vitSkalicky/lepsi-rozvrh
IssueTracker: https://github.com/vitSkalicky/lepsi-rozvrh/issues
AutoName: Better schedule
RepoType: git
Repo: https://github.com/vitSkalicky/lepsi-rozvrh.git
Builds:
- versionName: '1.0'
versionCode: 1
commit: v1.0
subdir: app
gradle:
- yes
- versionName: '1.1'
versionCode: 2
commit: v1.1
subdir: app
gradle:
- yes
- versionName: 1.3.2
versionCode: 6
commit: v1.3.2
subdir: app
gradle:
- yes
scanignore:
- app/build.gradle
- versionName: '1.5'
versionCode: 8
commit: v1.5
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
UpdateCheckIgnore: beta preview
CurrentVersion: '1.5'
CurrentVersionCode: 8
```
Update Better schedule to 1.5.1 (9) | ```yaml
AntiFeatures:
- NonFreeNet
Categories:
- Internet
- Science & Education
License: GPL-3.0-or-later
AuthorName: Vít Skalický
AuthorEmail: [email protected]
SourceCode: https://github.com/vitSkalicky/lepsi-rozvrh
IssueTracker: https://github.com/vitSkalicky/lepsi-rozvrh/issues
AutoName: Better schedule
RepoType: git
Repo: https://github.com/vitSkalicky/lepsi-rozvrh.git
Builds:
- versionName: '1.0'
versionCode: 1
commit: v1.0
subdir: app
gradle:
- yes
- versionName: '1.1'
versionCode: 2
commit: v1.1
subdir: app
gradle:
- yes
- versionName: 1.3.2
versionCode: 6
commit: v1.3.2
subdir: app
gradle:
- yes
scanignore:
- app/build.gradle
- versionName: '1.5'
versionCode: 8
commit: v1.5
subdir: app
gradle:
- yes
- versionName: 1.5.1
versionCode: 9
commit: v1.5.1
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
UpdateCheckIgnore: beta preview
CurrentVersion: 1.5.1
CurrentVersionCode: 9
``` |
cbdcef55-cdea-4b47-988e-f6157c332e00 | {
"language": "YAML"
} | ```yaml
properties:
acceptance_tests:
api: (( concat "https://" meta.api_domain ))
apps_domain: (( grab properties.app_domains[0] ))
system_domain: (( grab properties.system_domain ))
admin_user: "admin"
admin_password: (( grab secrets.uaa_admin_password ))
skip_ssl_validation: false
backend: "diego"
client_secret: (( grab secrets.uaa_clients_gorouter_secret ))
skip_diego_unsupported_tests: true
include_tasks: false
include_v3: false
include_security_groups: true
include_routing: true
skip_regex: 'routing.API|allows\spreviously-blocked\sip|Adding\sa\swildcard\sroute\sto\sa\sdomain|forwards\sapp\smessages\sto\sregistered\ssyslog\sdrains|uses\sa\sbuildpack\sfrom\sa\sgit\surl'
include_internet_dependent: true
include_logging: true
include_operator: true
include_services: true
include_route_services: false
smoke_tests:
api: (( grab meta.api_domain ))
apps_domain: (( grab properties.app_domains[0] ))
user: "admin"
password: (( grab secrets.uaa_admin_password ))
org: "SMOKE_TESTS"
space: "SMOKE_TESTS"
use_existing_org: false
use_existing_space: false
skip_ssl_validation: false
```
Remove workaround to make v3 tests talk https | ```yaml
properties:
acceptance_tests:
api: (( grab meta.api_domain ))
apps_domain: (( grab properties.app_domains[0] ))
system_domain: (( grab properties.system_domain ))
admin_user: "admin"
admin_password: (( grab secrets.uaa_admin_password ))
skip_ssl_validation: false
backend: "diego"
client_secret: (( grab secrets.uaa_clients_gorouter_secret ))
skip_diego_unsupported_tests: true
include_tasks: false
include_v3: false
include_security_groups: true
include_routing: true
skip_regex: 'routing.API|allows\spreviously-blocked\sip|Adding\sa\swildcard\sroute\sto\sa\sdomain|forwards\sapp\smessages\sto\sregistered\ssyslog\sdrains|uses\sa\sbuildpack\sfrom\sa\sgit\surl'
include_internet_dependent: true
include_logging: true
include_operator: true
include_services: true
include_route_services: false
smoke_tests:
api: (( grab meta.api_domain ))
apps_domain: (( grab properties.app_domains[0] ))
user: "admin"
password: (( grab secrets.uaa_admin_password ))
org: "SMOKE_TESTS"
space: "SMOKE_TESTS"
use_existing_org: false
use_existing_space: false
skip_ssl_validation: false
``` |
1d67b883-15be-4cc1-9b75-8572e856edc6 | {
"language": "YAML"
} | ```yaml
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
one:
url: MyString
charity: MyString
expire_time: 2013-01-22
closed:
failed:
max_amount:
winning_address1: MyString
winning_address2: MyString
secret_token: MyString
two:
url: MyString
charity: MyString
expire_time: 2013-01-22
closed:
failed:
max_amount:
winning_address1: MyString
winning_address2: MyString
secret_token: MyString
```
Remove charity string from round fixtures | ```yaml
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
one:
url: MyString
expire_time: 2013-01-22
closed:
failed:
max_amount:
winning_address1: MyString
winning_address2: MyString
secret_token: MyString
two:
url: MyString
expire_time: 2013-01-22
closed:
failed:
max_amount:
winning_address1: MyString
winning_address2: MyString
secret_token: MyString
``` |
f77ea398-182a-4f1b-bd5e-fb7e3911217e | {
"language": "YAML"
} | ```yaml
Categories:
- Science & Education
License: GPL-3.0-or-later
AuthorName: eikek
WebSite: https://docspell.org
SourceCode: https://github.com/docspell/android-client
IssueTracker: https://github.com/docspell/android-client/issues
AutoName: Docspell Share
RepoType: git
Repo: https://github.com/docspell/android-client
Builds:
- versionName: 0.3.0
versionCode: 3
commit: v0.3.0
subdir: app
gradle:
- yes
- versionName: 0.4.0
versionCode: 4
commit: v0.4.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 0.4.0
CurrentVersionCode: 4
```
Update Docspell Share to 0.5.0 (5) | ```yaml
Categories:
- Science & Education
License: GPL-3.0-or-later
AuthorName: eikek
WebSite: https://docspell.org
SourceCode: https://github.com/docspell/android-client
IssueTracker: https://github.com/docspell/android-client/issues
AutoName: Docspell Share
RepoType: git
Repo: https://github.com/docspell/android-client
Builds:
- versionName: 0.3.0
versionCode: 3
commit: v0.3.0
subdir: app
gradle:
- yes
- versionName: 0.4.0
versionCode: 4
commit: v0.4.0
subdir: app
gradle:
- yes
- versionName: 0.5.0
versionCode: 5
commit: v0.5.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 0.5.0
CurrentVersionCode: 5
``` |
9967955f-9237-4a51-989f-405b453ccb55 | {
"language": "YAML"
} | ```yaml
package:
name: openbabel
version: 2.4.1
source:
git_url: https://github.com/mwojcikowski/openbabel.git
git_rev: 2.4.1
patches:
- fix_library_path_search.diff
- fix_data_path.diff
- fix_babel_test_paths.diff
build:
number: 0
detect_binary_files_with_prefix: true
requirements:
build:
- gcc # [linux]
- llvm # [osx]
- cmake
- zlib
- swig
- eigen
- bzip2
- python
- libxml2
- cairo # [linux]
run:
- python
- libgcc # [linux]
- zlib
- libxml2
- cairo # [linux]
test:
imports:
- openbabel
- pybel
commands:
- python run_test.py
- obabel --help
- obabel -:'c1ccccc1' --gen3d -omol2
- obabel -:'c1ccccc1' --gen3d -oinchi
about:
home: http://www.openbabel.org/
license: GPLv2
summary: "A chemical toolbox designed to speak the many languages of chemical data"
```
Switch to zip file instead of git | ```yaml
package:
name: openbabel
version: 2.4.1
source:
fn: openbabel-2-4-1.zip
url: https://github.com/openbabel/openbabel/archive/openbabel-2-4-1.zip
sha1: 6fefb2355601b665bea5840fe8e6f95bd48023c9
patches:
- fix_library_path_search.diff
- fix_data_path.diff
- fix_babel_test_paths.diff
build:
number: 0
detect_binary_files_with_prefix: true
requirements:
build:
- gcc # [linux]
- llvm # [osx]
- cmake
- zlib
- swig
- eigen
- bzip2
- python
- libxml2
- cairo # [linux]
run:
- python
- libgcc # [linux]
- zlib
- libxml2
- cairo # [linux]
test:
imports:
- openbabel
- pybel
commands:
- python run_test.py
- obabel --help
- obabel -:'c1ccccc1' --gen3d -omol2
- obabel -:'c1ccccc1' --gen3d -oinchi
about:
home: http://www.openbabel.org/
license: GPLv2
summary: "A chemical toolbox designed to speak the many languages of chemical data"
``` |
e1ba2255-8ab9-4462-a0ea-eb3391524bd2 | {
"language": "YAML"
} | ```yaml
type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
# The settings of generated code in a specific language.
language_settings:
java:
package_name: com.google.cloud.datastore.admin.v1
python:
package_name: google.cloud.datastore.admin_v1.gapic
go:
package_name: cloud.google.com/go/datastore/admin/apiv1
csharp:
package_name: Google.Datastore.Admin.V1
ruby:
package_name: Google::Cloud::Datastore::Admin::V1
php:
package_name: Google\Cloud\Datastore\Admin\V1
nodejs:
package_name: admin.v1
```
Update python package name for datastore admin gapic client. | ```yaml
type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
# The settings of generated code in a specific language.
language_settings:
java:
package_name: com.google.cloud.datastore.admin.v1
python:
package_name: google.cloud.datastore_admin_v1.gapic
go:
package_name: cloud.google.com/go/datastore/admin/apiv1
csharp:
package_name: Google.Datastore.Admin.V1
ruby:
package_name: Google::Cloud::Datastore::Admin::V1
php:
package_name: Google\Cloud\Datastore\Admin\V1
nodejs:
package_name: admin.v1
``` |
253fb0a7-0dc9-4ce4-b04c-28c0bdba8d85 | {
"language": "YAML"
} | ```yaml
- name: install fluentd
sudo: no
gem: name={{ item }}
executable=/home/{{ ansible_ssh_user }}/.rbenv/versions/{{ ruby_version }}/bin/gem
with_items:
- fluentd
- fluent-plugin-secure-forward
- fluent-plugin-rewrite-tag-filter
- fluent-plugin-record-reformer
- fluent-plugin-record-modifier
- fluent-plugin-forest
- fluent-plugin-rewrite
- name: create log directory
file: path=/var/log/fluent state=directory mode=0777
- name: create conf directory
file: path=/etc/fluent/conf.d state=directory mode=0755 recurse=yes
- name: update fluent.conf
copy: src=fluent.conf dest=/etc/fluent/fluent.conf
notify: restart fluentd
- name: update fluent.conf
copy: src=fluent.conf dest=/etc/fluent/fluent.conf
notify: restart fluentd
- name: daemonize fluentd
copy: src=fluentd.conf dest=/etc/supervisor/conf.d/fluentd.conf
notify: restart fluentd
```
Fix not daemonizing fluentd on first provisioning. | ```yaml
- name: install fluentd
sudo: no
gem: name={{ item }}
executable=/home/{{ ansible_ssh_user }}/.rbenv/versions/{{ ruby_version }}/bin/gem
with_items:
- fluentd
- fluent-plugin-secure-forward
- fluent-plugin-rewrite-tag-filter
- fluent-plugin-record-reformer
- fluent-plugin-record-modifier
- fluent-plugin-forest
- fluent-plugin-rewrite
- name: create log directory
file: path=/var/log/fluent state=directory mode=0777
- name: create conf directory
file: path=/etc/fluent/conf.d state=directory mode=0755 recurse=yes
- name: update fluent.conf
copy: src=fluent.conf dest=/etc/fluent/fluent.conf
notify: restart fluentd
- name: update fluent.conf
copy: src=fluent.conf dest=/etc/fluent/fluent.conf
notify: restart fluentd
- name: update fluentd.conf
copy: src=fluentd.conf dest=/etc/supervisor/conf.d/fluentd.conf
notify: restart fluentd
- name: daemonize fluentd
supervisorctl: name=fluentd state=present
notify: restart fluentd
``` |
11d999f9-6097-4753-be64-c33b792cf1bf | {
"language": "YAML"
} | ```yaml
---
- name: Set hostname
hostname:
name={{ hostname }}
- name: Tell /etc/hosts about the hostname
lineinfile:
dest=/etc/hosts
line="127.0.0.1 localhost {{hostname}}"
state=present
insertbefore=BOF
- name: Install prerequisite packages
apt:
pkg={{ item }}
state=present
with_items:
- python
- python-pip
- python-dev
- python-setuptools
- stunnel
- git
- name: install Buildbot
easy_install:
name: "{{ item }}"
with_items:
- buildbot==0.8.12
- boto
- name: Create buildbot user
user:
name: "rustbuild"
home: "/home/rustbuild"
shell: /bin/bash
createhome: yes
- name: Clone the Buildbot configs
git:
repo='https://github.com/rust-lang/rust-buildbot.git'
dest='/home/rustbuild/rust-buildbot'
accept_hostkey=yes
become: yes
become_user: rustbuild
- name: Start Buildbot
command: buildbot start master
args:
chdir: /home/rustbuild/rust-buildbot
become: yes
become_user: rustbuild
```
Install Buildbot to a virtualenv | ```yaml
---
- name: Set hostname
hostname:
name={{ hostname }}
- name: Tell /etc/hosts about the hostname
lineinfile:
dest=/etc/hosts
line="127.0.0.1 localhost {{hostname}}"
state=present
insertbefore=BOF
- name: Install prerequisite packages
apt:
pkg={{ item }}
state=present
with_items:
- python
- python-pip
- python-dev
- python-setuptools
- python-virtualenv
- stunnel
- git
- name: Clone the Buildbot configs
git:
repo='https://github.com/rust-lang/rust-buildbot.git'
dest='/home/rustbuild/rust-buildbot'
accept_hostkey=yes
become: yes
become_user: rustbuild
- name: Create virtualenv and install packages
pip:
virtualenv=/home/rustbuild/buildmaster-venv
name="{{ item }}"
with_items:
- buildbot==0.8.12
- boto
- name: Create buildbot user
user:
name: "rustbuild"
home: "/home/rustbuild"
shell: /bin/bash
createhome: yes
- name: Start Buildbot
command: /home/rustbuild/buildmaster-venv/bin/buildbot start master
args:
chdir: /home/rustbuild/rust-buildbot
become: yes
become_user: rustbuild
``` |
d3c813ca-15e6-4194-8d76-6a6294d8574a | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/swift-nav/shakers
changelog-type: ''
hash: d9dfe314b79fd8b528191ff70564034ede7e1f9d6ae94038432b7cc5c1185225
test-bench-deps: {}
maintainer: Mark Fine <[email protected]>
synopsis: Shake helpers.
changelog: ''
basic-deps:
shake: -any
base: ==4.8.*
shakers: -any
basic-prelude: -any
directory: -any
all-versions:
- '0.0.0'
- '0.0.2'
- '0.0.3'
- '0.0.4'
- '0.0.5'
- '0.0.6'
- '0.0.7'
- '0.0.8'
- '0.0.9'
- '0.0.10'
- '0.0.11'
- '0.0.12'
- '0.0.13'
- '0.0.14'
- '0.0.15'
- '0.0.16'
author: Swift Navigation Inc.
latest: '0.0.16'
description-type: haddock
description: Primitive helpers for Shake files.
license-name: MIT
```
Update from Hackage at 2017-04-19T20:09:05Z | ```yaml
homepage: https://github.com/swift-nav/shakers
changelog-type: ''
hash: b478b21abd8451de8f4fca3e18e4eec250a0fb38f50f586167a1d0c09e7be0ef
test-bench-deps: {}
maintainer: Mark Fine <[email protected]>
synopsis: Shake helpers.
changelog: ''
basic-deps:
shake: -any
base: ==4.8.*
shakers: -any
basic-prelude: -any
directory: -any
all-versions:
- '0.0.0'
- '0.0.2'
- '0.0.3'
- '0.0.4'
- '0.0.5'
- '0.0.6'
- '0.0.7'
- '0.0.8'
- '0.0.9'
- '0.0.10'
- '0.0.11'
- '0.0.12'
- '0.0.13'
- '0.0.14'
- '0.0.15'
- '0.0.16'
- '0.0.17'
author: Swift Navigation Inc.
latest: '0.0.17'
description-type: haddock
description: Primitive helpers for Shake files.
license-name: MIT
``` |
913f7ed0-31fb-4b35-b799-16a52e6505a3 | {
"language": "YAML"
} | ```yaml
---
- name: "Install Squirrelmail"
apt: "name={{ item }} state=latest"
with_items:
- squirrelmail
- squirrelmail-decode
- squirrelmail-locales
- squirrelmail-viewashtml
- name: Configure Squirrelmail.
template: src=squirrelmail.php.j2 dest=/etc/squirrelmail/config.php owner=root group=root mode=644
```
Make Squirrelmail findable by Apache. | ```yaml
---
- name: "Install Squirrelmail"
apt: "name={{ item }} state=latest"
with_items:
- squirrelmail
- squirrelmail-decode
- squirrelmail-locales
- squirrelmail-viewashtml
- name: Configure Squirrelmail.
template: src=squirrelmail.php.j2 dest=/etc/squirrelmail/config.php owner=root group=root mode=644
- name: Activate the Squirrelmail vhost.
file: src=/etc/squirrelmail/apache.conf path=/etc/apache2/sites-enabled/squirrelmail.conf state=link owner=root group=root
notify: restart apache2
``` |
54f2b7b4-3f0e-424e-99f6-5da469743313 | {
"language": "YAML"
} | ```yaml
homepage: ''
changelog-type: markdown
hash: f4761e3a229ebce7ce20d0c9fd6f3137fadeb4ae51b8d486c75cf42542064c59
test-bench-deps: {}
maintainer: [email protected]
synopsis: Symbol manipulation
changelog: ! '# Revision history for symbols
## 0.2.0.0
* added ToList, ToUpper, ToLower, ReadNat type families
## 0.1.0.0
* First version. Released on an unsuspecting world.
'
basic-deps:
base: ! '>=4.10 && <=5.0'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
author: Csongor Kiss
latest: '0.2.0.0'
description-type: markdown
description: ! '# symbols
Manipulate type-level strings.
Available on [Hackage](https://hackage.haskell.org/package/symbols)
The implementation is described in [this blog post](https://kcsongor.github.io/symbol-parsing-haskell/).'
license-name: BSD3
```
Update from Hackage at 2018-11-29T20:55:22Z | ```yaml
homepage: ''
changelog-type: markdown
hash: 3dd6da172eae327943510aa4f3b70505ec320ae596a5746bef32e36cc97ff464
test-bench-deps: {}
maintainer: [email protected]
synopsis: Symbol manipulation
changelog: ! '# Revision history for symbols
## 0.2.0.0
* added ToList, ToUpper, ToLower, ReadNat type families
## 0.1.0.0
* First version. Released on an unsuspecting world.
'
basic-deps:
base: ! '>=4.10 && <=5.0'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
- '0.2.0.1'
author: Csongor Kiss
latest: '0.2.0.1'
description-type: markdown
description: ! '# symbols
Manipulate type-level strings.
Available on [Hackage](https://hackage.haskell.org/package/symbols)
The implementation is described in [this blog post](https://kcsongor.github.io/symbol-parsing-haskell/).'
license-name: BSD3
``` |
b398fa86-d4d0-408d-8af5-90575de2361d | {
"language": "YAML"
} | ```yaml
#override for your cluster for consul service discovery
zookeeper_service: zookeeper
zookeeper_service_tags: "{{ zookeeper_service }}"
zookeeper_env: dev
zookeeper_ensemble: cluster1
zookeeper_container_name: "{{ zookeeper_service }}-{{ zookeeper_env }}-{{ zookeeper_ensemble }}-zkid{{ zk_id }}"
zookeeper_data_volume: "zookeeperdata-{{ zookeeper_env }}-{{ zookeeper_ensemble }}-zkid{{ zk_id }}"
zookeeper_docker_image: asteris/zookeeper
zookeeper_docker_tag: latest
zookeeper_docker_ports: "-p 2181:2181 -p 2888:2888 -p 3888:3888"
zookeeper_docker_env: "/etc/default/{{ zookeeper_service }}"
```
Clean up zk default vars | ```yaml
#override for your cluster for consul service discovery
zookeeper_service: zookeeper
zookeeper_service_tags: "{{ zookeeper_service }}"
zookeeper_ensemble: cluster1
zookeeper_container_name: "{{ zookeeper_service }}"
zookeeper_data_volume: "{{ zookeeper_service }}-data-volume"
zookeeper_image: asteris/zookeeper
zookeeper_tag: latest
zookeeper_ports: "-p 2181:2181 -p 2888:2888 -p 3888:3888"
zookeeper_env: "/etc/default/{{ zookeeper_service }}"
``` |
0fa01ccd-1a35-4cbd-92bc-5430e8f9aaa6 | {
"language": "YAML"
} | ```yaml
# Unless you are developing Gitorious and really know what you are doing,
# leave the following settings as is.
repository_base_path: "/tmp/git/repositories"
archive_cache_dir: "/tmp/git/tarball-cache"
archive_work_dir: "/tmp/git/tarball-work"
host: gitorious.test
scheme: http
cookie_secret: UpDoquajrecJewyeodMilmiasFicsOke
messaging_adapter: test
git_binary: /usr/bin/git
```
Enable git daemon URLs for tests | ```yaml
# Unless you are developing Gitorious and really know what you are doing,
# leave the following settings as is.
repository_base_path: "/tmp/git/repositories"
archive_cache_dir: "/tmp/git/tarball-cache"
archive_work_dir: "/tmp/git/tarball-work"
host: gitorious.test
scheme: http
cookie_secret: UpDoquajrecJewyeodMilmiasFicsOke
messaging_adapter: test
git_binary: /usr/bin/git
enable_git_daemon: true
``` |
729b8c26-2880-4fee-9653-82f8fdd8b45b | {
"language": "YAML"
} | ```yaml
{% set name = "pytest-celery" %}
{% set version = "0.0.0a1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/pytest-celery-{{ version }}.tar.gz
sha256: 3e0e0817c2d3f2870dafebd915bf13100fc12920b5d42dfe5fdc35844fe42e62
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- flit
- python
run:
- python
test:
imports:
- pytest_celery
about:
home: https://github.com/graingert/pytest-celery
summary: pytest-celery a shim pytest plugin to enable celery.contrib.pytest
license: BSD-3-Clause
license_file: LICENSE
extra:
recipe-maintainers:
- igortg
```
Add test that checks if plugin is found by pytest | ```yaml
{% set name = "pytest-celery" %}
{% set version = "0.0.0a1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/pytest-celery-{{ version }}.tar.gz
sha256: 3e0e0817c2d3f2870dafebd915bf13100fc12920b5d42dfe5fdc35844fe42e62
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- flit
- python
run:
- celery >=4.4.0
- pytest
test:
imports:
- pytest_celery
commands:
- pip check
- "pytest --fixtures | grep 'plugins: celery'"
requires:
- pip
about:
home: https://github.com/graingert/pytest-celery
summary: pytest-celery a shim pytest plugin to enable celery.contrib.pytest
license: BSD-3-Clause
license_file: LICENSE
extra:
recipe-maintainers:
- igortg
``` |
f3cf2bf5-cbf7-441f-a36e-54c66f9983d8 | {
"language": "YAML"
} | ```yaml
kind: Service
apiVersion: v1
metadata:
name: glance
labels:
app: {{ template "name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
component: glance
type: api
{{- if .Values.metrics.enabled }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/targets: {{ required ".Values.alerts.prometheus missing" .Values.alerts.prometheus | quote }}
{{- end }}
spec:
selector:
app: {{ template "name" . }}
type: {{ default "ClusterIP" .Values.services.type | quote }}
ports:
- name: public
port: {{ .Values.api_port_internal }}
targetPort: 9292
{{- if .Values.services.externalip }}
externalIPs: [
{{ .Values.services.externalip | quote }}
]
{{- end }}
```
Revert "[Glance] prevent double scraping of api" | ```yaml
kind: Service
apiVersion: v1
metadata:
name: glance
labels:
app: {{ template "name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
component: glance
type: api
{{- if .Values.metrics.enabled }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "{{.Values.metrics.port}}"
prometheus.io/targets: {{ required ".Values.alerts.prometheus missing" .Values.alerts.prometheus | quote }}
{{- end }}
spec:
selector:
app: {{ template "name" . }}
type: {{ default "ClusterIP" .Values.services.type | quote }}
ports:
- name: public
port: {{ .Values.api_port_internal }}
targetPort: 9292
{{- if .Values.services.externalip }}
externalIPs: [
{{ .Values.services.externalip | quote }}
]
{{- end }}
``` |
9bbc98c4-432f-49ac-8758-1d0da22641a7 | {
"language": "YAML"
} | ```yaml
Categories:
- Theming
License: GPL-3.0-only
WebSite: https://pragma-once.github.io/materialslivewallpaper/app-page.html
SourceCode: https://github.com/Reminimalism/MaterialsLiveWallpaper
IssueTracker: https://github.com/Reminimalism/MaterialsLiveWallpaper/issues
Changelog: https://github.com/Reminimalism/MaterialsLiveWallpaper/releases
Donate: https://www.reminimalism.com/donate
Bitcoin: bc1q6mkgnptxq9nrxr6cmea3qfpf53573zm8q7u5ff
AutoName: Materials Live Wallpaper
RepoType: git
Repo: https://github.com/Reminimalism/MaterialsLiveWallpaper
Builds:
- versionName: '0.4'
versionCode: 4
commit: v0.4
subdir: MaterialsLiveWallpaper/app
gradle:
- yes
- versionName: '0.5'
versionCode: 5
commit: v0.5
subdir: MaterialsLiveWallpaper/app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '0.5'
CurrentVersionCode: 5
```
Update Materials Live Wallpaper to 1.0 (6) | ```yaml
Categories:
- Theming
License: GPL-3.0-only
WebSite: https://pragma-once.github.io/materialslivewallpaper/app-page.html
SourceCode: https://github.com/Reminimalism/MaterialsLiveWallpaper
IssueTracker: https://github.com/Reminimalism/MaterialsLiveWallpaper/issues
Changelog: https://github.com/Reminimalism/MaterialsLiveWallpaper/releases
Donate: https://www.reminimalism.com/donate
Bitcoin: bc1q6mkgnptxq9nrxr6cmea3qfpf53573zm8q7u5ff
AutoName: Materials Live Wallpaper
RepoType: git
Repo: https://github.com/Reminimalism/MaterialsLiveWallpaper
Builds:
- versionName: '0.4'
versionCode: 4
commit: v0.4
subdir: MaterialsLiveWallpaper/app
gradle:
- yes
- versionName: '0.5'
versionCode: 5
commit: v0.5
subdir: MaterialsLiveWallpaper/app
gradle:
- yes
- versionName: '1.0'
versionCode: 6
commit: 12595206697b3add9f6bab9e25300622ce084556
subdir: MaterialsLiveWallpaper/app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '1.0'
CurrentVersionCode: 6
``` |
90a9f989-a368-4dfc-b31f-7461645664f2 | {
"language": "YAML"
} | ```yaml
# Version to install
elastic_version: 6.5.2
elastic_download: https://artifacts.elastic.co
apm_java_version: 1.1.0
# Elastic Cloud credentials
elasticsearch_host: "{{ lookup('env','ELASTICSEARCH_HOST') }}"
elasticsearch_user: "{{ lookup('env','ELASTICSEARCH_USER') }}"
elasticsearch_password: "{{ lookup('env','ELASTICSEARCH_PASSWORD') }}"
kibana_host: "{{ lookup('env','KIBANA_HOST') }}"
kibana_id: "{{ lookup('env','KIBANA_ID') }}"
# Setup of the infrastructure
env: production
domain: xeraa.wtf
backend_server: https://backend.{{ domain }}
frontend_server: https://frontend.{{ domain }}
apm_server: "{{ lookup('env','APM_HOST') }}"
apm_secret: "{{ lookup('env','APM_TOKEN') }}"
# MySQL config
mysql_server: backend.{{ domain }}
mysql_user: "{{ lookup('env','ELASTICSEARCH_USER') }}"
mysql_password: "{{ lookup('env','ELASTICSEARCH_PASSWORD') }}"
mysql_database: person
# Credentials for Kibana dashboard-only mode
attendee_user: dashboard
attendee_password: secret
```
CHANGE to the latest release of the stack | ```yaml
# Version to install
elastic_version: 6.6.0
elastic_download: https://artifacts.elastic.co
apm_java_version: 1.3.0
# Elastic Cloud credentials
elasticsearch_host: "{{ lookup('env','ELASTICSEARCH_HOST') }}"
elasticsearch_user: "{{ lookup('env','ELASTICSEARCH_USER') }}"
elasticsearch_password: "{{ lookup('env','ELASTICSEARCH_PASSWORD') }}"
kibana_host: "{{ lookup('env','KIBANA_HOST') }}"
kibana_id: "{{ lookup('env','KIBANA_ID') }}"
# Setup of the infrastructure
env: production
domain: xeraa.wtf
backend_server: https://backend.{{ domain }}
frontend_server: https://frontend.{{ domain }}
apm_server: "{{ lookup('env','APM_HOST') }}"
apm_secret: "{{ lookup('env','APM_TOKEN') }}"
# MySQL config
mysql_server: backend.{{ domain }}
mysql_user: "{{ lookup('env','ELASTICSEARCH_USER') }}"
mysql_password: "{{ lookup('env','ELASTICSEARCH_PASSWORD') }}"
mysql_database: person
# Credentials for Kibana dashboard-only mode
attendee_user: dashboard
attendee_password: secret
``` |
18e7c3e9-9e55-408d-8dc9-b0d35fe7106e | {
"language": "YAML"
} | ```yaml
---
- name: Rebuild mkinitcpio
become: yes
command: mkinitcpio
```
Make mkinitcpio build linux preset | ```yaml
---
- name: Rebuild mkinitcpio
become: yes
command: mkinitcpio -p linux
``` |
add177b6-8551-4837-bc17-48badf0470dc | {
"language": "YAML"
} | ```yaml
---
- name: Install PostgreSQL on {{ ansible_distribution }}-{{ ansible_distribution_major_version }}
include: roles/postgresql/tasks/postgresql_{{ ansible_pkg_mgr }}{{ ansible_distribution_major_version }}.yml
tags: [db, postgresql]
when: ansible_os_family == "RedHat"
- name: Install PostgreSQL on {{ ansible_distribution }}-{{ ansible_distribution_major_version }}
include: roles/postgresql/tasks/postgresql_{{ ansible_pkg_mgr }}.yml
tags: [db, postgresql]
when: ansible_os_family == "Debian"
```
Fix postgresql task include when using as galaxy dependency | ```yaml
---
- name: Install PostgreSQL on {{ ansible_distribution }}-{{ ansible_distribution_major_version }}
include: postgresql_{{ ansible_pkg_mgr }}{{ ansible_distribution_major_version }}.yml
tags: [db, postgresql]
when: ansible_os_family == "RedHat"
- name: Install PostgreSQL on {{ ansible_distribution }}-{{ ansible_distribution_major_version }}
include: postgresql_{{ ansible_pkg_mgr }}.yml
tags: [db, postgresql]
when: ansible_os_family == "Debian"
``` |
228c92f9-f58c-48f6-88d8-d6c3d135bf8c | {
"language": "YAML"
} | ```yaml
register: registration-district
text: |
Registration districts in England and Wales which exist for the
purpose of civil registration of births, marriages, and deaths
and civil partnerships. Registration district data is maintained by
the General Register Office of HM Passport Office.
registry: hm-passport-office
fields:
- registration-district
- name
- start-date
- end-date
```
Add boundary to registration district | ```yaml
register: registration-district
text: |
Registration districts in England and Wales which exist for the
purpose of civil registration of births, marriages, and deaths
and civil partnerships. Registration district data is maintained by
the General Register Office of HM Passport Office.
registry: hm-passport-office
fields:
- registration-district
- name
- start-date
- end-date
- boundary
``` |
6279c9f7-c99c-48ea-95bd-f3104effa85f | {
"language": "YAML"
} | ```yaml
---
## If you edit this file, you need to make sure that the webserver is restarted.
:backends:
- eyaml
- yaml
- module_data
:hierarchy:
- "%{clientcert}"
- "%{asf_osname}/%{asf_osrelease}"
- "colo/%{asf_colo}"
- "%{environment}"
- "common"
:yaml:
:datadir: '/etc/puppet/data'
:eyaml:
:datadir: '/etc/puppet/data'
```
Add comment explaining the custom facter vars | ```yaml
---
## If you edit this file, you need to make sure that the webserver is restarted.
:backends:
- eyaml
- yaml
- module_data
# The ASF specific variables below are created in facter with customfact module.
:hierarchy:
- "%{clientcert}"
- "%{asf_osname}/%{asf_osrelease}"
- "colo/%{asf_colo}"
- "%{environment}"
- "common"
:yaml:
:datadir: '/etc/puppet/data'
:eyaml:
:datadir: '/etc/puppet/data'
``` |
ce6a2763-e0e9-4719-b535-a4a27e58a415 | {
"language": "YAML"
} | ```yaml
# See https://github.com/laminas/laminas-continuous-integration-action
# Generates a job matrix based on current dependencies and supported version
# ranges, then runs all those jobs
name: "Continuous Integration"
on:
pull_request:
push:
jobs:
matrix:
name: Generate job matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/[email protected]
qa:
name: QA Checks
needs: [ matrix ]
runs-on: ${{ matrix.operatingSystem }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
uses: laminas/[email protected]
env:
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
with:
job: ${{ matrix.job }}
```
Update laminas/laminas-ci-matrix-action action to v1.20.0 | ```yaml
# See https://github.com/laminas/laminas-continuous-integration-action
# Generates a job matrix based on current dependencies and supported version
# ranges, then runs all those jobs
name: "Continuous Integration"
on:
pull_request:
push:
jobs:
matrix:
name: Generate job matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/[email protected]
qa:
name: QA Checks
needs: [ matrix ]
runs-on: ${{ matrix.operatingSystem }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
uses: laminas/[email protected]
env:
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
with:
job: ${{ matrix.job }}
``` |
abad1a57-532d-4338-8d18-253fac64d6c1 | {
"language": "YAML"
} | ```yaml
{% set name = "treematching" %}
{% set version = "0.1.20210513" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
git_url: https://github.com/LionelAuroux/treematching
git_tag: 5ebc2474d8720d87569cf414bd0275010edf8f19
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
host:
- pip
- python
run:
- python
test:
imports:
- treematching
about:
home: https://github.com/LionelAuroux/treematching
license: GPL-2.0-Only
license_family: GPL
license_file: LICENSE
summary: "The module treematching allow you to write patterns to match subtrees in any trees of python objects."
dev_url: https://github.com/LionelAuroux/treematching
extra:
recipe-maintainers:
- psortos
- oblute
```
Include tarball for commit git_tag | ```yaml
{% set name = "treematching" %}
{% set version = "0.1.20210513" %}
{% set git_tag = "5ebc2474d8720d87569cf414bd0275010edf8f19" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
url: https://github.com/LionelAuroux/{{ name }}/archive/{{ git_tag }}.tar.gz
sha256: 6fe70e13b8889811332309bc405185c4e885df3278c80f54551e6af8ffdda2f1
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
requirements:
host:
- pip
- python
run:
- python
test:
imports:
- treematching
requires:
- pip
commands:
- pip check
about:
home: https://github.com/LionelAuroux/treematching
license: GPL-2.0-Only
license_family: GPL
license_file: LICENSE
summary: "The module treematching allow you to write patterns to match subtrees in any trees of python objects."
dev_url: https://github.com/LionelAuroux/treematching
extra:
recipe-maintainers:
- psortos
- oblute
``` |
60569c45-2f6e-4530-bf9d-40f9696361cc | {
"language": "YAML"
} | ```yaml
---
- name: update pkgfile db
command: pkgfile -u
- name: install pkgfile cron
cron: name="Update pkgfile database" job="pkgfile -u" hour=0 state=present
```
Move pkgfile update from 00:00 to 01:00 | ```yaml
---
- name: update pkgfile db
command: pkgfile -u
- name: install pkgfile cron
cron: name="Update pkgfile database" job="pkgfile -u" hour=1 state=present
``` |
aa112a4f-faec-45ac-a645-a875fa724480 | {
"language": "YAML"
} | ```yaml
heat_template_version: 2016-04-08
description: >
OpenStack Ceilometer Collector service configured with Puppet
parameters:
ServiceNetMap:
default: {}
description: Mapping of service_name -> network name. Typically set
via parameter_defaults in the resource registry. This
mapping overrides those in ServiceNetMapDefaults.
type: json
DefaultPasswords:
default: {}
type: json
EndpointMap:
default: {}
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
MonitoringSubscriptionCeilometerCollector:
default: 'overcloud-ceilometer-collector'
type: string
resources:
CeilometerServiceBase:
type: ./ceilometer-base.yaml
properties:
ServiceNetMap: {get_param: ServiceNetMap}
DefaultPasswords: {get_param: DefaultPasswords}
EndpointMap: {get_param: EndpointMap}
outputs:
role_data:
description: Role data for the Ceilometer Collector role.
value:
service_name: ceilometer_collector
monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerCollector}
config_settings:
get_attr: [CeilometerServiceBase, role_data, config_settings]
step_config: |
include ::tripleo::profile::base::ceilometer::collector
```
Add mongo config settings in collector service templates | ```yaml
heat_template_version: 2016-04-08
description: >
OpenStack Ceilometer Collector service configured with Puppet
parameters:
ServiceNetMap:
default: {}
description: Mapping of service_name -> network name. Typically set
via parameter_defaults in the resource registry. This
mapping overrides those in ServiceNetMapDefaults.
type: json
DefaultPasswords:
default: {}
type: json
EndpointMap:
default: {}
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
MonitoringSubscriptionCeilometerCollector:
default: 'overcloud-ceilometer-collector'
type: string
resources:
CeilometerServiceBase:
type: ./ceilometer-base.yaml
properties:
ServiceNetMap: {get_param: ServiceNetMap}
DefaultPasswords: {get_param: DefaultPasswords}
EndpointMap: {get_param: EndpointMap}
MongoDbBase:
type: ./database/mongodb-base.yaml
properties:
ServiceNetMap: {get_param: ServiceNetMap}
DefaultPasswords: {get_param: DefaultPasswords}
EndpointMap: {get_param: EndpointMap}
outputs:
role_data:
description: Role data for the Ceilometer Collector role.
value:
service_name: ceilometer_collector
monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerCollector}
config_settings:
map_merge:
- get_attr: [MongoDbBase, role_data, config_settings]
- get_attr: [CeilometerServiceBase, role_data, config_settings]
step_config: |
include ::tripleo::profile::base::ceilometer::collector
``` |
46dfaf3a-0e65-48d0-9856-bde93d02d5e2 | {
"language": "YAML"
} | ```yaml
{% set version = "0.0.5.6" %}
package:
name: channelarchiver
version: {{ version }}
source:
url: https://github.com/NSLS-II/channelarchiver/archive/{{ version }}.tar.gz
fn: channelarchiver-v{{ version }}
sha256: 7ece29c320ee663be2c4674f05e0ca75aebfaed66767a5f6bd57200df2906b9a7ece29c320ee663be2c4674f05e0ca75aebfaed66767a5f6bd57200df2906b9a
build:
number: 1
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- tzlocal
run:
- matplotlib
- numpy
- python
- tzlocal
test:
imports:
- channelarchiver
about:
home: https://github.com/NSLS-II/channelarchiver
license: MIT
```
Fix channelarchiver recipe (sha mismatch + bad url) | ```yaml
{% set version = "0.0.5.6" %}
package:
name: channelarchiver
version: {{ version }}
source:
url: https://github.com/NSLS-II/channelarchiver/archive/v{{ version }}.tar.gz
fn: channelarchiver-v{{ version }}.tar.gz
sha256: 7ece29c320ee663be2c4674f05e0ca75aebfaed66767a5f6bd57200df2906b9a
build:
number: 1
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- tzlocal
run:
- matplotlib
- numpy
- python
- tzlocal
test:
imports:
- channelarchiver
about:
home: https://github.com/NSLS-II/channelarchiver
license: MIT
``` |
242777c3-ad57-4515-a0ec-df2dbdba11a8 | {
"language": "YAML"
} | ```yaml
{% set name = "mikeio" %}
{% set version = "0.6.0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 0eda011a42863e998df55ae7b9e324b3c470f2d5ce6f56feb2d2ae082492eff8
build:
skip: true # [not win or py<36]
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
requirements:
host:
- python
- pip
run:
- python
- pythonnet
- numpy
- pandas
- scipy
- pyyaml
- shapely
- xarray
- matplotlib-base
test:
imports:
- mikeio
requires:
- pytest
source_files:
- tests
commands:
- pytest -v tests
about:
home: https://github.com/DHI/mikeio
license: BSD-3-Clause
license_family: BSD
license_file: License.txt
summary: "API for the DHI MIKE file types"
description: "Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files. Read res1d and xns11 files."
dev_url: https://github.com/DHI
extra:
recipe-maintainers:
- ecomodeller
- georgebv
```
Remove running test suite for now | ```yaml
{% set name = "mikeio" %}
{% set version = "0.6.0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 0eda011a42863e998df55ae7b9e324b3c470f2d5ce6f56feb2d2ae082492eff8
build:
skip: true # [not win or py<36]
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
requirements:
host:
- python
- pip
run:
- python
- pythonnet
- numpy
- pandas
- scipy
- pyyaml
- shapely
- xarray
- matplotlib-base
test:
imports:
- mikeio
about:
home: https://github.com/DHI/mikeio
license: BSD-3-Clause
license_family: BSD
license_file: License.txt
summary: "API for the DHI MIKE file types"
description: "Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files. Read res1d and xns11 files."
dev_url: https://github.com/DHI
extra:
recipe-maintainers:
- ecomodeller
- georgebv
``` |
0910f784-4e2e-423a-8ed3-655b7294aa85 | {
"language": "YAML"
} | ```yaml
{% set name = "mscxyz" %}
{% set version = "1.2.0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 5b9c01bdd2461cb99dd0cc73f8edaf3025d3063b4e6d0f0c66b5eb46c8078695
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
requirements:
host:
- pip
- python
run:
- lxml
- python
- termcolor
- tmep >=2.0.1
test:
imports:
- mscxyz
commands:
- pip check
requires:
- pip
about:
home: https://github.com/Josef-Friedrich/mscxyz
license: MIT
license_family: MIT
license_file: LICENSE
summary: 'A command line tool to manipulate the XML based *.mscX and *.mscZ files of the notation software MuseScore.'
description: |
Manipulate the XML based mscx files of the notation software MuseScore.
doc_url: https://mscxyz.readthedocs.io/
dev_url: https://github.com/Josef-Friedrich/mscxyz
extra:
recipe-maintainers:
- thewchan
```
Add extra commands to test | ```yaml
{% set name = "mscxyz" %}
{% set version = "1.2.0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 5b9c01bdd2461cb99dd0cc73f8edaf3025d3063b4e6d0f0c66b5eb46c8078695
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
requirements:
host:
- pip
- python
run:
- lxml
- python
- termcolor
- tmep >=2.0.1
test:
imports:
- mscxyz
commands:
- pip check
- mscx-manager -h
requires:
- pip
about:
home: https://github.com/Josef-Friedrich/mscxyz
license: MIT
license_family: MIT
license_file: LICENSE
summary: 'A command line tool to manipulate the XML based *.mscX and *.mscZ files of the notation software MuseScore.'
description: |
Manipulate the XML based mscx files of the notation software MuseScore.
doc_url: https://mscxyz.readthedocs.io/
dev_url: https://github.com/Josef-Friedrich/mscxyz
extra:
recipe-maintainers:
- thewchan
``` |
d1a099aa-5efe-45d9-a7de-f66d1a542fda | {
"language": "YAML"
} | ```yaml
{% set name = "mudata" %}
{% set version = "0.1.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/mudata-{{ version }}.tar.gz
sha256: 8f4e695ed8e7787c3928c8726049a4a3f2e9e07d8ca57ade0e08ee790b673e9b
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- flit-core
- pip
- python >=3.6
run:
- anndata <0.8
- h5py
- numpy
- pandas
- python >=3.6
test:
imports:
- mudata
commands:
- pip check
requires:
- pip
about:
home: https://github.com/pmbio/mudata
summary: Multimodal omics analysis framework
license: BSD-3-Clause
license_file: LICENSE
extra:
recipe-maintainers:
- gtca
```
Add an explicit xlrd dependency | ```yaml
{% set name = "mudata" %}
{% set version = "0.1.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/mudata-{{ version }}.tar.gz
sha256: 8f4e695ed8e7787c3928c8726049a4a3f2e9e07d8ca57ade0e08ee790b673e9b
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- flit-core
- pip
- python >=3.6
run:
- anndata <0.8
- xlrd
- h5py
- numpy
- pandas
- python >=3.6
test:
imports:
- mudata
commands:
- pip check
requires:
- pip
about:
home: https://github.com/pmbio/mudata
summary: Multimodal omics analysis framework
license: BSD-3-Clause
license_file: LICENSE
extra:
recipe-maintainers:
- gtca
``` |
c62f4dee-3728-46cf-9399-0b5756984495 | {
"language": "YAML"
} | ```yaml
site_name: igenstrings
site_url: https://readthedocs.org/projects/igenstrings/?version=latest
site_description: Enhance the genstrings command by adding merging capabilities
repo_url: https://github.com/dulaccc/igenstrings
pages:
- Home: 'index.md'
- Installation: 'installation.md'
- Usage: 'usage.md'
```
Use the read the doc theme | ```yaml
site_name: igenstrings
site_url: https://readthedocs.org/projects/igenstrings/?version=latest
site_description: Enhance the genstrings command by adding merging capabilities
repo_url: https://github.com/dulaccc/igenstrings
theme: readthedocs
pages:
- Home: 'index.md'
- Installation: 'installation.md'
- Usage: 'usage.md'
``` |
4bf69446-af86-407c-b72f-6f437af46bb3 | {
"language": "YAML"
} | ```yaml
presubmits:
GoogleCloudPlatform/testgrid:
- name: test-testgrid-all
branches:
- ^master$
decorate: true
always_run: true
spec:
containers:
- image: launcher.gcr.io/google/bazel:2.0.0
command:
- bazel
args:
- test
- //...
```
Use image to choose bazel version in testgrid repo | ```yaml
presubmits:
GoogleCloudPlatform/testgrid:
- name: test-testgrid-all
branches:
- ^master$
decorate: true
always_run: true
spec:
containers:
- image: launcher.gcr.io/google/bazel:2.1.0
env:
- name: USE_BAZEL_VERSION
value: real # Ignore .bazelversion in CI
command:
- bazel
args:
- test
- //...
``` |
8910bf1c-df6b-4cfb-8b6f-fbb70b1dbd75 | {
"language": "YAML"
} | ```yaml
homepage: ''
changelog-type: ''
hash: c933364c4e8a19678cc6a9684f80e89b27f23d5eb5bd93ab3a95c3476f02920c
test-bench-deps:
bytestring: ==0.10.6.0
base: ! '>=4 && <5'
hspec: ! '>=2 && <3'
mulang: -any
haskell-src: ! '>=1 && <1.1'
aeson: ==0.8.1.1
maintainer: [email protected]
synopsis: The Mu Language, a non-computable extended Lambda Calculus
changelog: ''
basic-deps:
bytestring: ==0.10.6.0
base: ==4.6.*
haskell-src: ! '>=1 && <1.1'
aeson: ==0.8.1.1
all-versions:
- '0.1.0.0'
author: Franco Leonardo Bulgarelli
latest: '0.1.0.0'
description-type: haddock
description: ''
license-name: MIT
```
Update from Hackage at 2017-12-27T15:44:10Z | ```yaml
homepage: ''
changelog-type: ''
hash: 9a90bf57e61a3c100b599991a01fb56a1dd26edbcd54b3083e9d900175928607
test-bench-deps:
bytestring: -any
base: <=5
hspec: -any
text: -any
mulang: -any
aeson: -any
neat-interpolation: -any
maintainer: [email protected]
synopsis: An intermediate language designed to perform advanced code analysis
changelog: ''
basic-deps:
bytestring: -any
split: -any
base: <=5
ParsecTools: -any
unordered-containers: -any
text: -any
process: -any
parsec: -any
containers: -any
inflections: -any
language-javascript: -any
mulang: -any
hashable: -any
haskell-src: -any
scientific: -any
language-java: -any
aeson: -any
vector: -any
neat-interpolation: -any
all-versions:
- '0.1.0.0'
- '3.5.2'
author: Franco Leonardo Bulgarelli
latest: '3.5.2'
description-type: haddock
description: Mulang is an intermediate language, a combinators library for static
code analysis and a multilanguage comand line tool
license-name: GPL
``` |
4b570872-47e7-4b0d-ad8b-49be5c09491c | {
"language": "YAML"
} | ```yaml
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: ":memory:"
timeout: 500
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000
```
Switch to out of memory db: | ```yaml
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: db/test.sqlite3
timeout: 500
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000
``` |
356e775b-b665-4a21-85fe-1294778869be | {
"language": "YAML"
} | ```yaml
on: pull_request
name: Validate release notes
jobs:
validateReleaseNotes:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: DEBUG labels
env:
LABELS: ${{ join(github.event.pull_request.labels.*.name) }}
run: "echo \"LABELS = $LABELS\"; echo\ "CONTAINS_DEPENDENCIES = $CONTAINS_DEPENDENCIES\""
- name: Extract release notes
uses: lee-dohm/extract-release-notes@master
if: "! contains(join(github.event.pull_request.labels.*.name), 'dependencies')"
```
Remove echo of overly-complex environment variable | ```yaml
on: pull_request
name: Validate release notes
jobs:
validateReleaseNotes:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: DEBUG labels
env:
LABELS: ${{ join(github.event.pull_request.labels.*.name) }}
run: echo "LABELS = $LABELS"
- name: Extract release notes
uses: lee-dohm/extract-release-notes@master
if: "! contains(join(github.event.pull_request.labels.*.name), 'dependencies')"
``` |
0d9a0eb9-817f-4e84-a8f6-a307369a3d40 | {
"language": "YAML"
} | ```yaml
imports:
- { resource: config.yml }
#framework:
# validation:
# cache: validator.mapping.cache.apc
# serializer:
# cache: serializer.mapping.cache.apc
#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: "php://stderr"
level: debug
console:
type: console
```
Add vars for prod env from cli envs | ```yaml
imports:
- { resource: config.yml }
parameters:
mailer_host: %mailer.host%
mailer_port: %mailer.port%
mailer_encryption: %mailer.encryption%
mailer_user: %mailer.user%
mailer_password: %mailer.password%
#framework:
# validation:
# cache: validator.mapping.cache.apc
# serializer:
# cache: serializer.mapping.cache.apc
#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: "php://stderr"
level: debug
console:
type: console
``` |
a19864da-c2c0-4932-860f-9d0d271d8bab | {
"language": "YAML"
} | ```yaml
imports:
- { resource: config.yml }
framework:
test: ~
session:
storage_id: session.storage.filesystem
profiler:
collect: false
web_profiler:
toolbar: false
intercept_redirects: false
swiftmailer:
disable_delivery: true
# Doctrine TEST Configuration
doctrine:
dbal:
driver: "%database_driver_test%"
host: "%database_host_test%"
port: "%database_port_test%"
dbname: "%database_name_test%"
user: "%database_user_test%"
password: "%database_password_test%"
charset: UTF8
security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext
providers:
in_memory:
memory:
users:
admin:
password: sportiu
roles: 'ROLE_ADMIN'
firewalls:
test:
http_basic: ~
access_control:
- { path: ^/install, roles: ROLE_ADMIN }
```
Fix tests http authentication 2 | ```yaml
imports:
- { resource: config.yml }
framework:
test: ~
session:
storage_id: session.storage.filesystem
profiler:
collect: false
web_profiler:
toolbar: false
intercept_redirects: false
swiftmailer:
disable_delivery: true
# Doctrine TEST Configuration
doctrine:
dbal:
driver: "%database_driver_test%"
host: "%database_host_test%"
port: "%database_port_test%"
dbname: "%database_name_test%"
user: "%database_user_test%"
password: "%database_password_test%"
charset: UTF8
security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext
providers:
in_memory:
memory:
users:
admin:
password: sportiu
roles: 'ROLE_ADMIN'
firewalls:
test:
pattern: ^/
anonymous: ~
http_basic: ~
access_control:
- { path: ^/install, roles: ROLE_ADMIN }
``` |
aeed49e0-f05c-4aae-80c6-1b10bf233d4d | {
"language": "YAML"
} | ```yaml
name: Tests
on: [push]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4', '8.0']
name: Testing on PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring,bcmath
tools: composer
- name: Install PHP dependencies
run: composer install -q
- name: Run phpunit
run: vendor/bin/phpunit
- name: Run phpstan
run: composer require --dev illuminate/support && vendor/bin/phpstan analyze --no-progress --autoload-file=tests/phpstan/bootstrap.php --level=5 src/
```
Add PHP 8.1 to testing workflow | ```yaml
name: Tests
on: [push]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4', '8.0', '8.1']
name: Testing on PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring,bcmath
tools: composer
- name: Install PHP dependencies
run: composer install -q
- name: Run phpunit
run: vendor/bin/phpunit
- name: Run phpstan
run: composer require --dev illuminate/support && vendor/bin/phpstan analyze --no-progress --autoload-file=tests/phpstan/bootstrap.php --level=5 src/
``` |
fc10f230-b18d-4f60-bebb-45423e269d0a | {
"language": "YAML"
} | ```yaml
name: Run tests
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:9.6
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "kaka"
POSTGRES_DB: test_karspexet
ports:
- 5432:5432/tcp
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install Poetry
run: |
pip install --upgrade pip setuptools wheel poetry
poetry install
- name: Copy sample config
run: cp env.json{.sample,} || /bin/true
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
env:
DATABASE_URL: "postgresql://postgres:kaka@localhost/test_karspexet"
run: poetry run pytest
```
Fix Yaml error in Python version | ```yaml
name: Run tests
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:9.6
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "kaka"
POSTGRES_DB: test_karspexet
ports:
- 5432:5432/tcp
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Poetry
run: |
pip install --upgrade pip setuptools wheel poetry
poetry install
- name: Copy sample config
run: cp env.json{.sample,} || /bin/true
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
env:
DATABASE_URL: "postgresql://postgres:kaka@localhost/test_karspexet"
run: poetry run pytest
``` |
d539bed4-7286-4d39-b2db-d7d933c090a1 | {
"language": "YAML"
} | ```yaml
name: "tests"
on:
push:
jobs:
packaging:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-build nix/release.nix
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --command tests/lint.sh
spell:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --command tests/spell.sh
```
Switch to latest stable nixos release | ```yaml
name: "tests"
on:
push:
jobs:
packaging:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
- run: nix-build nix/release.nix
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
- run: nix-shell --command tests/lint.sh
spell:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
- run: nix-shell --command tests/spell.sh
``` |
50b2fb0c-a392-42ec-821c-216c9bc246a7 | {
"language": "YAML"
} | ```yaml
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:3.4.10
ports:
- 27017:27017
if: "!contains(github.event.head_commit.message, '[skip tests]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- run: npm run test -- --watch=false --progress=false --browsers=ChromeHeadless
- run: npm run testbe```
Update mongodb used in test ci | ```yaml
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:5.0.5
ports:
- 27017:27017
if: "!contains(github.event.head_commit.message, '[skip tests]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- run: npm run test -- --watch=false --progress=false --browsers=ChromeHeadless
- run: npm run testbe``` |
240bb28c-074d-4157-8a7e-46b4c7c09d83 | {
"language": "YAML"
} | ```yaml
name: Tests
on: [pull_request]
jobs:
phpunit:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
- name: PHP Unit tests
run: vendor/bin/phpunit --verbose
```
Bump shivammathur/setup-php from 2.11.0 to 2.12.0 | ```yaml
name: Tests
on: [pull_request]
jobs:
phpunit:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
- name: PHP Unit tests
run: vendor/bin/phpunit --verbose
``` |
18754656-8768-4ff7-8448-4888d5f08030 | {
"language": "YAML"
} | ```yaml
steps:
- script: |
# Fix Git SSL errors
git submodule sync && git submodule update --init --recursive
pipenv run pytest --junitxml=test-results.xml
displayName: Run integration tests
env:
PYTHONWARNINGS: 'ignore:DEPRECATION'
PY_EXE: $(PY_EXE)
GIT_SSL_CAINFO: $(GIT_SSL_CAINFO)
LANG: $(LANG)
PIP_PROCESS_DEPENDENCY_LINKS: $(PIP_PROCESS_DEPENDENCY_LINKS)
PIPENV_DEFAULT_PYTHON_VERSION: $(PIPENV_DEFAULT_PYTHON_VERSION)
PYTHONWARNINGS: ignore:DEPRECATION
PIPENV_NOSPIN: '1'
```
Drop duplicate python warnings argument in azure template | ```yaml
steps:
- script: |
# Fix Git SSL errors
git submodule sync && git submodule update --init --recursive
pipenv run pytest --junitxml=test-results.xml
displayName: Run integration tests
env:
PY_EXE: $(PY_EXE)
GIT_SSL_CAINFO: $(GIT_SSL_CAINFO)
LANG: $(LANG)
PIP_PROCESS_DEPENDENCY_LINKS: $(PIP_PROCESS_DEPENDENCY_LINKS)
PIPENV_DEFAULT_PYTHON_VERSION: $(PIPENV_DEFAULT_PYTHON_VERSION)
PYTHONWARNINGS: ignore:DEPRECATION
PIPENV_NOSPIN: '1'
``` |
c1791863-b8cc-4b53-9d4b-0cb4b0e3d54e | {
"language": "YAML"
} | ```yaml
---
name: fail-type-float-1
desc: Test simples float value
data: "abc"
schema:
type: float
errors:
- "Value 'abc' is not of type 'float'. Path: ''"
---
name: fail-type-float-2
desc: Test wrong type as value in list
data:
- "foo"
- True
schema:
type: seq
seq:
- type: float
errors:
- "Value 'foo' is not of type 'float'. Path: '/0'"
errors:
- "Value 'True' is not of type 'float'. Path: '/1'"
- "Value 'foo' is not of type 'float'. Path: '/0'"
---
name: fail-type-float-3
desc: Test float value in mapping
data:
foo: "abc"
bar: True
schema:
type: map
mapping:
foo:
type: float
bar:
type: float
errors:
- "Value 'True' is not of type 'float'. Path: '/bar'"
- "Value 'abc' is not of type 'float'. Path: '/foo'"
---
name: fail-type-float-4
desc: Test float inside nested map & seq
data:
foo:
- True
- "abc"
schema:
type: map
mapping:
foo:
type: seq
sequence:
- type: float
errors:
- "Value 'True' is not of type 'float'. Path: '/foo/0'"
- "Value 'abc' is not of type 'float'. Path: '/foo/1'"
```
Fix broken test where errors data was wrong and duplicated | ```yaml
---
name: fail-type-float-1
desc: Test simples float value
data: "abc"
schema:
type: float
errors:
- "Value 'abc' is not of type 'float'. Path: ''"
---
name: fail-type-float-2
desc: Test wrong type as value in list
data:
- "foo"
- True
schema:
type: seq
seq:
- type: float
errors:
- "Value 'True' is not of type 'float'. Path: '/1'"
- "Value 'foo' is not of type 'float'. Path: '/0'"
---
name: fail-type-float-3
desc: Test float value in mapping
data:
foo: "abc"
bar: True
schema:
type: map
mapping:
foo:
type: float
bar:
type: float
errors:
- "Value 'True' is not of type 'float'. Path: '/bar'"
- "Value 'abc' is not of type 'float'. Path: '/foo'"
---
name: fail-type-float-4
desc: Test float inside nested map & seq
data:
foo:
- True
- "abc"
schema:
type: map
mapping:
foo:
type: seq
sequence:
- type: float
errors:
- "Value 'True' is not of type 'float'. Path: '/foo/0'"
- "Value 'abc' is not of type 'float'. Path: '/foo/1'"
``` |
163085e8-a915-446e-bb49-78d2bc6b5bf8 | {
"language": "YAML"
} | ```yaml
---
galaxy_info:
author: Tyler Cross
description: Scheduled starting and stopping of EC2 instances with cron jobs.
license: MIT
min_ansible_version: 1.2
platforms:
- name: Amazon
versions:
- all
- name: CentOS
versions:
- all
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
categories:
- cloud
- 'cloud:ec2'
dependencies: []
```
Remove cloud category since this is for EC2 | ```yaml
---
galaxy_info:
author: Tyler Cross
description: Scheduled starting and stopping of EC2 instances with cron jobs.
license: MIT
min_ansible_version: 1.2
platforms:
- name: Amazon
versions:
- all
- name: CentOS
versions:
- all
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
categories: [ 'cloud:ec2' ]
dependencies: []
``` |
45d1c7b3-7b78-4ac6-86a0-132688360dbe | {
"language": "YAML"
} | ```yaml
---
galaxy_info:
author: kosssi
description: Configure gitconfig and your gitignore global.
license: license MIT
min_ansible_version: 1.4
platforms:
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
categories:
- development
- system
- packaging
```
Add dependencies key in metadata | ```yaml
---
galaxy_info:
author: kosssi
description: Configure gitconfig and your gitignore global.
license: license MIT
min_ansible_version: 1.4
platforms:
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
categories:
- development
- system
- packaging
dependencies: []
``` |
61e1e500-d508-4c09-b785-cc255c14a6fa | {
"language": "YAML"
} | ```yaml
# Allow compute credits usage for collaborators and anything pushed to the
# master, staging, and trying branches. (So bors can use them.)
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' || $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying'
lint_task:
container:
image: python:3.7-slim
install_script:
- pip install pylint
script:
- pylint --version
- pylint test
test_task:
container:
image: python:3.7-slim
install_script:
- "apt-get update && apt-get install -y clang make"
- pip install pytest
script:
- make test
```
Install pytest in lint task. | ```yaml
# Allow compute credits usage for collaborators and anything pushed to the
# master, staging, and trying branches. (So bors can use them.)
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' || $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying'
lint_task:
container:
image: python:3.7-slim
install_script:
- pip install pylint pytest
script:
- pylint --version
- pylint test
test_task:
container:
image: python:3.7-slim
install_script:
- "apt-get update && apt-get install -y clang make"
- pip install pytest
script:
- make test
``` |