doc_id
stringlengths 36
36
| metadata
dict | input
stringlengths 28
4.3k
| output
stringlengths 11
5.45k
|
---|---|---|---|
d0e4236d-bb17-4883-a551-982d2dd8a135 | {
"language": "YAML"
} | ```yaml
language: ruby
branches:
only:
- travistest
rvm:
- 1.8.7
before_install:
- git submodule update --init --recursive
- sudo apt-get update
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get -y install exim4-daemon-light
- sudo apt-get -y install `cut -d " " -f 1 config/packages | egrep -v "(^#|wkhtml|bundler)"`
before_script:
- psql -c 'create database foi_test template template0 encoding sql_ascii;' -U postgres
- co database.yml database.yml-test
```
Fix typo and remove postgres line (rake spec should create the test database anyway) | ```yaml
language: ruby
branches:
only:
- travistest
rvm:
- 1.8.7
before_install:
- git submodule update --init --recursive
- sudo apt-get update
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get -y install exim4-daemon-light
- sudo apt-get -y install `cut -d " " -f 1 config/packages | egrep -v "(^#|wkhtml|bundler)"`
before_script:
- cp database.yml database.yml-test
``` |
90a4379c-b658-4859-af03-6eca33f14be7 | {
"language": "YAML"
} | ```yaml
language: php
sudo: false
matrix:
include:
- php: 5.5
env:
- COLLECT_COVERAGE=true
- php: 5.6
env:
- COLLECT_COVERAGE=true
- EXECUTE_CS_CHECK=true
- php: 7.0
- php: hhvm
allow_failures:
- php: 7.0
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
install:
- travis_retry composer install --prefer-dist
script:
- if [ "$COLLECT_COVERAGE" != "true" ]; then phpunit; fi
- if [ "$COLLECT_COVERAGE" == "true" ]; then phpunit --coverage-text --coverage-clover=coverage.clover; fi
- if [ "$EXECUTE_CS_CHECK" == "true" ]; then vendor/bin/php-cs-fixer fix -v --diff --dry-run; fi
after_script:
- if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$COLLECT_COVERAGE" == "true" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
```
Use phpunit as installed with Composer | ```yaml
language: php
sudo: false
matrix:
include:
- php: 5.5
env:
- COLLECT_COVERAGE=true
- php: 5.6
env:
- COLLECT_COVERAGE=true
- EXECUTE_CS_CHECK=true
- php: 7.0
- php: hhvm
allow_failures:
- php: 7.0
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
install:
- travis_retry composer install --prefer-dist
script:
- if [ "$COLLECT_COVERAGE" != "true" ]; then vendor/bin/phpunit; fi
- if [ "$COLLECT_COVERAGE" == "true" ]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi
- if [ "$EXECUTE_CS_CHECK" == "true" ]; then vendor/bin/php-cs-fixer fix -v --diff --dry-run; fi
after_script:
- if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$COLLECT_COVERAGE" == "true" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
``` |
b86ba9a0-d827-4eb6-acdb-9a211a5d01fb | {
"language": "YAML"
} | ```yaml
os: osx
language: node_js
cache:
- node_modules
node_js:
- lts/*
branches:
only:
- gh-pages
script:
- npm test
matrix:
include:
- name: "Chrome Stable"
env: BROWSER=chrome
addons:
chrome: stable
- name: "Chrome Beta"
env: BROWSER=chrome
addons:
chrome: beta
- name: "Firefox ESR"
env: BROWSER=firefox
addons:
firefox: latest-esr
- name: "Firefox Stable"
env: BROWSER=firefox
addons:
firefox: latest
- name: "Firefox Beta"
env: BROWSER=firefox
addons:
firefox: latest-beta
notifications:
email:
recipients:
[email protected]
on_success: change
on_failure: always
```
Disable firefox testing due to webdriver issues. | ```yaml
os: osx
language: node_js
cache:
- node_modules
node_js:
- lts/*
branches:
only:
- gh-pages
script:
- npm test
matrix:
include:
- name: "Chrome Stable"
env: BROWSER=chrome
addons:
chrome: stable
- name: "Chrome Beta"
env: BROWSER=chrome
addons:
chrome: beta
# - name: "Firefox ESR"
# env: BROWSER=firefox
# addons:
# firefox: latest-esr
# - name: "Firefox Stable"
# env: BROWSER=firefox
# addons:
# firefox: latest
# - name: "Firefox Beta"
# env: BROWSER=firefox
# addons:
# firefox: latest-beta
notifications:
email:
recipients:
[email protected]
on_success: change
on_failure: always
``` |
553e1e5d-06f2-4285-ab12-4471219a3903 | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
- "0.9"
- "iojs"
- "iojs-v1.0.0"
before_install:
- sudo apt-get update
install:
- sudo apt-get install rpm
```
Add `npm install` to Travis config | ```yaml
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
- "0.9"
- "iojs"
- "iojs-v1.0.0"
before_install:
- sudo apt-get update
install:
- sudo apt-get install rpm
- npm install
``` |
69a918d4-963f-4179-b6aa-b7a2f7e33d63 | {
"language": "YAML"
} | ```yaml
# https://github.com/travis-ci/travis-ci/wiki/.travis.yml-options
bundler_args: --without development
script: "bundle exec rspec spec"
before_script: ./bin/ci/before_build.sh
rvm:
- 1.8.7
- 1.8.7-p174
- 1.8.7-p249
- ree
- rbx
- 1.9.2
- jruby
- ruby-head
gemfile:
- Gemfile
- gemfiles/eventmachine-pre
notifications:
recipients:
- [email protected]
- [email protected]
- [email protected]
```
Update email address CI will be using | ```yaml
# https://github.com/travis-ci/travis-ci/wiki/.travis.yml-options
bundler_args: --without development
script: "bundle exec rspec spec"
before_script: ./bin/ci/before_build.sh
rvm:
- 1.8.7
- 1.8.7-p174
- 1.8.7-p249
- ree
- rbx
- 1.9.2
- jruby
- ruby-head
gemfile:
- Gemfile
- gemfiles/eventmachine-pre
notifications:
recipients:
- [email protected]
- [email protected]
- [email protected]
``` |
825cc608-53d7-4763-888b-4bf5d4fad4fc | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 1.9.2
- 1.9.3
- 2.0.0
before_script:
- cd test/dummy/ && rake db:create db:migrate db:test:prepare && cd ~-
```
Remove support for Ruby 1.9.2. | ```yaml
language: ruby
rvm:
- 1.9.3
- 2.0.0
before_script:
- cd test/dummy/ && rake db:create db:migrate db:test:prepare && cd ~-
``` |
bdb9a684-efc8-482c-974a-a5a62d06f481 | {
"language": "YAML"
} | ```yaml
env:
matrix:
- TRAVIS_PYTHON_VERSION="2.7"
os:
- linux
- osx
sudo: required
before_install:
- echo "Build on $TRAVIS_OS_NAME"
- if [[ "$TRAVIS_TAG" == v* ]]; then export BUILD_STR=""; else export BUILD_STR="dev"; fi
- source .ci/travis/install_python.sh
- conda info -a
- conda build -q -c csdms .conda
- pip install coveralls
- source .ci/travis/install_dakota.sh
- dakota --version
install:
- conda install -q -c csdms csdms-dakota --use-local
script:
- nosetests --with-doctest --with-coverage --cover-package=csdms.dakota
after_success:
- coveralls --verbose
```
Install HydroTrend from CSDMS conda package | ```yaml
env:
matrix:
- TRAVIS_PYTHON_VERSION="2.7"
os:
- linux
- osx
sudo: required
before_install:
- echo "Build on $TRAVIS_OS_NAME"
- if [[ "$TRAVIS_TAG" == v* ]]; then export BUILD_STR=""; else export BUILD_STR="dev"; fi
- source .ci/travis/install_python.sh
- conda info -a
- conda build -q -c csdms .conda
- pip install coveralls
- source .ci/travis/install_dakota.sh
- dakota --version
- conda install -q -c csdms hydrotrend
install:
- conda install -q -c csdms csdms-dakota --use-local
script:
- nosetests --with-doctest --with-coverage --cover-package=csdms.dakota
after_success:
- coveralls --verbose
``` |
000640cf-312a-4d80-9730-4787fc1f8038 | {
"language": "YAML"
} | ```yaml
sudo: false
language: ruby
rvm:
- 1.9.3
- 2.2.0
script: "bundle exec rake spec"
```
Add Ruby 2.3.x to CI | ```yaml
sudo: false
language: ruby
rvm:
- 1.9.3
- 2.2.0
- 2.3.0
script: "bundle exec rake spec"
``` |
53da3f37-c7d7-471e-8f53-9e89f1ada794 | {
"language": "YAML"
} | ```yaml
sudo: true
language: python
sudo: required
python:
- 3.6
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
- AWS_DEFAULT_OUTPUT=json
matrix:
- DRIFT_CONFIG_URL=s3://relib-test/directive-games
cache: pip
addons:
apt:
packages:
- nginx
before_install:
- sudo chown $(whoami) /usr/share/nginx
- sudo chown $(whoami) /etc/nginx/nginx.conf
- export BOTO_CONFIG=/dev/null
install:
- pip install pipenv==2018.10.13
- pipenv install --dev --deploy
script:
- pytest --cov
after_success:
- codecov
- coverage report
- pip install -e "git+https://github.com/dgnorth/drift.git#egg=drift[aws]"
- drift-admin ami bake --skipcopy
- drift-admin ami run
```
Add tier environment variable for 'ami run' command | ```yaml
sudo: true
language: python
sudo: required
python:
- 3.6
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
- AWS_DEFAULT_OUTPUT=json
- DRIFT_TIER=DEVNORTH
matrix:
- DRIFT_CONFIG_URL=s3://relib-test/directive-games
cache: pip
addons:
apt:
packages:
- nginx
before_install:
- sudo chown $(whoami) /usr/share/nginx
- sudo chown $(whoami) /etc/nginx/nginx.conf
- export BOTO_CONFIG=/dev/null
install:
- pip install pipenv==2018.10.13
- pipenv install --dev --deploy
script:
- pytest --cov
after_success:
- codecov
- coverage report
- pip install -e "git+https://github.com/dgnorth/drift.git#egg=drift[aws]"
- drift-admin ami bake --skipcopy
- drift-admin ami run
``` |
63a7e83f-9c06-4296-b148-fdd99a43ed3b | {
"language": "YAML"
} | ```yaml
# Disabling sudo moves build to the Container Based Infrastructure on Travis CI
sudo: false
language: java
jdk: oraclejdk8
script:
- sh ci.sh
notifications:
email: false
```
Test on Oracle JDK 7 and 8 and Open JDK 7 | ```yaml
# Disabling sudo moves build to the Container Based Infrastructure on Travis CI
sudo: false
language: java
jdk:
- oraclejdk7
- oraclejdk8
- openjdk7
script:
- sh ci.sh
notifications:
email: false
``` |
0d4656ee-b556-4cbc-8046-ff74991e23ab | {
"language": "YAML"
} | ```yaml
language: python
python:
- 2.6
- 2.7
env:
- DJANGO="django>=1.3,<1.4"
- DJANGO="django>=1.4,<1.5"
- DJANGO="https://github.com/django/django/tarball/master"
matrix:
allow_failures:
- env: DJANGO="https://github.com/django/django/tarball/master"
install:
- pip install $DJANGO argparse --use-mirrors
script:
- ./runtests.py
```
Test against recent versions of Django. | ```yaml
language: python
python:
- 2.7
env:
- DJANGO="django>=1.3,<1.4"
- DJANGO="django>=1.4,<1.5"
- DJANGO="django>=1.5,<1.6"
- DJANGO="django>=1.7,<1.8"
- DJANGO="https://github.com/django/django/archive/master.zip"
matrix:
allow_failures:
- env: DJANGO="django>=1.5,<1.6"
- env: DJANGO="django>=1.7,<1.8"
- env: DJANGO="https://github.com/django/django/archive/master.zip"
install:
- pip install $DJANGO --use-mirrors
script:
- ./runtests.py
``` |
e67b80a0-c6ea-4054-b53e-1ae3a600e968 | {
"language": "YAML"
} | ```yaml
sudo: false
language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- jruby-19mode
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- "bundle exec rake test_with_coveralls"
```
Add Ruby 2.2.3 to Travis CI | ```yaml
sudo: false
language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- 2.2.3
- jruby-19mode
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- "bundle exec rake test_with_coveralls"
``` |
19afbfd3-19f7-4f6c-b832-844051a0e020 | {
"language": "YAML"
} | ```yaml
os:
- linux
- osx
dist: trusty
sudo: required
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl2 sdl2_image sdl2_mixer; fi
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
```
Add gitter webhook for Travis and update command. | ```yaml
os:
- linux
- osx
dist: trusty
sudo: required
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl2 sdl2_image; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl2_mixer --with-libvorbis; fi
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/ebdb56bb4da002ad1293
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
``` |
d395295b-fde4-44aa-be7f-16ae05435ec5 | {
"language": "YAML"
} | ```yaml
# https://travis-ci.org/mre/kafka-influxdb
sudo: false
os:
- linux
language: python
python:
- "2.7"
- pypy
- 3.3
- 3.4
- 3.5
- pypy3
install:
- pip install python-coveralls
- pip install coverage
- pip install nose
- pip install -r requirements.txt
script:
- python setup.py install
- nosetests --with-coverage
after_success:
- coveralls
- if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON ]]; then coveralls; fi
```
Add dev and nightly builds. Quote python versions | ```yaml
# https://travis-ci.org/mre/kafka-influxdb
sudo: false
os:
- linux
language: python
python:
- "2.7"
- "pypy"
- "3.3"
- "3.4"
- "3.5"
- "pypy3"
- "3.5-dev"
- "nightly"
matrix:
allow-failures:
- python: "3.5-dev"
- python: "nightly"
fast_finish: true
install:
- pip install python-coveralls
- pip install coverage
- pip install nose
- pip install -r requirements.txt
script:
- python setup.py install
- nosetests --with-coverage
after_success:
- coveralls
- if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON ]]; then coveralls; fi
``` |
e5e8e1bc-e753-444a-abf3-317df9641a66 | {
"language": "YAML"
} | ```yaml
sudo: false
language: node_js
node_js:
- '4'
- '6'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
```
Build with Node.js 8 on Travis CI. | ```yaml
sudo: false
language: node_js
node_js:
- '4'
- '6'
- '8'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
``` |
dd5c62a2-ecaf-4be3-ba84-20d1e6a953e4 | {
"language": "YAML"
} | ```yaml
language: ruby
script: "bundle exec rspec"
rvm:
- 1.9.3
- 2.0.0
gemfile:
- gemfiles/active_record_3.gemfile
- gemfiles/active_record_4.gemfile
- gemfiles/mongoid_3.gemfile
- gemfiles/mongoid_4.gemfile
services:
- mongodb
```
Add newer ruby versions to Travis config | ```yaml
language: ruby
script: "bundle exec rspec"
rvm:
- 1.9.3
- 2.0.0
- 2.1.5
- 2.2.1
gemfile:
- gemfiles/active_record_3.gemfile
- gemfiles/active_record_4.gemfile
- gemfiles/mongoid_3.gemfile
- gemfiles/mongoid_4.gemfile
services:
- mongodb
``` |
ef633c36-8715-4b87-9b8a-c5d2e3ab1884 | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 1.9
- 2.0
- 2.1
- 2.2
- 2.3
- 2.4
```
Remove Ruby 2.4 while Travis is not ready. | ```yaml
language: ruby
rvm:
- 1.9
- 2.0
- 2.1
- 2.2
- 2.3
# - 2.4
``` |
53c9070a-07d0-402c-9b13-da1b90a69ec2 | {
"language": "YAML"
} | ```yaml
#
# Copyright © 2015 Cask Data, Inc.
#
# 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.
#
language: ruby
rvm:
- 1.9.3
cache: bundler
sudo: false
bundler_args: --jobs 7 --without docs integration
script: bundle exec rake
```
Test Ruby 2.0.0 and 2.1.4 (shipped w/ OSX Mavericks/Yosemite, respectively) | ```yaml
#
# Copyright © 2015 Cask Data, Inc.
#
# 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.
#
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.4
cache: bundler
sudo: false
bundler_args: --jobs 7 --without docs integration
script: bundle exec rake
``` |
6fe20724-a898-4e42-8ace-3376e341fc75 | {
"language": "YAML"
} | ```yaml
language: python
python:
- "2.7"
install:
- pip install -r requirements.txt --use-mirrors
- pip install coveralls --use-mirrors
script:
coverage run manage.py test
after_success:
- coveralls
```
Disable SSH key check for github in Travis CI. | ```yaml
language: python
python:
- "2.7"
install:
- pip install -r requirements.txt --use-mirrors
- pip install coveralls --use-mirrors
before_script:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
script:
coverage run manage.py test
after_success:
- coveralls
``` |
f9ba92fd-d204-4e81-91a5-28370729a3ea | {
"language": "YAML"
} | ```yaml
name: Resto Docker Image Builder
env:
IMAGE: resto
NAME: jjrom
REPO: resto
on:
push:
paths:
- 'resto/app/**'
- 'resto/build/**'
- '.github/workflows/**'
release:
types: [created, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
# defaults to shallow checkout
- uses: actions/checkout@v2
- name: Print values of all environment variables
run: printenv
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build the tagged Docker image
run: docker build . --file ./build/resto/Dockerfile --tag ${NAME}/${IMAGE}:latest
- name: Prep and tag images (master branch or tagged release only)
if: ${{ startsWith(github.ref, 'refs/heads/master') || github.event_name == 'release' }}
run: |
# convert a shallow repository to a complete one
git fetch --prune --unshallow 2> /dev/null || true
# figure out extra tag
tag=$(git describe --tags)
# Creates or updates an environment variable for any actions running next in a job.
echo "::set-env name=prod_tag::${tag}"
# tag and push images
docker tag ${NAME}/${IMAGE}:latest ${NAME}/${IMAGE}:${tag}
- name: Push to DockerHub (master branch or tagged release only)
if: ${{ startsWith(github.ref, 'refs/heads/master') || github.event_name == 'release' }}
run: |
docker push ${NAME}/${IMAGE}
docker push ${NAME}/${IMAGE}:${prod_tag}
```
Update docker workflow to build release | ```yaml
name: Resto Docker Image Builder
env:
IMAGE: resto
NAME: jjrom
REPO: resto
on:
push:
paths:
- 'app/**'
- 'build/**'
- '.github/workflows/**'
release:
types: [created, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
# defaults to shallow checkout
- uses: actions/checkout@v2
- name: Print values of all environment variables
run: printenv
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build the tagged Docker image
run: docker build . --file ./build/resto/Dockerfile --tag ${NAME}/${IMAGE}:latest
- name: Unshallow repository
run: git fetch --prune --unshallow 2> /dev/null || true
- name: Tag master branch and push to repository
if: ${{ startsWith(github.ref, 'refs/heads/master') }}
run: |
# Tag latest image
docker tag ${NAME}/${IMAGE}:latest
# Push image
docker push ${NAME}/${IMAGE}
- name: Tag latest release and push to repository
if: ${{ github.event_name == 'release' }}
run: |
# Get latest release tag
tag=$(git describe --tags --abbrev=0)
# Tag image
docker tag ${NAME}/${IMAGE}:${tag}
# Push release
docker push ${NAME}/${IMAGE}:${tag}
``` |
d5ca60c2-ac35-42b7-b924-918ad65430ac | {
"language": "YAML"
} | ```yaml
name: Cherry pick commit(s)
on:
workflow_dispatch:
inputs:
commit:
description: 'Commit to cherrypick'
required: true
branch:
description: 'Branch to cherry pick to'
required: true
default: 'v5-09-XX'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Decide which branch to use
run: |
cat << EOF
::set-output name=branch::$(echo ${{ github.event.inputs.tag }}-patches | sed -e's/[a-z][a-z]*-patches$/-patches/')
EOF
id: decide_release_branch
- uses: actions/checkout@v2
with:
ref: "${{ steps.decide_release_branch.outputs.branch }}"
- name: Update the branch
run: |
set -e
git checkout ${{ steps.decide_release_branch.outputs.branch }}
git cherry-pick ${{ github.event.inputs.commit }}
git config --global user.email "[email protected]"
git config --global user.name "ALICE Action Bot"
git push
```
Add workflow to do cherrypicks | ```yaml
name: Cherry pick commit(s)
on:
workflow_dispatch:
inputs:
commit:
description: 'Commit to cherrypick'
required: true
branch:
description: 'Branch to cherry pick to'
required: true
default: 'v5-09-XX'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Decide which branch to use
run: |
cat << EOF
::set-output name=branch::$(echo ${{ github.event.inputs.branch }}-patches | sed -e's/[a-z][a-z]*-patches$/-patches/')
EOF
id: decide_release_branch
- uses: actions/checkout@v2
with:
ref: "${{ steps.decide_release_branch.outputs.branch }}"
- name: Update the branch
run: |
set -e
git checkout ${{ steps.decide_release_branch.outputs.branch }}
git cherry-pick ${{ github.event.inputs.commit }}
git config --global user.email "[email protected]"
git config --global user.name "ALICE Action Bot"
git push
``` |
5466c9b0-95fd-418f-b6cd-0f8709c2a107 | {
"language": "YAML"
} | ```yaml
language: ruby
rvm:
- 2.2.3
script: rubocop && rspec
```
Use new Travis container infrastructure. | ```yaml
sudo: false
language: ruby
rvm:
- 2.2.3
script: rubocop && rspec
``` |
726a378b-5672-4499-9410-40056d6d7ca8 | {
"language": "YAML"
} | ```yaml
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.4"
- "3.3"
- "2.7"
- "2.6"
- "pypy"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script: python setup.py test
```
Remove testing on Python2.6 and PyPY | ```yaml
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.5"
- "3.4"
- "2.7"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script: python setup.py test
``` |
50b74828-3a3b-4961-84f1-053b01db3d31 | {
"language": "YAML"
} | ```yaml
name: Release Tagged Builds
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set release version
run: echo "::set-env name=RELEASE_VERSION::${GITHUB_REF##*/}"
- name: Build with JCompilo
run: ./jcompilo.sh
env:
BUILD_NUMBER: "$RELEASE_VERSION"
- name: Publish to Bintray
run: bin/publish "$RELEASE_VERSION" "$BINTRAY_USERNAME" "$BINTRAY_PASSWORD"
env:
BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }}
BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }}
```
Change release flow to set build number via an output, as the reuse of the env var seems dodgy | ```yaml
name: Release Tagged Builds
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set release version
run: echo "::set-output name=RELEASE_VERSION::${GITHUB_REF##*/}"
- name: Build with JCompilo
run: ./jcompilo.sh
env:
BUILD_NUMBER: ${{ outputs.RELEASE_VERSION }}
- name: Publish to Bintray
run: bin/publish "$RELEASE_VERSION" "$BINTRAY_USERNAME" "$BINTRAY_PASSWORD"
env:
RELEASE_VERSION: ${{ outputs.RELEASE_VERSION }}
BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }}
BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }}
``` |
cbba22d5-a685-4f1f-ac60-c174a67cf0b0 | {
"language": "YAML"
} | ```yaml
language: python
python:
- "2.7"
- "3.3"
env:
global:
- DJANGO_SECRET_KEY=my-secret-key-for-testing
matrix:
- TOXENV=py27
- TOXENV=py33
- DJANGO="django==1.6"
- DJANGO="django==1.5.5"
- DJANGO="django==1.4.10"
- DJANGO="django==1.3.7"
install:
- pip install tox --use-mirrors
script:
- tox
matrix:
exclude:
- env: TOXENV=py27
- env: TOXENV=py33
```
Add HipChat and tweak email notifications | ```yaml
language: python
python:
- '2.7'
- '3.3'
env:
global:
- DJANGO_SECRET_KEY=my-secret-key-for-testing
matrix:
- TOXENV=py27
- TOXENV=py33
- DJANGO="django==1.6"
- DJANGO="django==1.5.5"
- DJANGO="django==1.4.10"
- DJANGO="django==1.3.7"
install:
- pip install tox --use-mirrors
script:
- tox
matrix:
exclude:
- env: TOXENV=py27
- env: TOXENV=py33
notifications:
email:
on_success: change
on_failure: change
hipchat:
rooms:
secure: oHinMi1k33ZF/oSXF3o0Whi8rOohcvj+SkiFEgOrmlSR1wQBhlg03ETgZtKPaI000EVxMwBQCzXMweqO7F49Z2ofm/DTPD2aPRG/BAUetg67b/VmZkYhoDpUBV2ovdWa4jSAOd73kkstWqZRU5cQh5RV1OsLBXda/MubrIS1p90=
``` |
7edcf223-9745-40b0-924b-5b78093b686a | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- '0.10'
- '0.12'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
```
Build on Travis CI without `sudo`. | ```yaml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
``` |
18735432-13fe-423f-a4d7-dc361875b316 | {
"language": "YAML"
} | ```yaml
---
sudo: false
language: ruby
bundler_args: --without system_tests
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
matrix:
fast_finish: true
include:
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
notifications:
email: false
```
Add ability to unittest puppet 4 | ```yaml
---
sudo: false
language: ruby
bundler_args: --without system_tests
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
matrix:
fast_finish: true
include:
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
- rvm: 2.1.6
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
allow_failures:
- rvm: 2.1.6
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
notifications:
email: false
``` |
ef09f2ea-1d17-42ab-9a63-a8c871a8cc3f | {
"language": "YAML"
} | ```yaml
language: node_js
node_js:
- "4.4"
before_install:
- npm install -g --production yarn
install:
- yarn install
script:
- yarn run grunt build
- yarn run grunt tslint
- yarn run grunt unit_test_nobuild
sudo: false
cache:
directories:
- node_modules
```
Make sure folder is clean | ```yaml
language: node_js
node_js:
- "4.4"
before_install:
- npm install -g --production yarn
- yarn clean
install:
- yarn install
script:
- yarn run grunt build
- yarn run grunt tslint
- yarn run grunt unit_test_nobuild
sudo: false
cache:
directories:
- node_modules
``` |
f16341fc-1b28-401d-b7de-29f5ae3bed2d | {
"language": "YAML"
} | ```yaml
rvm:
- 1.9.2
- 1.9.3
- 2.0
- 2.1
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "sudo apt-get -qq -y install fontconfig libxrender1"
- "wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-precise-amd64.deb"
- "sudo dpkg -i wkhtmltox-0.12.1_linux-precise-amd64.deb"
```
Address Travis issues with Bundler failures | ```yaml
rvm:
- 1.9.2
- 1.9.3
- 2.0
- 2.1
before_install:
- gem update --system
- gem update bundler
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "sudo apt-get -qq -y install fontconfig libxrender1"
- "wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-precise-amd64.deb"
- "sudo dpkg -i wkhtmltox-0.12.1_linux-precise-amd64.deb"
``` |
c8915350-f9bf-43fc-9f31-cffcebed4832 | {
"language": "YAML"
} | ```yaml
---
language: node_js
node_js:
- "0.12"
sudo: false
cache:
directories:
- node_modules
env:
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary
before_install:
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
- "npm config set spin false"
- "npm install -g npm@^2"
install:
- npm install -g bower
- npm install
- bower install
script:
- ember try $EMBER_TRY_SCENARIO test
- npm run test-node
```
Use `ember try:one` instead of `ember try`. | ```yaml
---
language: node_js
node_js:
- "0.12"
sudo: false
cache:
directories:
- node_modules
env:
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary
before_install:
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
- "npm config set spin false"
- "npm install -g npm@^2"
install:
- npm install -g bower
- npm install
- bower install
script:
- ember try:one $EMBER_TRY_SCENARIO --- ember test
- npm run test-node
``` |
af84af37-1948-4b0d-8b4e-d1cf08a2af19 | {
"language": "YAML"
} | ```yaml
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
before_script:
- "unzip ipadic/sysdic.zip"
script:
- "python -m unittest discover -s tests"```
Delete 3.2 from supported python version. | ```yaml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
before_script:
- "unzip ipadic/sysdic.zip"
script:
- "python -m unittest discover -s tests"``` |
3c548648-e71a-45fc-8441-dc3dc6e72e00 | {
"language": "YAML"
} | ```yaml
language: php
php:
- 5.5
- 5.6
before_script:
- curl -s http://getcomposer.org/installer | php
- COMPOSER_ROOT_VERSION=dev-master php composer.phar install --dev
script:
- bin/atoum
notifications:
email:
- [email protected]
```
Remove xdebug ext if loaded | ```yaml
language: php
dist: trusty
sudo: false
php:
- 5.5
- 5.6
before_install:
- |
# php.ini configuration
INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
phpenv config-rm xdebug.ini || echo "xdebug not available"
echo date.timezone = Europe/Paris >> $INI
echo memory_limit = -1 >> $INI
echo session.gc_probability = 0 >> $INI
echo opcache.enable_cli = 1 >> $INI
before_script:
- composer install --dev
script:
- bin/atoum
notifications:
email:
- [email protected]
``` |
d7eaeda6-e2b1-4bf5-a5c3-356bfc7b804a | {
"language": "YAML"
} | ```yaml
dist: bionic
language: c
sudo: require
install:
- sudo add-apt-repository -y ppa:webkit-team/ppa
- sudo apt-get update
- sudo apt-get install -y libgtk-3-dev
- sudo apt-get install -y libwebkit2gtk-4.0-dev
- sudo apt-get install -y xvfb
- sudo apt-get install -y metacity
- sudo apt-get install -y x11-apps
- sudo apt-get install -y imagemagick
script:
- make
- ./test.sh
```
Add third-party APT repository for WebKit | ```yaml
dist: bionic
language: c
sudo: require
script:
- make
- ./test.sh
addons:
apt:
update: true
sources:
- ppa:webkit-team/ppa
packages:
- libwegkit2gtk-4.0-dev
- libgtk-3-dev
- xvfb
- metacity
- x11-apps # → xwd
- imagemagick # → convert
``` |
f0c3f222-d6c0-4589-8d02-23c4bd5b8e36 | {
"language": "YAML"
} | ```yaml
language: go
script: go test -race -cpu 1,2,4 -v -timeout 2m ./...
sudo: false
```
Build against multiple go versions, allow tip to fail | ```yaml
language: go
script: go test -race -cpu 1,2,4 -v -timeout 2m ./...
sudo: false
go:
- 1.3
- 1.4
- tip
matrix:
allow_failures:
- go: tip
``` |
984e90cc-cf99-4950-a3cf-d896ff3f125b | {
"language": "YAML"
} | ```yaml
sudo: required
dist: trusty
language: bash
script:
# Install LXD / LXC
- sudo apt update
- sudo apt install snapd -y
- sudo snap install lxd
- sudo lxd init --auto;
- sudo usermod -a -G lxd travis;
- sudo su travis -c 'lxc network create lxdbr0';
- sudo su travis -c 'lxc network attach-profile lxdbr0 default eth0';
# Build all images
- sudo su travis -c 'sh build-all.sh';```
Update path after LXD installation | ```yaml
sudo: required
dist: trusty
language: bash
script:
# Install LXD / LXC
- sudo apt update
- sudo apt install snapd -y
- sudo snap install lxd
- sudo . /etc/profile.d/apps-bin-path.sh
- sudo lxd init --auto;
- sudo usermod -a -G lxd travis;
- sudo su travis -c 'lxc network create lxdbr0';
- sudo su travis -c 'lxc network attach-profile lxdbr0 default eth0';
# Build all images
- sudo su travis -c 'sh build-all.sh';``` |
496abf32-3f01-4fea-b89d-9a3b2fdd9f25 | {
"language": "YAML"
} | ```yaml
language: php
php:
- 7.2
- 7.3
- 7.4snapshot
before_script:
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- travis_retry composer self-update
- travis_retry composer update --no-interaction --prefer-source
```
Test against latest version of php 7.4 | ```yaml
language: php
php:
- 7.2
- 7.3
- 7.4
before_script:
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- travis_retry composer self-update
- travis_retry composer update --no-interaction --prefer-source
``` |
d7bb8ecd-0c81-4daf-9925-dbb1ec4439c8 | {
"language": "YAML"
} | ```yaml
---
- name: Update apt cache and upgrade system
apt: upgrade=dist update-cache=yes
sudo: yes
tags:
- common
- update
- upgrade
- name: Install language-pack-en
apt: pkg=language-pack-en
sudo: yes
tags:
- common
- packages
- language
- name: Update locale to {{ locale }}
command: /usr/sbin/update-locale LANG={{ locale }} LC_ALL={{ locale }}
sudo: yes
tags:
- common
- language
- name: Update localtime to {{ timezone }}
command: /bin/cp /usr/share/zoneinfo/{{ timezone }} /etc/localtime
sudo: yes
tags:
- common
- localtime
- name: Update timezone to {{ timezone }}
template: src=default-timezone.j2 dest=/etc/timezone
sudo: yes
tags:
- common
- timezone
- name: Update tzdata
command: /usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata
sudo: yes
tags:
- common
- tzdata
```
Disable IPv6 - error with apt-get install :( | ```yaml
---
- name: Update apt cache and upgrade system
apt: upgrade=dist update-cache=yes
sudo: yes
tags:
- common
- update
- upgrade
- name: Install language-pack-en
apt: pkg=language-pack-en
sudo: yes
tags:
- common
- packages
- language
- name: Update locale to {{ locale }}
command: /usr/sbin/update-locale LANG={{ locale }} LC_ALL={{ locale }}
sudo: yes
tags:
- common
- language
- name: Update localtime to {{ timezone }}
command: /bin/cp /usr/share/zoneinfo/{{ timezone }} /etc/localtime
sudo: yes
tags:
- common
- localtime
- name: Update timezone to {{ timezone }}
template: src=default-timezone.j2 dest=/etc/timezone
sudo: yes
tags:
- common
- timezone
- name: Update tzdata
command: /usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata
sudo: yes
tags:
- common
- tzdata
- name: Disable IPv6
command: sysctl net.ipv6.conf.all.disable_ipv6=1
sudo: yes
tags:
- common
- ipv6
``` |
c3367b47-4db2-4a1a-b918-bffa73074b70 | {
"language": "YAML"
} | ```yaml
name: 'Integrate'
on:
- push
- pull_request
jobs:
ci:
name: 'CI'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- stable
- nightly
steps:
- name: 'Install Linux dependencies'
if: ${{ runner.os == 'Linux' }}
run: sudo apt install attr e2fsprogs libfuse-dev
- name: 'Checkout the repository'
uses: actions/checkout@v2
with:
submodules: true
- name: 'Install the Rust toolchain'
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- name: 'Build RRG executable'
uses: actions-rs/cargo@v1
with:
command: build
- name: 'Run RRG tests'
uses: actions-rs/cargo@v1
with:
command: test
args: >
--workspace
--features 'test-chattr test-setfattr'
- name: 'Print RRG version'
uses: actions-rs/cargo@v1
with:
command: run
args: -- --version
```
Add a TODO comment about a CI extension. | ```yaml
name: 'Integrate'
on:
- push
- pull_request
jobs:
ci:
name: 'CI'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- stable
- nightly
steps:
- name: 'Install Linux dependencies'
if: ${{ runner.os == 'Linux' }}
run: sudo apt install attr e2fsprogs libfuse-dev
- name: 'Checkout the repository'
uses: actions/checkout@v2
with:
submodules: true
- name: 'Install the Rust toolchain'
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- name: 'Build RRG executable'
uses: actions-rs/cargo@v1
with:
command: build
# TODO: Add a step that runs tests with all action features disabled.
- name: 'Run RRG tests'
uses: actions-rs/cargo@v1
with:
command: test
args: >
--workspace
--features 'test-chattr test-setfattr'
- name: 'Print RRG version'
uses: actions-rs/cargo@v1
with:
command: run
args: -- --version
``` |
285cb056-e3ca-46e3-bdfa-62c1e47c1a34 | {
"language": "YAML"
} | ```yaml
name: ci
on:
push:
pull_request:
schedule:
- cron: '0 3 * * 6' # 3am Saturday
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['9.0', '8.10', '8.8']
include:
- os: windows-latest
- os: macOS-latest
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- run: cabal new-install apply-refact --install-method=copy
- run: cabal v2-freeze --enable-tests
- uses: actions/cache@v2
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- uses: ndmitchell/neil@master
with:
hlint-arguments: src
```
Move building apply-refact after the cache, since it seems to be breaking the cache | ```yaml
name: ci
on:
push:
pull_request:
schedule:
- cron: '0 3 * * 6' # 3am Saturday
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['9.0', '8.10', '8.8']
include:
- os: windows-latest
- os: macOS-latest
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- run: cabal v2-freeze --enable-tests
- uses: actions/cache@v2
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- run: cabal new-install apply-refact --install-method=copy
- uses: ndmitchell/neil@master
with:
hlint-arguments: src
``` |
117fce90-3174-427e-9be9-a2b36717b06a | {
"language": "YAML"
} | ```yaml
name: CI
on: [push]
jobs:
build:
name: Module imports on all platforms
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Perform the import
shell: pwsh
run: Import-Module ./dbatools.psd1 -ErrorAction Stop; (Get-DbaManagementObject).LoadTemplate -ne $null
```
Set CI to only run on pull_request | ```yaml
name: CI
on: [pull_request]
jobs:
build:
name: Module imports on all platforms
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Perform the import
shell: pwsh
run: Import-Module ./dbatools.psd1 -ErrorAction Stop; (Get-DbaManagementObject).LoadTemplate -ne $null
``` |
94d64f43-74c7-4692-88b5-905880c8644d | {
"language": "YAML"
} | ```yaml
spec:
replicas: 1
template:
spec:
serviceAccountName: metrics
containers:
- name: prometheus
image: prom/prometheus:v1.3.0
ports:
- name: http
containerPort: 9090
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus
- name: data-volume
mountPath: /prometheus
livenessProbe:
httpGet:
port: http
initialDelaySeconds: 1
readinessProbe:
httpGet:
port: http
initialDelaySeconds: 1
- name: configmap-reload
image: jimmidyson/configmap-reload:v0.1
args:
- -volume-dir
- /etc/prometheus
- -webhook-url
- http://localhost:9090/-/reload
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus/config
volumes:
- name: config-volume
configMap:
name: prometheus
- name: data-volume
persistentVolumeClaim:
claimName: prometheus-data
```
Fix config reload mount path | ```yaml
spec:
replicas: 1
template:
spec:
serviceAccountName: metrics
containers:
- name: prometheus
image: prom/prometheus:v1.3.0
ports:
- name: http
containerPort: 9090
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus
- name: data-volume
mountPath: /prometheus
livenessProbe:
httpGet:
port: http
initialDelaySeconds: 1
readinessProbe:
httpGet:
port: http
initialDelaySeconds: 1
- name: configmap-reload
image: jimmidyson/configmap-reload:v0.1
args:
- -volume-dir
- /etc/prometheus
- -webhook-url
- http://localhost:9090/-/reload
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus
volumes:
- name: config-volume
configMap:
name: prometheus
- name: data-volume
persistentVolumeClaim:
claimName: prometheus-data
``` |
c9db25bf-9ba1-4d91-bc65-b187b8dfa11f | {
"language": "YAML"
} | ```yaml
---
engines:
brakeman:
enabled: true
bundler-audit:
enabled: true
csslint:
enabled: true
coffeelint:
enabled: true
duplication:
enabled: true
config:
languages:
- ruby
- javascript
- python
- php
eslint:
enabled: true
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.erb"
- "**.haml"
- "**.rb"
- "**.rhtml"
- "**.slim"
- "**.css"
- "**.coffee"
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"
- "**.php"
- "**.py"
exclude_paths:
- config/
- db/
- spec/
- vendor/
- coverage/
- bin/
```
Exclude babel.config.js from code climate | ```yaml
---
engines:
brakeman:
enabled: true
bundler-audit:
enabled: true
csslint:
enabled: true
coffeelint:
enabled: true
duplication:
enabled: true
config:
languages:
- ruby
- javascript
- python
- php
eslint:
enabled: true
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.erb"
- "**.haml"
- "**.rb"
- "**.rhtml"
- "**.slim"
- "**.css"
- "**.coffee"
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"
- "**.php"
- "**.py"
exclude_patterns:
- config/
- db/
- spec/
- vendor/
- coverage/
- bin/
- babel.config.js
``` |
392f84c1-1d00-4bd7-99e7-cc0d85cb26e3 | {
"language": "YAML"
} | ```yaml
languages:
Ruby: false
JavaScript: true
PHP: false
Python: false
exclude_paths:
- "*.md"
- "*.png"
- "*.json"
- "test/*"
```
Exclude config, test/helpers from CodeClimate | ```yaml
languages:
Ruby: false
JavaScript: true
PHP: false
Python: false
exclude_paths:
- "*.md"
- "*.png"
- "*.json"
- "config/*"
- "test/*"
- "test/helpers/*"
``` |
1f01fdf1-e7f1-4796-a273-9ff15fc5837b | {
"language": "YAML"
} | ```yaml
languages:
JavaScript: true
exclude_paths:
- "cli.js"
- "utils.js"
- "build/*"
- "commands/*"
- "templates/*"
- "script/lib/*"
- "script/tests/*"```
Add back certain paths to ClodeClimate testing | ```yaml
languages:
JavaScript: true
exclude_paths:
- "templates/*"
- "script/lib/*"
- "script/tests/*"``` |
53431291-2e2f-4533-955a-75bef5638d93 | {
"language": "YAML"
} | ```yaml
version: '2'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ${PWD}/app:/data/www:ro
- ${PWD}/nginx.conf:/etc/nginx/nginx.conf:ro
```
Move nginx server to port 8080 | ```yaml
version: '2'
services:
nginx:
image: nginx:alpine
ports:
- "8080:80"
volumes:
- ${PWD}/app:/data/www:ro
- ${PWD}/nginx.conf:/etc/nginx/nginx.conf:ro
``` |
a4322294-1553-4e2e-b364-322447249974 | {
"language": "YAML"
} | ```yaml
version: '3'
services:
db:
image: postgres:9.6
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
```
Use docker volume for postgresql | ```yaml
version: '3'
services:
db:
image: postgres:9.6
volumes:
- postgresql-data:/var/lib/postgresql/data
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
environment:
RAILS_ENV: development
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
volumes:
postgresql-data:
driver: local
``` |
476909a8-6658-4264-92fb-f99d082465f6 | {
"language": "YAML"
} | ```yaml
queue: Hosted VS2017
steps:
- checkout: self
clean: true
- task: MSBuild@1
displayName: Restore
inputs:
solution: src/Moq.sln
msbuildArguments: /t:Restore /p:Configuration=Release /m
- task: MSBuild@1
displayName: Version
inputs:
solution: src/Moq/Moq.Package/Moq.Package.csproj
msbuildArguments: /t:Version /bl:"$(Build.ArtifactStagingDirectory)\version.binlog"
- task: MSBuild@1
displayName: Build
inputs:
solution: src/Moq.sln
msbuildArguments: /bl:"$(Build.ArtifactStagingDirectory)\build.binlog" /p:PackOnBuild=true /p:PackageOutputPath=$(Build.ArtifactStagingDirectory) /p:Configuration=Release
- task: VSTest@2
displayName: Test
inputs:
testAssemblyVer2: src\*\*\bin\*\*.Tests.dll
runInParallel: 'true'
codeCoverageEnabled: 'true'
publishRunAttachments: 'true'
rerunFailedTests: true
- task: PublishBuildArtifacts@1
displayName: Publish Artifact
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: out
ArtifactType: Container
condition: always()```
Disable advanced diagnostics to avoid build warning | ```yaml
queue: Hosted VS2017
steps:
- checkout: self
clean: true
- task: MSBuild@1
displayName: Restore
inputs:
solution: src/Moq.sln
msbuildArguments: /t:Restore /p:Configuration=Release /m
- task: MSBuild@1
displayName: Version
inputs:
solution: src/Moq/Moq.Package/Moq.Package.csproj
msbuildArguments: /t:Version /bl:"$(Build.ArtifactStagingDirectory)\version.binlog"
- task: MSBuild@1
displayName: Build
inputs:
solution: src/Moq.sln
msbuildArguments: /bl:"$(Build.ArtifactStagingDirectory)\build.binlog" /p:PackOnBuild=true /p:PackageOutputPath=$(Build.ArtifactStagingDirectory) /p:Configuration=Release
- task: VSTest@2
displayName: Test
inputs:
testAssemblyVer2: src\*\*\bin\*\*.Tests.dll
runInParallel: 'true'
codeCoverageEnabled: 'true'
publishRunAttachments: 'true'
diagnosticsEnabled: false
rerunFailedTests: true
- task: PublishBuildArtifacts@1
displayName: Publish Artifact
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: out
ArtifactType: Container
condition: always()``` |
820c646b-6a8a-4c91-b1b2-797f22b15d2a | {
"language": "YAML"
} | ```yaml
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
```
Build on Windows, macOS, and Linux. Disable tests which take too long. | ```yaml
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
jobs:
- job: Linux
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
options: '-Dmaven.test.skip=true'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
options: '-Dmaven.test.skip=true'
- job: Mac
pool:
vmImage: 'macOS-10.13'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
options: '-Dmaven.test.skip=true'
``` |
d4c8f802-76df-40ef-b1f2-11c2452f3328 | {
"language": "YAML"
} | ```yaml
version: '2'
services:
competitionplatform:
image: competitionplatform
environment:
- SettingsUrl=${SettingsUrl}
ports:
- "80:80"
```
Fix image in docker compose. | ```yaml
version: '2'
services:
competitionplatform:
image: lykkex/competitionplatform
environment:
- SettingsUrl=${SettingsUrl}
ports:
- "80:80"
``` |
2059685a-9fa9-40a3-840b-ecb03b5c828a | {
"language": "YAML"
} | ```yaml
---
Name: app
After: framework/routes#coreroutes
---
Email:
admin_email: [email protected]
i18n:
default_locale: en_NZ
ShopConfig:
base_currency: 'NZD'
email_from: [email protected]
receipt_subject: "Thank you for your order at www.myshop.com - Order #%d"
ShopCurrency:
decimal_delimiter: '.'
thousand_delimiter: ','
Product:
global_allow_purchase: false
# length_unit: 'M'
# weight_unit: 'Pounds'
# Change the dimensions of product thumbnails
Product_Image:
thumbnail_width: 140
thumbnail_height: 100
content_image_width: 200
large_image_width: 200
ProductCategory:
include_child_groups: true
must_have_price: true
sort_options:
'Title' : 'Alphabetical'
'Price' : 'Lowest Price'
# Redirect to the cart page after manipulating the shopping cart
ShoppingCart_Controller:
direct_to_cart_page: true
CheckoutConfig:
member_creation_enabled: true
membership_required: true
Order:
modifiers:
- 'FlatTaxModifier'
- 'SimpleShippingModifier'
cancel_before_payment: false
cancel_before_processing: false
cancel_before_sending: false
cancel_before_sending: false
cancel_after_sending: false
OrderManipulation:
allow_cancelling: true
allow_paying: true
```
Make example config overwrite shop/config.yml | ```yaml
---
Name: app
After: shop/config#shopconfig
---
Email:
admin_email: [email protected]
i18n:
default_locale: en_NZ
ShopConfig:
base_currency: 'NZD'
email_from: [email protected]
receipt_subject: "Thank you for your order at www.myshop.com - Order #%d"
ShopCurrency:
decimal_delimiter: '.'
thousand_delimiter: ','
Product:
global_allow_purchase: false
# length_unit: 'M'
# weight_unit: 'Pounds'
# Change the dimensions of product thumbnails
Product_Image:
thumbnail_width: 140
thumbnail_height: 100
content_image_width: 200
large_image_width: 200
ProductCategory:
include_child_groups: true
must_have_price: true
sort_options:
'Title' : 'Alphabetical'
'Price' : 'Lowest Price'
# Redirect to the cart page after manipulating the shopping cart
ShoppingCart_Controller:
direct_to_cart_page: true
CheckoutConfig:
member_creation_enabled: true
membership_required: true
Order:
modifiers:
- 'FlatTaxModifier'
- 'SimpleShippingModifier'
cancel_before_payment: false
cancel_before_processing: false
cancel_before_sending: false
cancel_before_sending: false
cancel_after_sending: false
OrderManipulation:
allow_cancelling: true
allow_paying: true
``` |
702e70e3-118b-479c-90c1-2603bad3d600 | {
"language": "YAML"
} | ```yaml
schema_version: 0.1
type: producer
identifier: consumer
title: Consumer as Producer
version: 2
copyright: Ushodaya Enterprises Limited
creator: Dan Dennedy
license: LGPLv2.1
language: en
tags:
- Audio
- Video
parameters:
- identifier: argument
title: File/URL
type: string
description: A file name, URL, or producer name.
required: yes
- identifier: profile
title: Profile
type: string
description: >
The name of a MLT profile with which to load the resource. This defaults
to the composition's profile, but could be overridden by the profile
in MLT XML. Also, the value "auto" triggers profile detection.
- identifier: autoprofile
title: Auto-profile
type: integer
description: Generate a new, custom profile from the encapsulated resource.
minimum: 0
maximum: 1
default: 0
```
Document new producer.* and consumer.* properties. | ```yaml
schema_version: 0.1
type: producer
identifier: consumer
title: Consumer as Producer
version: 2
copyright: Ushodaya Enterprises Limited
creator: Dan Dennedy
license: LGPLv2.1
language: en
tags:
- Audio
- Video
parameters:
- identifier: argument
title: File/URL
type: string
description: A file name, URL, or producer name.
required: yes
- identifier: profile
title: Profile
type: string
description: >
The name of a MLT profile with which to load the resource. This defaults
to the composition's profile, but could be overridden by the profile
in MLT XML. Also, the value "auto" triggers profile detection.
- identifier: autoprofile
title: Auto-profile
type: integer
description: Generate a new, custom profile from the encapsulated resource.
minimum: 0
maximum: 1
default: 0
- identifier: producer.*
title: Producer properties
description: A property and its value to apply to the encapsulated producer.
type: properties
mutable: yes
- identifier: consumer.*
title: Consumer properties
description: A property and its value to apply to the encapsulated consumer.
type: properties
mutable: yes
``` |
7e02e368-af5b-4c87-92e4-bebd35c8e989 | {
"language": "YAML"
} | ```yaml
- job:
name: common-bump-milestone
concurrent: false
node: master
properties:
- authorization:
openstack-release:
- job-build
ttx:
- job-build
parameters:
- choice:
name: PROJECT
description: On what project to run?
choices:
- nova
- glance
- keystone
- horizon
- quantum
- melange
- cinder
- ceilometer
- python-ceilometerclient
- python-cinderclient
- python-novaclient
- python-openstackclient
- python-glanceclient
- python-keystoneclient
- python-quantumclient
- python-swiftclient
- choice:
name: BRANCH
description: The branch to update.
choices:
- master
- milestone-proposed
- string:
name: VALUE
description: 'The milestone value to set for this branch. E.g., "e4" or "rc1".'
builders:
- shell: "/usr/local/jenkins/slave_scripts/bump-milestone.sh"
```
Add Heat to common-bump-milestone job | ```yaml
- job:
name: common-bump-milestone
concurrent: false
node: master
properties:
- authorization:
openstack-release:
- job-build
ttx:
- job-build
parameters:
- choice:
name: PROJECT
description: On what project to run?
choices:
- nova
- glance
- keystone
- horizon
- quantum
- cinder
- ceilometer
- heat
- choice:
name: BRANCH
description: The branch to update.
choices:
- master
- milestone-proposed
- string:
name: VALUE
description: 'The milestone value to set for this branch. E.g., "e4" or "rc1".'
builders:
- shell: "/usr/local/jenkins/slave_scripts/bump-milestone.sh"
``` |
a99e357e-66f3-40fe-ba42-a3d1bf51da88 | {
"language": "YAML"
} | ```yaml
---
site: dclg_planning
whitehall_slug: department-for-communities-and-local-government
homepage: https://www.gov.uk/government/collections/planning-practice-guidance
tna_timestamp: 20140724121321
host: planningguidance.planningportal.gov.uk
homepage_furl: www.gov.uk/dclg
options: --query-string p
aliases:
- planningguidance.communities.gov.uk
```
Update configuration for DCL Planning | ```yaml
---
site: dclg_planning
whitehall_slug: department-for-communities-and-local-government
homepage: https://www.gov.uk/government/collections/planning-practice-guidance
homepage_title: Planning guidance
tna_timestamp: 20140724121321
host: planningguidance.planningportal.gov.uk
options: --query-string p
aliases:
- planningguidance.communities.gov.uk
``` |
e1d27e0e-e8d4-43c8-8a90-002f498fce05 | {
"language": "YAML"
} | ```yaml
---
name: North Sea Camp
nomis_id: NSI
address: |-
Freiston
postcode: PE22 0QX
email_address: [email protected]
phone_no: 01205 769 368
enabled: true
private: false
closed: false
recurring:
sat:
- 0900-1130
- 1330-1545
sun:
- 0900-1130
- 1330-1545
wed:
- 1330-1545
unbookable:
- 2019-12-25
- 2020-01-01
anomalous:
2019-12-27:
- 1330-1530
2019-12-30:
- 1330-1530
```
Fix indentation in yaml file | ```yaml
---
name: North Sea Camp
nomis_id: NSI
address: |-
Freiston
postcode: PE22 0QX
email_address: [email protected]
phone_no: 01205 769 368
enabled: true
private: false
closed: false
recurring:
sat:
- 0900-1130
- 1330-1545
sun:
- 0900-1130
- 1330-1545
wed:
- 1330-1545
unbookable:
- 2019-12-25
- 2020-01-01
anomalous:
2019-12-27:
- 1330-1530
2019-12-30:
- 1330-1530
``` |
3ca309a3-3977-425c-a444-5ceeae1cb832 | {
"language": "YAML"
} | ```yaml
command: Comando a repetir (dejar en blanco para enviar el último comando en el historial):
description: Repite un comando x veces
empty_times: No se especificó el número de repeticiones.
invalid_times: El valor no es un número válido.
times: Número de veces que el comando se repetirá:
```
Fix minor errors on the Spanish translation | ```yaml
command: "Comando a repetir (dejar en blanco para enviar el último comando en el historial):"
description: Repite un comando x veces
empty_times: No se especificó el número de repeticiones.
invalid_times: El valor no es un número válido.
times: "Número de veces que el comando se repetirá:"``` |
a8679c7b-d468-4550-acd4-4c27f5278f23 | {
"language": "YAML"
} | ```yaml
parameters:
name: ''
formula: ''
head: false
jobs:
- job: ${{ parameters.name }}
pool:
vmImage: macOS-10.13
steps:
- script: sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
- ${{ if eq(parameters.head, true) }}:
- script: brew install --verbose --HEAD ./${{ parameters.formula }}.rb
- ${{ if eq(parameters.head, false) }}:
- script: brew install --verbose ./${{ parameters.formula }}.rb
```
Set up Azure Pipelines to build on Mojave too | ```yaml
parameters:
name: ''
formula: ''
head: false
jobs:
- job: ${{ parameters.name }}
strategy:
matrix:
HighSierra:
VM_IMAGE: macOS-10.13
XCODE_VERSION: '10.1'
Mojave:
VM_IMAGE: macOS-10.14
XCODE_VERSION: '10.2'
pool:
vmImage: $(VM_IMAGE)
steps:
- script: sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
- ${{ if eq(parameters.head, true) }}:
- script: brew install --verbose --HEAD ./${{ parameters.formula }}.rb
- ${{ if eq(parameters.head, false) }}:
- script: brew install --verbose ./${{ parameters.formula }}.rb
``` |
9bfb6a89-91ff-419b-8c06-cff0a329a051 | {
"language": "YAML"
} | ```yaml
---
pages:
- coders.md
hide_body: false
is_partial: false
fields:
- name: title
label: Title
type: text
hidden: false
default: ''
- name: date
label: Date
type: datetime
hidden: false
default: ''
- name: display_title
label: Display title
type: text
hidden: false
default:
- name: subtitle
label: Subtitle
type: text
hidden: false
default:
- name: hero
label: Hero
type: field_group
fields:
- name: image
label: Image
type: file
hidden: false
default: ''
- name: color
label: Color
type: text
hidden: false
default: ''
hidden: false
default:
- name: call_to_action
label: Call to action
type: field_group
fields:
- name: title
label: Title
type: text
hidden: false
default: ''
- name: url
label: Url
type: text
hidden: false
default: ''
- name: body
label: Body
type: text
hidden: false
default: ''
hidden: false
default:
- name: sections
label: Sections
type: list
hidden: false
default:
-
- name: collection
label: Collection
type: text
hidden: false
default: coders
```
Update from Forestry.io - Updated Forestry configuration | ```yaml
---
pages:
- coders.md
hide_body: false
is_partial: false
fields:
- name: title
label: Title
type: text
hidden: false
default: ''
- name: date
label: Date
type: datetime
hidden: true
default: ''
- name: display_title
label: Display title
type: text
hidden: false
default:
- name: subtitle
label: Subtitle
type: text
hidden: false
default:
- name: hero
label: Hero
type: field_group
fields:
- name: image
label: Image
type: file
hidden: false
default: ''
- name: color
label: Color
type: text
hidden: false
default: ''
hidden: false
default:
- name: call_to_action
label: Call to action
type: field_group
fields:
- name: title
label: Title
type: text
hidden: false
default: ''
- name: url
label: Url
type: text
hidden: false
default: ''
- name: body
label: Body
type: text
hidden: false
default: ''
hidden: false
default:
- name: sections
label: Sections
type: list
hidden: false
default:
-
- name: collection
label: Collection
type: text
hidden: false
default: coders
``` |
17ad3fed-ef00-44d7-9751-52dc926199ee | {
"language": "YAML"
} | ```yaml
---
- name: Install java
become: yes
apt: name=default-jdk
- name: Install IntelliJ IDEA
unarchive:
src: https://download-cf.jetbrains.com/idea/ideaIU-2017.2.4-no-jdk.tar.gz
dest: "{{ home_dir }}/opt/"
remote_src: yes
creates: "{{ home_dir }}/opt/idea-IU-172.4155.36/bin/idea.sh"
```
Work around timeout downloading IDEA | ```yaml
---
- name: Install java
become: yes
apt: name=default-jdk
- stat: path="{{ home_dir }}/opt/idea-IU-172.4155.36/bin/idea.sh"
register: idea_sh_file
# Work around https://github.com/ansible/ansible/issues/23864
- name: Download IntelliJ IDEA
get_url:
url: https://download-cf.jetbrains.com/idea/ideaIU-2017.2.4-no-jdk.tar.gz
dest: /tmp/ideaIU-2017.2.4-no-jdk.tar.gz
checksum: sha1:3a4159c9074d740371da602c08500a173be982f7
timeout: 300
when: idea_sh_file.stat.exists == False
- name: Install IntelliJ IDEA
unarchive:
src: /tmp/ideaIU-2017.2.4-no-jdk.tar.gz
dest: "{{ home_dir }}/opt/"
creates: "{{ home_dir }}/opt/idea-IU-172.4155.36/bin/idea.sh"
``` |
0643dc60-73a4-4f25-8823-a1e26d7ec19b | {
"language": "YAML"
} | ```yaml
---
# Copyright 2016, Rackspace US, Inc.
#
# 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.
ceilometer_service_publicuri: "{{ openstack_service_publicuri_proto|default(ceilometer_service_proto) }}://{{ external_lb_vip_address }}:{{ ceilometer_service_port }}"
ceilometer_service_adminurl: "{{ ceilometer_service_adminuri }}/"
ceilometer_service_region: "{{ service_region }}"
ceilometer_service_in_ldap: "{{ service_ldap_backend_enabled }}"
ceilometer_aodh_enabled: groups['aodh_all'] is defined and groups['aodh_all'] | length > 0
ceilometer_gnocchi_enabled: groups['gnocchi_all'] is defined and groups['gnocchi_all'] | length > 0
# Ensure that the package state matches the global setting
ceilometer_package_state: "{{ package_state }}"
```
Enable Gnocchi and Aodh when inv groups non-empty | ```yaml
---
# Copyright 2016, Rackspace US, Inc.
#
# 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.
ceilometer_service_publicuri: "{{ openstack_service_publicuri_proto|default(ceilometer_service_proto) }}://{{ external_lb_vip_address }}:{{ ceilometer_service_port }}"
ceilometer_service_adminurl: "{{ ceilometer_service_adminuri }}/"
ceilometer_service_region: "{{ service_region }}"
ceilometer_service_in_ldap: "{{ service_ldap_backend_enabled }}"
ceilometer_aodh_enabled: "{{ groups['aodh_all'] is defined and groups['aodh_all'] | length > 0 }}"
ceilometer_gnocchi_enabled: "{{ groups['gnocchi_all'] is defined and groups['gnocchi_all'] | length > 0 }}"
# Ensure that the package state matches the global setting
ceilometer_package_state: "{{ package_state }}"
``` |
66cfb709-e39d-4802-ab77-fc9ae5a7500e | {
"language": "YAML"
} | ```yaml
imports:
- { resource: services.yml }
# The secret is only required to sign fragment URLs which is not used
framework:
secret: ''
default_locale: en
security:
providers:
contao_manager_user_provider:
id: contao_manager.security.user_provider
encoders:
Symfony\Component\Security\Core\User\UserInterface: bcrypt
firewalls:
api:
stateless: true
guard:
authenticators:
- Contao\ManagerApi\Security\JwtAuthenticator
- Contao\ManagerApi\Security\TokenAuthenticator
entry_point: Contao\ManagerApi\Security\JwtAuthenticator
anonymous: ~
access_control:
- { path: ^/api/session$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/api, roles: IS_AUTHENTICATED_FULLY }
```
Use the *auto* password encoder in Symfony | ```yaml
imports:
- { resource: services.yml }
# The secret is only required to sign fragment URLs which is not used
framework:
secret: ''
default_locale: en
security:
providers:
contao_manager_user_provider:
id: contao_manager.security.user_provider
encoders:
Symfony\Component\Security\Core\User\UserInterface: auto
firewalls:
api:
stateless: true
guard:
authenticators:
- Contao\ManagerApi\Security\JwtAuthenticator
- Contao\ManagerApi\Security\TokenAuthenticator
entry_point: Contao\ManagerApi\Security\JwtAuthenticator
anonymous: ~
access_control:
- { path: ^/api/session$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/api, roles: IS_AUTHENTICATED_FULLY }
``` |
92f8ca07-2adb-4572-b641-b8694140adea | {
"language": "YAML"
} | ```yaml
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
first:
site_name: "Goldberg"
site_subtitle: "A website development tool for Ruby on Rails"
public_role_id: <%= Fixtures.identify(:Student_role) %>
session_timeout: 7200
default_markup_style_id: <%= Fixtures.identify(:markup_style1) %>
site_default_page_id: <%= Fixtures.identify(:content_home) %>
not_found_page_id: <%= Fixtures.identify(:content_notfound) %>
permission_denied_page_id: <%= Fixtures.identify(:content_denied) %>
session_expired_page_id: <%= Fixtures.identify(:content_expired) %>
menu_depth: 3
start_path: "http://localhost:3000/"
site_url_prefix: 0
self_reg_enabled: "null"
self_reg_role_id: 0
self_reg_confirmation_required: 11
self_reg_confirmation_error_page_id: 0
```
Change to fixture file for tests. | ```yaml
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
first:
site_name: "Goldberg"
site_subtitle: "A website development tool for Ruby on Rails"
public_role_id: <%= Fixtures.identify(:Student_role) %>
session_timeout: 7200
default_markup_style_id: <%= Fixtures.identify(:markup_style1) %>
site_default_page_id: <%= Fixtures.identify(:content_home) %>
not_found_page_id: <%= Fixtures.identify(:content_notfound) %>
permission_denied_page_id: <%= Fixtures.identify(:content_denied) %>
session_expired_page_id: <%= Fixtures.identify(:content_expired) %>
menu_depth: 3
start_path: "http://localhost:3000/"
site_url_prefix: 0
self_reg_enabled: null
self_reg_role_id: 0
self_reg_confirmation_required: 11
self_reg_confirmation_error_page_id: 0
``` |
3e4f1aab-ff36-444e-a6eb-ace95efe95ae | {
"language": "YAML"
} | ```yaml
name: Check for NVDA-2020.4
on:
push:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 * * * *'
jobs:
update-release-link:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update release
run: |
import re
import urllib
url = "https://github.com/nvaccess/nvda/releases/latest"
response = urllib.urlopen(url)
text = response.read()
def hasReleaseUpdate():
if "2020.4" in text:
return True
return False
if hasReleaseUpdate():
with open("_layouts/default.html", 'r+') as f:
text = f.read()
text = re.sub(".3", ".4", text)
f.seek(0)
f.write(text)
f.truncate()
else:
print("Release not updated yet")
shell: python
- name: Push changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Update release link"
git push
```
Remove push event after debugging | ```yaml
name: Check for NVDA-2020.4
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 * * * *'
jobs:
update-release-link:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update release
run: |
import re
import urllib
url = "https://github.com/nvaccess/nvda/releases/latest"
response = urllib.urlopen(url)
text = response.read()
def hasReleaseUpdate():
if "2020.4" in text:
return True
return False
if hasReleaseUpdate():
with open("_layouts/default.html", 'r+') as f:
text = f.read()
text = re.sub(".3", ".4", text)
f.seek(0)
f.write(text)
f.truncate()
else:
print("Release not updated yet")
shell: python
- name: Push changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Update release link"
git push
``` |
b3443132-8e6f-40b5-a7da-482e5be35ed7 | {
"language": "YAML"
} | ```yaml
upload:
dir: upload
details:
- analysis: scRNA-seq
algorithm:
umi_type: harvard-indrop
singlecell_quantifier: kallisto
minimum_barcode_depth: 500
description: Test1
files:
- ../data/Harvard-inDrop/r1.fq.gz
- ../data/Harvard-inDrop/r2.fq.gz
genome_build: mm9
```
Switch single-cell test to use Rapmap. | ```yaml
upload:
dir: upload
details:
- analysis: scRNA-seq
algorithm:
umi_type: harvard-indrop
singlecell_quantifier: rapmap
minimum_barcode_depth: 500
description: Test1
files:
- ../data/Harvard-inDrop/r1.fq.gz
- ../data/Harvard-inDrop/r2.fq.gz
genome_build: mm9
``` |
bfce8732-1706-4482-9750-034fa8d8f2de | {
"language": "YAML"
} | ```yaml
version: "3"
services:
majavashakki-mongo:
image: mongo
restart: always
volumes:
- majavashakki-data:/data/db
ports:
- 27017:27017
majavashakki-mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
volumes:
majavashakki-data:```
Fix mongo-express not finding mongo running on docker | ```yaml
version: "3"
services:
majavashakki-mongo:
image: mongo
restart: always
volumes:
- majavashakki-data:/data/db
ports:
- 27017:27017
majavashakki-mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_SERVER: majavashakki-mongo
volumes:
majavashakki-data:``` |
8028cfa3-7d5c-4474-867e-31ea5af8223e | {
"language": "YAML"
} | ```yaml
AllCops:
Exclude:
- db/schema.rb
LineLength:
Max: 130
MethodLength:
Max: 20
AsciiComments:
Enabled: false
Documentation:
Enabled: false
```
Fix format of exclude directories to newer format | ```yaml
AllCops:
Exclude:
- db/schema.rb
- node_modules/**/*
- public/js/ext/**/*
LineLength:
Max: 130
MethodLength:
Max: 20
AsciiComments:
Enabled: false
Documentation:
Enabled: false
``` |
e9e6f5d2-bcfa-4a93-8382-dd42856a7e00 | {
"language": "YAML"
} | ```yaml
Categories:
- Theming
License: GPL-3.0-only
AuthorName: Donno
AuthorEmail: [email protected]
SourceCode: https://github.com/Donnnno/Arcticons
IssueTracker: https://github.com/Donnnno/Arcticons/issues
Changelog: https://github.com/Donnnno/Arcticons/blob/main/CHANGELOG.md
Donate: https://paypal.me/onnovdd
Liberapay: Donno
AutoName: Arcticons Light
RepoType: git
Repo: https://github.com/Donnnno/Arcticons
Builds:
- versionName: 2.0.0
versionCode: 64
commit: 2.0.0
subdir: app
gradle:
- light
- versionName: 2.0.5
versionCode: 65
commit: 5d0410f91e6f095ab9b42afc152315ebc16d51c3
subdir: app
gradle:
- light
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
UpdateCheckName: com.donnnno.arcticons
CurrentVersion: 2.0.5
CurrentVersionCode: 65
```
Update Arcticons Light to 2.1.0 (66) | ```yaml
Categories:
- Theming
License: GPL-3.0-only
AuthorName: Donno
AuthorEmail: [email protected]
SourceCode: https://github.com/Donnnno/Arcticons
IssueTracker: https://github.com/Donnnno/Arcticons/issues
Changelog: https://github.com/Donnnno/Arcticons/blob/main/CHANGELOG.md
Donate: https://paypal.me/onnovdd
Liberapay: Donno
AutoName: Arcticons Light
RepoType: git
Repo: https://github.com/Donnnno/Arcticons
Builds:
- versionName: 2.0.0
versionCode: 64
commit: 2.0.0
subdir: app
gradle:
- light
- versionName: 2.0.5
versionCode: 65
commit: 5d0410f91e6f095ab9b42afc152315ebc16d51c3
subdir: app
gradle:
- light
- versionName: 2.1.0
versionCode: 66
commit: 4612c60580e0f0df78187016090b8a2de4dab2a3
subdir: app
gradle:
- light
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
UpdateCheckName: com.donnnno.arcticons
CurrentVersion: 2.1.0
CurrentVersionCode: 66
``` |
a5ddd999-1bf8-43a4-a923-d5c69110b0aa | {
"language": "YAML"
} | ```yaml
AntiFeatures:
- NonFreeNet
Categories:
- Internet
License: MIT
SourceCode: https://github.com/92lleo/WhatsappWebToGo
IssueTracker: https://github.com/92lleo/WhatsappWebToGo/issues
Changelog: https://github.com/92lleo/WhatsappWebToGo/releases
AutoName: WhatsApp Web To Go
Description: |-
''WhatsappWeb'' lets you access WhatsApp Web on your mobile phone or
tablet. It has full support for sending audio and pictures / video. With a
clean and easy interface it's fun to use - it even shows up as running on
an Android phone on the phone where WhatsApp is installed!
This app is in no way affiliated with WhatsApp Inc. The rights for WhatsApp
and WhatsApp Web belong to WhatsApp Inc. This app is a private project to
enable the use of WhatsApp Web on Android Devices.
RepoType: git
Repo: https://github.com/92lleo/WhatsappWebToGo
Builds:
- versionName: 1.5.3
versionCode: 28
commit: v1.5.3
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 1.5.3
CurrentVersionCode: 28
```
Update WhatsApp Web To Go to 1.6.0 (29) | ```yaml
AntiFeatures:
- NonFreeNet
Categories:
- Internet
License: MIT
SourceCode: https://github.com/92lleo/WhatsappWebToGo
IssueTracker: https://github.com/92lleo/WhatsappWebToGo/issues
Changelog: https://github.com/92lleo/WhatsappWebToGo/releases
AutoName: WhatsApp Web To Go
Description: |-
''WhatsappWeb'' lets you access WhatsApp Web on your mobile phone or
tablet. It has full support for sending audio and pictures / video. With a
clean and easy interface it's fun to use - it even shows up as running on
an Android phone on the phone where WhatsApp is installed!
This app is in no way affiliated with WhatsApp Inc. The rights for WhatsApp
and WhatsApp Web belong to WhatsApp Inc. This app is a private project to
enable the use of WhatsApp Web on Android Devices.
RepoType: git
Repo: https://github.com/92lleo/WhatsappWebToGo
Builds:
- versionName: 1.5.3
versionCode: 28
commit: v1.5.3
subdir: app
gradle:
- yes
- versionName: 1.6.0
versionCode: 29
commit: v1.6.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 1.6.0
CurrentVersionCode: 29
``` |
bea580fb-6d72-4cd0-b16b-f23611a9d3c4 | {
"language": "YAML"
} | ```yaml
Categories:
- Time
- System
License: GPL-3.0-or-later
AuthorName: k3b
SourceCode: https://github.com/k3b/CalEF
IssueTracker: https://github.com/k3b/CalEF/issues
Changelog: https://github.com/k3b/CalEF/releases
Donate: https://f-droid.org/donate
AutoName: 'CalEF: Calendar Entry Formatter'
RepoType: git
Repo: https://github.com/k3b/CalEF
Builds:
- versionName: 1.0.1
versionCode: 2
commit: b0d5b59fb20d13b42d27c55e7d3bf09578ed8fa9
subdir: app
gradle:
- yes
AutoUpdateMode: Version
UpdateCheckMode: Tags
CurrentVersion: 1.0.1
CurrentVersionCode: 2
```
Update CalEF: Calendar Entry Formatter to 1.1.0 (3) | ```yaml
Categories:
- Time
- System
License: GPL-3.0-or-later
AuthorName: k3b
SourceCode: https://github.com/k3b/CalEF
IssueTracker: https://github.com/k3b/CalEF/issues
Changelog: https://github.com/k3b/CalEF/releases
Donate: https://f-droid.org/donate
AutoName: 'CalEF: Calendar Entry Formatter'
RepoType: git
Repo: https://github.com/k3b/CalEF
Builds:
- versionName: 1.0.1
versionCode: 2
commit: b0d5b59fb20d13b42d27c55e7d3bf09578ed8fa9
subdir: app
gradle:
- yes
- versionName: 1.1.0
versionCode: 3
commit: cc34092e41bf6ee15f985c61ff3641eb0e00ee3f
subdir: app
gradle:
- yes
AutoUpdateMode: Version
UpdateCheckMode: Tags
CurrentVersion: 1.1.0
CurrentVersionCode: 3
``` |
8023c002-e36d-4b4b-8757-d26bb73e388f | {
"language": "YAML"
} | ```yaml
Categories:
- Sports & Health
License: MIT
AuthorName: Markus Fisch
AuthorEmail: [email protected]
AuthorWebSite: https://www.markusfisch.de
SourceCode: https://github.com/markusfisch/Libra
IssueTracker: https://github.com/markusfisch/Libra/issues
Changelog: https://github.com/markusfisch/Libra/releases
AutoName: Decisions
RepoType: git
Repo: https://github.com/markusfisch/Libra
Builds:
- versionName: 1.10.0
versionCode: 14
commit: 1.10.0
subdir: app
gradle:
- yes
- versionName: 1.12.0
versionCode: 16
commit: 1.12.0
subdir: app
gradle:
- yes
- versionName: 1.12.1
versionCode: 17
commit: 1.12.1
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 1.12.1
CurrentVersionCode: 17
```
Update Decisions to 1.12.2 (18) | ```yaml
Categories:
- Sports & Health
License: MIT
AuthorName: Markus Fisch
AuthorEmail: [email protected]
AuthorWebSite: https://www.markusfisch.de
SourceCode: https://github.com/markusfisch/Libra
IssueTracker: https://github.com/markusfisch/Libra/issues
Changelog: https://github.com/markusfisch/Libra/releases
AutoName: Decisions
RepoType: git
Repo: https://github.com/markusfisch/Libra
Builds:
- versionName: 1.10.0
versionCode: 14
commit: 1.10.0
subdir: app
gradle:
- yes
- versionName: 1.12.0
versionCode: 16
commit: 1.12.0
subdir: app
gradle:
- yes
- versionName: 1.12.1
versionCode: 17
commit: 1.12.1
subdir: app
gradle:
- yes
- versionName: 1.12.2
versionCode: 18
commit: e2fcee03b8ead10b592280d4f5ccffedcb4c49b7
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 1.12.2
CurrentVersionCode: 18
``` |
aa967078-f865-4172-aa63-2dba883ee689 | {
"language": "YAML"
} | ```yaml
rfs:
version:
id: '@project.groupId@'
short: '@project.version@'
full: '@project.version@ (@git.commit.id.describe@)'
```
Include build time in full version | ```yaml
rfs:
version:
id: '@project.groupId@'
short: '@project.version@'
full: '@project.version@ (@git.commit.id.describe@, built on @git.build.time@)'
``` |
505ca83e-42f0-41c3-99da-cb02de1f16c9 | {
"language": "YAML"
} | ```yaml
Categories:
- Internet
License: GPL-3.0-or-later
AuthorName: Pawel Dube
SourceCode: https://codeberg.org/Starfish/TinyWeatherForecastGermany
IssueTracker: https://codeberg.org/Starfish/TinyWeatherForecastGermany/issues
AutoName: Tiny Weather Forecast Germany
RepoType: git
Repo: https://codeberg.org/Starfish/TinyWeatherForecastGermany
Builds:
- versionName: '0.51'
versionCode: 12
commit: '0.51'
subdir: app
gradle:
- yes
- versionName: '0.52'
versionCode: 13
commit: '0.52'
subdir: app
gradle:
- yes
- versionName: 0.52.1
versionCode: 14
commit: 0.52.1
subdir: app
gradle:
- yes
- versionName: 0.52.2
versionCode: 15
commit: 0.52.2
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 0.52.2
CurrentVersionCode: 15
```
Update Tiny Weather Forecast Germany to 0.52.3 (16) | ```yaml
Categories:
- Internet
License: GPL-3.0-or-later
AuthorName: Pawel Dube
SourceCode: https://codeberg.org/Starfish/TinyWeatherForecastGermany
IssueTracker: https://codeberg.org/Starfish/TinyWeatherForecastGermany/issues
AutoName: Tiny Weather Forecast Germany
RepoType: git
Repo: https://codeberg.org/Starfish/TinyWeatherForecastGermany
Builds:
- versionName: '0.51'
versionCode: 12
commit: '0.51'
subdir: app
gradle:
- yes
- versionName: '0.52'
versionCode: 13
commit: '0.52'
subdir: app
gradle:
- yes
- versionName: 0.52.1
versionCode: 14
commit: 0.52.1
subdir: app
gradle:
- yes
- versionName: 0.52.2
versionCode: 15
commit: 0.52.2
subdir: app
gradle:
- yes
- versionName: 0.52.3
versionCode: 16
commit: 0.52.3
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 0.52.3
CurrentVersionCode: 16
``` |
be43cc52-f885-451b-a2fb-9335d5b1b370 | {
"language": "YAML"
} | ```yaml
homepage: http://github.com/yogsototh/human-readable-duration#readme
changelog-type: ''
hash: df9d93b9f2abffbd257677f0b7fc6069bc22cba800c4be0375cd41ea518aa4ed
test-bench-deps: {}
maintainer: [email protected]
synopsis: Provide duration helper
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
all-versions:
- '0.1.0.0'
author: Yann Esposito
latest: '0.1.0.0'
description-type: haddock
description: ! 'This is a minimal Haskell library to display duration.
> let duration = 2 * ms + 3 * oneSecond + 2 * minute + 33*day + 2*year
> humanReadableDuration duration
> -- will return: "2 years 33 days 2 min 3s 32ms"
> getYears duration
> -- will return 2
> getDays duration
> -- will return 730
> getMs duration
> -- will return 730'
license-name: BSD3
```
Update from Hackage at 2016-01-12T09:16:00+0000 | ```yaml
homepage: http://github.com/yogsototh/human-readable-duration#readme
changelog-type: ''
hash: 2e9b71270fa2d9665ffab64e284248eb8f62899b672b7a41713923aeefd1a45f
test-bench-deps: {}
maintainer: [email protected]
synopsis: Provide duration helper
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
time: ! '>=1.0'
all-versions:
- '0.1.0.0'
- '0.1.1.0'
author: Yann Esposito
latest: '0.1.1.0'
description-type: haddock
description: ! 'This is a minimal Haskell library to display duration.
> let duration = 2 * ms + 3 * oneSecond + 2 * minute + 33*day + 2*year
> humanReadableDuration duration
> -- will return: "2 years 33 days 2 min 3s 2ms"
> getYears duration
> -- will return 2
> getDays duration
> -- will return 763
> getMs duration
> -- will return 65923323002'
license-name: BSD3
``` |
3ee94a93-11c4-4b47-b200-12b455f4f932 | {
"language": "YAML"
} | ```yaml
---
- name: Install Composer
shell: curl -fsSL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
args:
warn: no
- name: Ensure vendor folder exists
file: path="{{ item }}" state=directory owner=azuracast group=www-data mode=0744
with_items:
- "{{ www_base }}/vendor"
- name: Install Composer Dependencies (Development)
become: true
become_user: azuracast
shell: composer install
args:
chdir: "{{ www_base }}"
when: app_env == "development"
- name: Install Composer Dependencies (Production)
become: true
become_user: azuracast
shell: composer install --no-dev --optimize-autoloader
args:
chdir: "{{ www_base }}"
when: app_env == "production"
```
Allow Ansible to override composer.lock from composer merge plugin. | ```yaml
---
- name: Install Composer
shell: curl -fsSL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
args:
warn: no
- name: Ensure vendor folder exists
file: path="{{ item }}" state=directory owner=azuracast group=www-data mode=0744
with_items:
- "{{ www_base }}/vendor"
- "{{ www_base }}/composer.lock"
- name: Install Composer Dependencies (Development)
become: true
become_user: azuracast
shell: composer install
args:
chdir: "{{ www_base }}"
when: app_env == "development"
- name: Install Composer Dependencies (Production)
become: true
become_user: azuracast
shell: composer install --no-dev --optimize-autoloader
args:
chdir: "{{ www_base }}"
when: app_env == "production"
``` |
3d962fd6-815b-47c2-8127-dd71bbd517da | {
"language": "YAML"
} | ```yaml
AntiFeatures:
- NonFreeNet
Categories:
- Internet
- Reading
- Multimedia
License: AGPL-3.0-only
WebSite: https://www.reddit.com/r/Infinity_For_Reddit/
SourceCode: https://github.com/Docile-Alligator/Infinity-For-Reddit
IssueTracker: https://github.com/Docile-Alligator/Infinity-For-Reddit/issues/
Translation: https://poeditor.com/join/project?hash=b2IRyfaJv6
Changelog: https://github.com/Docile-Alligator/Infinity-For-Reddit/releases
AutoName: Infinity
RepoType: git
Repo: https://github.com/Docile-Alligator/Infinity-For-Reddit.git
Builds:
- versionName: 4.0.7
versionCode: 43
commit: v4.0.7
subdir: app
gradle:
- yes
- versionName: 4.1.0
versionCode: 50
commit: v4.1.0
subdir: app
gradle:
- yes
- versionName: 4.1.1
versionCode: 52
commit: v4.1.1
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags ^v[0-9.]+$
CurrentVersion: 4.1.1
CurrentVersionCode: 52
```
Update Infinity to 4.2.0 (55) | ```yaml
AntiFeatures:
- NonFreeNet
Categories:
- Internet
- Reading
- Multimedia
License: AGPL-3.0-only
WebSite: https://www.reddit.com/r/Infinity_For_Reddit/
SourceCode: https://github.com/Docile-Alligator/Infinity-For-Reddit
IssueTracker: https://github.com/Docile-Alligator/Infinity-For-Reddit/issues/
Translation: https://poeditor.com/join/project?hash=b2IRyfaJv6
Changelog: https://github.com/Docile-Alligator/Infinity-For-Reddit/releases
AutoName: Infinity
RepoType: git
Repo: https://github.com/Docile-Alligator/Infinity-For-Reddit.git
Builds:
- versionName: 4.0.7
versionCode: 43
commit: v4.0.7
subdir: app
gradle:
- yes
- versionName: 4.1.0
versionCode: 50
commit: v4.1.0
subdir: app
gradle:
- yes
- versionName: 4.1.1
versionCode: 52
commit: v4.1.1
subdir: app
gradle:
- yes
- versionName: 4.2.0
versionCode: 55
commit: v4.2.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags ^v[0-9.]+$
CurrentVersion: 4.2.0
CurrentVersionCode: 55
``` |
c4668084-8b3c-4d86-b92d-88cb53fe337f | {
"language": "YAML"
} | ```yaml
name: Add a build scan comment to PR
on: pull_request
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: ./
- id: gradle
working-directory: __tests__/samples/kotlin-dsl
run: ./gradlew help
- name: "Comment build scan url"
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Dummy comment for PR: ${{ steps.gradle.outputs.build-scan-url }}'
})
```
Reduce the number of automated comments left on PR | ```yaml
name: Add a build scan comment to PR
on:
pull_request:
types: [assigned, review_requested]
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: ./
- id: gradle
working-directory: __tests__/samples/kotlin-dsl
run: ./gradlew help
- name: "Comment build scan url"
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'PR ready for review: ${{ steps.gradle.outputs.build-scan-url }}'
})
``` |
69438910-5f5c-47d7-ae26-1e5b55ec4d43 | {
"language": "YAML"
} | ```yaml
---
# This task is invoked during the invocation of the playbook below:
#
# ansible-playbook -i host_file dbimage-make.yml -u ubuntu -c ssh
#
# This is invoked on the deployer node AKA localhost as root
- debug: var=deployment_environment
- name: Create directories
file:
path: "{{ item }}"
state: directory
mode: 0755
with_items:
- "{{ baseDir }}/etc/ssh"
- "{{ baseDir }}/etc/trove"
- name: Clean environment
file:
path: "{{ item }}"
state: absent
with_items:
- "{{ baseDir }}/etc/ssh/"
- "{{ baseDir }}/etc/trove/trove-guestagent.conf"
- name: Update apt cache
apt:
update_cache: yes
cache_valid_time: 600
register: apt_update
until: apt_update|success
retries: 5
delay: 60
- name: Install apt packages
apt:
pkg: "{{ item }}"
state: present
register: install_packages
until: install_packages|success
with_items: "{{ dbimage_apt_packages }}"
retries: 5
delay: 20
when: "{{ dbimage_apt_packages }}"
- name: Install pip packages
pip:
name: "{{ dbimage_pip_packages | join(' ') }}"
state: present
register: install_packages
until: install_packages|success
retries: 5
delay: 20
when: "{{ dbimage_pip_packages }}"
```
Clean inventory files that were added for proxy support | ```yaml
---
# This task is invoked during the invocation of the playbook below:
#
# ansible-playbook -i host_file dbimage-make.yml -u ubuntu -c ssh
#
# This is invoked on the deployer node AKA localhost as root
- debug: var=deployment_environment
- name: Create directories
file:
path: "{{ item }}"
state: directory
mode: 0755
with_items:
- "{{ baseDir }}/etc/ssh"
- "{{ baseDir }}/etc/trove"
- name: Clean environment
file:
path: "{{ item }}"
state: absent
with_items:
- "{{ baseDir }}/etc/ssh/"
- "{{ baseDir }}/etc/trove/trove-guestagent.conf"
- "{{ baseDir }}/etc/inventory.yml"
- "{{ baseDir }}/etc/inventory-simulated"
- name: Update apt cache
apt:
update_cache: yes
cache_valid_time: 600
register: apt_update
until: apt_update|success
retries: 5
delay: 60
- name: Install apt packages
apt:
pkg: "{{ item }}"
state: present
register: install_packages
until: install_packages|success
with_items: "{{ dbimage_apt_packages }}"
retries: 5
delay: 20
when: "{{ dbimage_apt_packages }}"
- name: Install pip packages
pip:
name: "{{ dbimage_pip_packages | join(' ') }}"
state: present
register: install_packages
until: install_packages|success
retries: 5
delay: 20
when: "{{ dbimage_pip_packages }}"
``` |
c530399f-6a39-46df-8013-925a44d7ab24 | {
"language": "YAML"
} | ```yaml
name: Linux C++ make-specs
on:
workflow_dispatch:
inputs:
extra_resolve_options:
description: "Extra Resolve Options"
required: false
schedule:
- cron: "0 1 * * *" # 3 AM CET
push:
pull_request:
jobs:
Linux-mkspecs:
uses: steinwurf/linux-mkspecs-action/.github/workflows/[email protected]
with:
extra_resolve_options: ${{ github.event.inputs.extra_resolve_options }}
```
Update Linux C++ make-specs to new version 5.0.0 | ```yaml
name: Linux C++ make-specs
on:
workflow_dispatch:
inputs:
extra_resolve_options:
description: "Extra Resolve Options"
required: false
schedule:
- cron: "0 1 * * *" # 3 AM CET
push:
pull_request:
jobs:
Linux-mkspecs:
uses: steinwurf/linux-mkspecs-action/.github/workflows/[email protected]
with:
extra_resolve_options: ${{ github.event.inputs.extra_resolve_options }}
``` |
946c9369-2817-4d9e-9c45-1ed3d713ac50 | {
"language": "YAML"
} | ```yaml
name: slack-notification
on:
pull_request:
types: [opened]
pull_request_review:
types: [submitted]
pull_request_review_comment:
types: [created]
issues:
types: [opened]
issue_comment:
types: [created]
jobs:
slack-notification:
runs-on: ubuntu-latest
name: Sends a message to Slack when a pull request or an issue is made
steps:
- name: Send message to Slack API
uses: archive/github-actions-slack@master
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: ${{ secrets.SLACK_BOT_CHANNEL }}
slack-text: A new <https://github.com/${{ github.repository }}|${{ github.event_name }}> was made in *${{ github.repository }}*.
slack-optional-icon_emoji: ":robot_face:"
- name: Result from "Send Message"
run: echo "The result was ${{ steps.notify.outputs.slack-result }}"
```
Add slack block to message | ```yaml
name: slack-notification
on:
pull_request:
types: [opened]
pull_request_review:
types: [submitted]
pull_request_review_comment:
types: [created]
issues:
types: [opened]
issue_comment:
types: [created]
jobs:
slack-notification:
runs-on: ubuntu-latest
name: Sends a message to Slack when a pull request or an issue is made
steps:
- name: Send message to Slack API
# if: github.event_name == 'pull_request'
uses: archive/github-actions-slack@master
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: ${{ secrets.SLACK_BOT_CHANNEL }}
slack-text: A new <https://github.com/${{ github.repository }}|Pull Request> was made in *${{ github.repository }}*.
slack-optional-blocks: fromJSON([
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "A new ${{ github.event_name }} was made in *${{ github.repository }}*"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "View on GitHub"
},
"url": "https://github.com/${{ github.repository }}"
}
}
])
- name: Debug event
run echo ${{toJSON(github.event)}}
- name: Result from "Send Message"
run: echo "The result was ${{ steps.notify.outputs.slack-result }}"
``` |
845b4e76-295f-4a3b-a21e-85d3f60e16b1 | {
"language": "YAML"
} | ```yaml
trainingInput:
args: [
"--root_feature_path", "gs://alex-dataflow-scratch/features-scratch/20160925T101632Z",
"--training_output_path", "gs://alex-dataflow-scratch/cloudml/full-data-2012-2016-fixed-chief"]
packageUris: gs://world-fishing-827-ml/alex_vessel_classification/alex_vessel_classification-1.0.tar.gz
pythonModule: models.run_training
scaleTier: CUSTOM
masterType: "standard"
parameterServerType: "standard"
workerType: "large_model"
workerCount: 25
parameterServerCount: 1
region: us-central1
```
Drop worker count back down. | ```yaml
trainingInput:
args: [
"--root_feature_path", "gs://alex-dataflow-scratch/features-scratch/20160925T101632Z",
"--training_output_path", "gs://alex-dataflow-scratch/cloudml/full-data-2012-2016-fixed-chief"]
packageUris: gs://world-fishing-827-ml/alex_vessel_classification/alex_vessel_classification-1.0.tar.gz
pythonModule: models.run_training
scaleTier: CUSTOM
masterType: "standard"
parameterServerType: "standard"
workerType: "large_model"
workerCount: 5
parameterServerCount: 1
region: us-central1
``` |
b8b57840-c796-49c7-8aeb-79a68004f167 | {
"language": "YAML"
} | ```yaml
grpc_release_branch: release-0_13
milestones_link: https://github.com/grpc/grpc/milestones
```
Change links to release 0_14 | ```yaml
grpc_release_branch: release-0_14
milestones_link: https://github.com/grpc/grpc/milestones
``` |
e96e434e-faa2-4bf6-addf-bb293c31dc91 | {
"language": "YAML"
} | ```yaml
homepage: ''
changelog-type: ''
hash: 8a521a794789ca325db53267e076ac2c5e9233a98bdd483762dbff2bf300b3a1
test-bench-deps: {}
maintainer: [email protected]
synopsis: Algebraic structures
changelog: ''
basic-deps:
base: ! '>=4.11 && <5'
util: ! '>=0.1.9 && <0.2'
dual: ! '>=0.1 && <0.2'
all-versions:
- 0.2.0.0
- 0.2.1.0
- 0.2.2.0
- 0.2.2.1
- 0.2.3.0
- 0.2.4.1
- 0.2.4.2
- 0.2.5.0
- 0.2.6.0
- 0.2.7.0
- 0.2.8.0
- 0.2.9.0
- 0.2.10.0
- 0.2.11.0
- 0.2.12.0
- 0.2.13.0
author: M Farkas-Dyck
latest: 0.2.13.0
description-type: haddock
description: ''
license-name: BSD-3-Clause
```
Update from Hackage at 2019-12-24T16:02:25Z | ```yaml
homepage: ''
changelog-type: ''
hash: e9362b68e2943b644b4e07a3b03de8fb73dd80448a2d51db327e7f87a18a774b
test-bench-deps: {}
maintainer: [email protected]
synopsis: Algebraic structures
changelog: ''
basic-deps:
base: ! '>=4.11 && <5'
util: ! '>=0.1.9 && <0.2'
dual: ! '>=0.1 && <0.2'
all-versions:
- 0.2.0.0
- 0.2.1.0
- 0.2.2.0
- 0.2.2.1
- 0.2.3.0
- 0.2.4.1
- 0.2.4.2
- 0.2.5.0
- 0.2.6.0
- 0.2.7.0
- 0.2.8.0
- 0.2.9.0
- 0.2.10.0
- 0.2.11.0
- 0.2.12.0
- 0.2.13.0
- 0.2.13.1
author: M Farkas-Dyck
latest: 0.2.13.1
description-type: haddock
description: ''
license-name: BSD-3-Clause
``` |
56e19072-a74d-4bdb-8af0-c54208392cd6 | {
"language": "YAML"
} | ```yaml
version: 0.0.{build}
image:
- Visual Studio 2017
- Ubuntu
shallow_clone: true
init:
- ps: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.Substring(1) }
platform:
- Any CPU
configuration:
- Release
matrix:
fast_finish: true
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- ps: dotnet --version
- ps: dotnet restore Vsxmd.sln
- ps: ./Vsxmd/Test.ps1 -Prepare
test_script:
- ps: ./Vsxmd/Test.ps1 -Run
artifacts:
- path: 'Vsxmd\**\*.nupkg'
deploy:
- release: v$(APPVEYOR_BUILD_VERSION)
provider: GitHub
draft: false
prerelease: false
auth_token:
secure: cApkFZuYfz7loLotMfbhb53ZIfjjfbY7dr46eu6Q9+yAV+KuSGYGcVTG8Bgx8wka
on:
appveyor_repo_tag: true
```
Leverage MSBuild to restore NuGet package. | ```yaml
version: 0.0.{build}
image:
- Visual Studio 2017
- Ubuntu
shallow_clone: true
init:
- ps: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.Substring(1) }
platform:
- Any CPU
configuration:
- Release
matrix:
fast_finish: true
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: "{version}"
package_version: "{version}"
assembly_version: "{version}"
file_version: "{version}"
informational_version: "{version}"
before_build:
- ps: msbuild -t:restore
- ps: ./Vsxmd/Test.ps1 -Prepare
test_script:
- ps: ./Vsxmd/Test.ps1 -Run
artifacts:
- path: 'Vsxmd\**\*.nupkg'
deploy:
- release: v$(APPVEYOR_BUILD_VERSION)
provider: GitHub
draft: false
prerelease: false
auth_token:
secure: cApkFZuYfz7loLotMfbhb53ZIfjjfbY7dr46eu6Q9+yAV+KuSGYGcVTG8Bgx8wka
on:
appveyor_repo_tag: true
``` |
6c8717d9-d1f7-45c7-92cd-2b872af1a5b6 | {
"language": "YAML"
} | ```yaml
platform:
- x64
environment:
global:
MSYS2_BASEVER: 20150512
matrix:
- MSYS2_ARCH: x86_64
install:
- ps: |
$url = "http://sourceforge.net/projects/mingw-w64/files/"
$url += "Toolchains%20targetting%20Win64/Personal%20Builds/"
$url += "mingw-builds/4.9.2/threads-win32/seh/"
$url += "x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z/download"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z
&7z x -oC:\ x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z > $null
- set PATH=C:\mingw64\bin;%PATH%
- gcc --version
- ps: Start-FileDownload 'http://static.rust-lang.org/dist/rust-1.0.0-x86_64-pc-windows-gnu.exe'
- rust-1.0.0-x86_64-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- rustc --version
- cargo --version
build: false
test_script:
- cargo test --verbose
- cargo build --release
- target\release\hs.exe -v
```
Remove MinGW from AppVeyor build | ```yaml
platform:
- x64
install:
- ps: Start-FileDownload 'http://static.rust-lang.org/dist/rust-1.0.0-x86_64-pc-windows-gnu.exe'
- rust-1.0.0-x86_64-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- rustc --version
- cargo --version
build: false
test_script:
- cargo test --verbose
- cargo build --release
- target\release\hs.exe -v
``` |
b61f0b64-84db-4245-aa1c-a0c7d64b6480 | {
"language": "YAML"
} | ```yaml
ui: mocha-bdd
browserify:
- transform: babelify
browsers:
- name: firefox
version: 37..latest
platform: Mac 10.10
- name: opera
version: latest
platform: Mac 10.10
- name: chrome
version: 36..latest
- name: safari
version: 7..latest
- name: ie
version: 9..latest
- name: android
version: '4.4..latest'
- name: iphone
version: '6.0..latest'
- name: ipad
version: '6.0..latest'
```
Remove iPad from list of platforms to test on sauce labs | ```yaml
ui: mocha-bdd
browserify:
- transform: babelify
browsers:
- name: firefox
version: 37..latest
platform: Mac 10.10
- name: opera
version: latest
platform: Mac 10.10
- name: chrome
version: 36..latest
- name: safari
version: 7..latest
- name: ie
version: 9..latest
- name: android
version: '4.4..latest'
- name: iphone
version: '6.0..latest'
``` |
81800f52-cf31-44c1-8532-c118a2c3a34a | {
"language": "YAML"
} | ```yaml
name: Analyze and build the source
on: push
jobs:
js:
name: js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: yarn install
- name: Bundle data, then run flow
run: |
yarn run bundle-data
yarn run flow check
```
Switch to two simpler steps | ```yaml
name: Analyze and build the source
on: push
jobs:
js:
name: js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: yarn install
- run: yarn run bundle-data
- run: yarn run flow check
``` |
d66867e1-09b5-4514-a4a2-cd44033660a6 | {
"language": "YAML"
} | ```yaml
---
- hosts: all
gather_facts: false
connection: ssh
sudo: yes
tasks:
- include: common/tasks/fireball.yml
- action: fireball
- hosts: all
connection: fireball
tasks:
- include: common/tasks/main.yml
```
Add an apt-get update before even fireball. | ```yaml
---
- hosts: all
gather_facts: false
connection: ssh
tasks:
- name: update dpkg index
apt: update_cache=yes
- hosts: all
gather_facts: false
connection: ssh
tasks:
- include: common/tasks/fireball.yml
- action: fireball
- hosts: all
connection: fireball
tasks:
- include: common/tasks/main.yml
``` |
b333ca77-15fc-4cbf-a061-df6a51d5f84e | {
"language": "YAML"
} | ```yaml
minimums:
Chrome: 66
Safari: 11
Firefox: 64
Internet Explorer: 11
```
Change browser.yml back to Firefox 60 | ```yaml
minimums:
Chrome: 66
Safari: 11
Firefox: 60
Internet Explorer: 11
``` |
0038c466-6c12-4fa0-a79f-02efe350c0f7 | {
"language": "YAML"
} | ```yaml
##
# Separate iOS and Android profiles to require platform specific page objects
##
<% iosdevice =
"DEVICE_TARGET=''
BUNDLE_ID='com.blocksolid.example'
DEVICE_ENDPOINT='http://0.0.0.0:37265'
CODE_SIGN_IDENTITY=''"
%>
<% iossimulator =
"DEVICE_TARGET='4F3865CE-4711-47DF-9545-D0DC417EF2C6'
APP='build/example.app'"
%>
android: PLATFORM=android -r features/support -r features/support/android -r features/step_definitions -e features/support/ios
ios: PLATFORM=ios <%= iossimulator %> -r features/support -r features/support/ios -r features/step_definitions -e features/support/android
```
Change default config device simulator to iPhone 7 on iOS 10 | ```yaml
##
# Separate iOS and Android profiles to require platform specific page objects
##
<% iosdevice =
"DEVICE_TARGET=''
BUNDLE_ID='com.blocksolid.example'
DEVICE_ENDPOINT='http://0.0.0.0:37265'
CODE_SIGN_IDENTITY=''"
%>
<% iossimulator =
"DEVICE_TARGET='3510B964-24B2-44BC-B34C-A766D1EE3075'
APP='build/example.app'"
%>
android: PLATFORM=android -r features/support -r features/support/android -r features/step_definitions -e features/support/ios
ios: PLATFORM=ios <%= iossimulator %> -r features/support -r features/support/ios -r features/step_definitions -e features/support/android
``` |
fc551ef0-6f29-4c97-960e-35a94d71b2cd | {
"language": "YAML"
} | ```yaml
# site.yml
---
- hosts: srv001
sudo: true
roles: []
- hosts: srv002
sudo: true
roles: []
```
Fix Ansible 2.0 deprecation warning for ‘sudo:’ directive | ```yaml
# site.yml
---
- hosts: srv001
become: true
roles: []
- hosts: srv002
become: true
roles: []
``` |
5cc4cd37-a99c-4b29-a15d-023c4dbdd328 | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/tree-sitter/tree-sitter-go#readme
changelog-type: ''
hash: ae93fb106defce8698b78de75f5b159bae0888ce21f501dfb0fe17cd84cf6b26
test-bench-deps: {}
maintainer: [email protected]
synopsis: Tree-sitter grammar/parser for Java
changelog: ''
basic-deps:
base: ! '>=4.12 && <5'
tree-sitter-java-internal: -any
tree-sitter: ! '>=0.3 && <1'
template-haskell: ! '>=2.12.0.0 && <2.15.0.0'
all-versions:
- 0.1.0.0
- 0.2.0.0
- 0.2.0.1
author: Ayman Nadeem, Max Brunsfeld, Tim Clem, Rob Rix, Josh Vera, Rick Winfrey
latest: 0.2.0.1
description-type: haddock
description: This package provides a parser for Java suitable for use with the tree-sitter
package.
license-name: BSD-3-Clause
```
Update from Hackage at 2019-10-03T00:50:20Z | ```yaml
homepage: https://github.com/tree-sitter/tree-sitter-go#readme
changelog-type: markdown
hash: 82490699dc20bc1fe450d9edca6f88404c2755c4286f7116984306094b9ced97
test-bench-deps: {}
maintainer: [email protected]
synopsis: Tree-sitter grammar/parser for Java
changelog: |
# v0.3.0.0
* Adds AST datatypes in `TreeSitter.Java.AST` which you can use with `TreeSitter.Unmarshal`.
basic-deps:
base: ! '>=4.12 && <5'
tree-sitter-java-internal: -any
tree-sitter: ^>=0.4
template-haskell: ! '>=2.12.0.0 && <2.15.0.0'
all-versions:
- 0.1.0.0
- 0.2.0.0
- 0.2.0.1
- 0.3.0.0
author: Ayman Nadeem, Max Brunsfeld, Tim Clem, Rob Rix, Josh Vera, Rick Winfrey
latest: 0.3.0.0
description-type: haddock
description: This package provides a parser for Java suitable for use with the tree-sitter
package.
license-name: BSD-3-Clause
``` |
18bc31cf-a1af-47ad-86ee-dbe3c142889c | {
"language": "YAML"
} | ```yaml
# This workflow will do a clean install of node dependencies, build the source code and push the binaries to the deployment repository.
name: Continuous Delivery and Deployment
on:
push:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build-hash
- name: Create CNAME file
uses: finnp/create-file-action@master
env:
FILE_NAME: build/dist/CNAME
FILE_DATA: develop.bitshares.org
- name: Deploy
uses: s0/git-publish-subdir-action@master
env:
REPO: [email protected]:bitshares/develop.bitshares.org.git
BRANCH: master
FOLDER: build/dist
SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_UI_DEPLOYMENT_KEY }}
```
Fix automated deployment due to path change | ```yaml
# This workflow will do a clean install of node dependencies, build the source code and push the binaries to the deployment repository.
name: Continuous Delivery and Deployment
on:
push:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build-hash
- name: Create CNAME file
uses: finnp/create-file-action@master
env:
FILE_NAME: build/hash-history/CNAME
FILE_DATA: develop.bitshares.org
- name: Deploy
uses: s0/git-publish-subdir-action@master
env:
REPO: [email protected]:bitshares/develop.bitshares.org.git
BRANCH: master
FOLDER: build/hash-history
SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_UI_DEPLOYMENT_KEY }}
``` |
c33dd558-29cb-4b09-82a6-bc10989f6ac3 | {
"language": "YAML"
} | ```yaml
homepage: https://github.com/swift-nav/preamble
changelog-type: ''
hash: 011ab09a701ef20e941f41b5e923b03d1777576c1e703cdc52d1dce4f250f9a2
test-bench-deps: {}
maintainer: Mark Fine <[email protected]>
synopsis: Yet another prelude.
changelog: ''
basic-deps:
exceptions: -any
base: ==4.8.*
time: -any
shakers: -any
unordered-containers: -any
text: -any
basic-prelude: -any
monad-control: -any
fast-logger: -any
lens: -any
text-manipulate: -any
mtl: -any
transformers-base: -any
monad-logger: -any
resourcet: -any
aeson: -any
template-haskell: -any
safe: -any
all-versions:
- '0.0.1'
- '0.0.2'
- '0.0.3'
- '0.0.4'
- '0.0.5'
- '0.0.6'
author: Swift Navigation Inc.
latest: '0.0.6'
description-type: haddock
description: A prelude built on basic-prelude.
license-name: MIT
```
Update from Hackage at 2016-12-23T22:18:54Z | ```yaml
homepage: https://github.com/swift-nav/preamble
changelog-type: ''
hash: 618d8ae25f0ab537afd9b6074661e6610f78095ef7f1a3b26d0a41cb2206ec53
test-bench-deps: {}
maintainer: Mark Fine <[email protected]>
synopsis: Yet another prelude.
changelog: ''
basic-deps:
exceptions: -any
base: ==4.8.*
time: -any
shakers: -any
unordered-containers: -any
text: -any
basic-prelude: -any
monad-control: -any
fast-logger: -any
lens: -any
text-manipulate: -any
mtl: -any
transformers-base: -any
monad-logger: -any
resourcet: -any
aeson: -any
template-haskell: -any
safe: -any
all-versions:
- '0.0.1'
- '0.0.2'
- '0.0.3'
- '0.0.4'
- '0.0.5'
- '0.0.6'
- '0.0.7'
author: Swift Navigation Inc.
latest: '0.0.7'
description-type: haddock
description: A prelude built on basic-prelude.
license-name: MIT
``` |
31eb72b9-a325-4e61-a324-14818aacce79 | {
"language": "YAML"
} | ```yaml
node_meta_data:
description: Winch Controller Endurance
location: Endurance
node_id_name: SN0121-SC01B
node_type: WinchController
oms_sample_rate: 5
reference_designator: CE04OSPS-SC01B
serial_number: SN0121
read_only_mode: True
node_streams:
secondary_node_port_eng_data:
- port_type: Instrument
port_num: 1
name: BRAKE-IP2
- port_type: Expansion
port_num: 0
name: 04-EP1
- port_type: Instrument
port_num: 0
name: 05-IP1
- port_type: Expansion
port_num: 1
name: VFD-EP2
secondary_node_eng_data:
- name: 00-ENG
shallow_profiler_winch_eng_data:
- name: 00-WINCH
```
Update serial number for 2019 deployment | ```yaml
node_meta_data:
description: Winch Controller Endurance
location: Endurance
node_id_name: SN0124-SC01B
node_type: WinchController
oms_sample_rate: 5
reference_designator: CE04OSPS-SC01B
serial_number: SN0121
read_only_mode: True
node_streams:
secondary_node_port_eng_data:
- port_type: Instrument
port_num: 1
name: BRAKE-IP2
- port_type: Expansion
port_num: 0
name: 04-EP1
- port_type: Instrument
port_num: 0
name: 05-IP1
- port_type: Expansion
port_num: 1
name: VFD-EP2
secondary_node_eng_data:
- name: 00-ENG
shallow_profiler_winch_eng_data:
- name: 00-WINCH
``` |
3ab89e55-dab4-41c0-8cf4-08374d459a8e | {
"language": "YAML"
} | ```yaml
redis-dev:
image: redis
ports:
- "6379:6379"
elasticsearch-dev:
image: elasticsearch:5.1
environment:
- cluster.name=elasticsearch
ports:
- "9200:9200"
- "9300:9300"
kibana-dev:
image: kibana:5.1
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch-dev:9200
links:
- elasticsearch-dev
```
Add single broker kafka cluster | ```yaml
version: '2'
services:
redis-dev:
image: redis
ports:
- "6379:6379"
elasticsearch-dev:
image: elasticsearch:5.1
environment:
- cluster.name=elasticsearch
ports:
- "9200:9200"
- "9300:9300"
kibana-dev:
image: kibana:5.1
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch-dev:9200
links:
- elasticsearch-dev
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
# build: .
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
KAFKA_CREATE_TOPICS: test:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
``` |
5c5af51d-fcf0-4e99-b1ef-48d18ff0d4bc | {
"language": "YAML"
} | ```yaml
{% set name = "opuslib" %}
{% set version = "3.0.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/opuslib-{{ version }}.tar.gz
sha256: 2cb045e5b03e7fc50dfefe431e3404dddddbd8f5961c10c51e32dfb69a044c97
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- python
run:
- python
test:
imports:
- opuslib
- opuslib.api
requires:
- opuslib
about:
home: https://github.com/onbeep/opuslib
summary: Python bindings to the libopus, IETF low-delay audio codec
license: BSD-3-Clause
license_file: LICENSE
extra:
recipe-maintainers:
- JennaLipscomb
- oblute
```
Add python pinning to 2.7 | ```yaml
{% set name = "opuslib" %}
{% set version = "3.0.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/opuslib-{{ version }}.tar.gz
sha256: 2cb045e5b03e7fc50dfefe431e3404dddddbd8f5961c10c51e32dfb69a044c97
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- python == 2.7
run:
- python == 2.7
test:
imports:
- opuslib
- opuslib.api
requires:
- opuslib
about:
home: https://github.com/onbeep/opuslib
summary: Python bindings to the libopus, IETF low-delay audio codec
license: BSD-3-Clause
license_file: LICENSE
extra:
recipe-maintainers:
- JennaLipscomb
- oblute
``` |
6bcbf208-27a3-4545-8cb9-a0aa840badd3 | {
"language": "YAML"
} | ```yaml
{% set version = "1.6" %}
package:
name: spefile
version: {{ version }}
source:
path: src
build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- setuptools
run:
- python
- numpy
test:
# Python imports
imports:
- spefile
about:
home: https://pythonhosted.org/pyspec/
license: GPL v3.0
summary: >
Reader for SPE files part of pyspec a set of python routines for data
analysis of x-ray scattering experiments
extra:
recipe-maintainers:
- dgursoy
- decarlof
- ericdill
- licode
- ravescovi
- tacaswell
```
Add note about moving the src/ folder into its own project on github | ```yaml
{% set version = "1.6" %}
package:
name: spefile
version: {{ version }}
source:
path: src
build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- setuptools
run:
- python
- numpy
test:
imports:
- spefile
about:
# Long term goal is to have the src/ folder in this recipe as a stand-alone
# project on github.
home: https://pythonhosted.org/pyspec/
license: GPL v3.0
summary: >
Reader for SPE files part of pyspec a set of python routines for data
analysis of x-ray scattering experiments
extra:
recipe-maintainers:
- dgursoy
- decarlof
- ericdill
- licode
- ravescovi
- tacaswell
``` |
98eefbb9-333d-40ce-ab9b-d2343e7b4526 | {
"language": "YAML"
} | ```yaml
homepage: ''
changelog-type: markdown
hash: d663336a29bdddf54d3015d187ec53f310f1529efb65fa2108ba4791f2a1de7a
test-bench-deps: {}
maintainer: [email protected]
synopsis: Simple tool to create html presentation for text.
changelog: |
# Revision history for html-presentation-text
## 0.1.0.0 -- 2022-01-18
* First version. Released on an unsuspecting world.
basic-deps:
lists-flines: '>=0.1.1 && <1'
base: '>=4.8 && <5'
cli-arguments: '>=0.6 && <1'
all-versions:
- 0.1.0.0
author: OleksandrZhabenko
latest: 0.1.0.0
description-type: haddock
description: The html and css template is taken from different tutorials in the Internet
(with changes). The idea is to post some text on the background partially transparent
image.
license-name: MIT
```
Update from Hackage at 2022-01-18T21:05:47Z | ```yaml
homepage: ''
changelog-type: markdown
hash: 0e0069cb74ee0718966f563507fe0055c9446f958e41197ae5f49a0e970e945b
test-bench-deps: {}
maintainer: [email protected]
synopsis: Simple tool to create html presentation for text.
changelog: "# Revision history for html-presentation-text\n\n## 0.1.0.0 -- 2022-01-18\n\n*
First version. Released on an unsuspecting world.\n\n## 0.2.0.0 -- 2022-01-18\n\n*
Second version. Removed the unneeded material because of the license non-compliance
with one of the tutorials used. \nSwitched to the author's css and html model.\n\n\n"
basic-deps:
lists-flines: '>=0.1.1 && <1'
base: '>=4.8 && <5'
cli-arguments: '>=0.6 && <1'
all-versions:
- 0.2.0.0
author: OleksandrZhabenko
latest: 0.2.0.0
description-type: haddock
description: The idea is to post some colored text on the background.
license-name: MIT
``` |
2442a426-3bab-474b-bcd4-64668bf34bd5 | {
"language": "YAML"
} | ```yaml
- name: Check killinuxfloor SELinux policy module status
shell:
cmd: semodule --list | grep killinuxfloor
failed_when: no
changed_when: no
register: klf_selinux
- name: Disable SELinux policy module
command:
cmd: semodule --remove=killinuxfloor
when: klf_selinux.rc == 0
- name: Delete SELinux policy module
file:
path: "{{ semodule_dir }}/killinuxfloor.cil"
state: absent
```
Remove old path for SELinux module too | ```yaml
- name: Check killinuxfloor SELinux policy module status
shell:
cmd: semodule --list | grep killinuxfloor
failed_when: no
changed_when: no
register: klf_selinux
- name: Disable SELinux policy module
command:
cmd: semodule --remove=killinuxfloor
when: klf_selinux.rc == 0
- name: Delete SELinux policy module
file:
path: "{{ item }}"
state: absent
loop:
- "{{ steam_home }}/selinux"
- "{{ semodule_dir }}/killinuxfloor.cil"
``` |
dfca7b57-4cfc-4ab9-82fe-b68b4c9ce922 | {
"language": "YAML"
} | ```yaml
resource_registry:
OS::TripleO::Services::Docker: ../deployment/deprecated/docker/docker-baremetal-ansible.yaml
OS::TripleO::Services::HAproxy: ../deployment/haproxy/haproxy-container-puppet.yaml
OS::TripleO::Services::Keepalived: ../deployment/keepalived/keepalived-container-puppet.yaml
OS::TripleO::Services::OpenShift::Infra: ../extraconfig/services/openshift-infra.yaml
OS::TripleO::Services::OpenShift::Master: ../extraconfig/services/openshift-master.yaml
OS::TripleO::Services::OpenShift::Worker: ../extraconfig/services/openshift-worker.yaml
```
Switch OpenShift nodes to use Podman | ```yaml
resource_registry:
OS::TripleO::Services::HAproxy: ../deployment/haproxy/haproxy-container-puppet.yaml
OS::TripleO::Services::Keepalived: ../deployment/keepalived/keepalived-container-puppet.yaml
OS::TripleO::Services::OpenShift::Infra: ../extraconfig/services/openshift-infra.yaml
OS::TripleO::Services::OpenShift::Master: ../extraconfig/services/openshift-master.yaml
OS::TripleO::Services::OpenShift::Worker: ../extraconfig/services/openshift-worker.yaml
OS::TripleO::Services::Podman: ../deployment/podman/podman-baremetal-ansible.yaml
``` |
79ac39a1-3911-43bc-bf21-b219ac2b2608 | {
"language": "YAML"
} | ```yaml
presubmits:
kubernetes/org:
- name: pull-org-test-all
always_run: true
decorate: true
spec:
containers:
- image: launcher.gcr.io/google/bazel:0.28.1
command:
- bazel
args:
- test
- //...
annotations:
testgrid-num-columns-recent: '30'
testgrid-create-test-group: 'true'
- name: pull-org-verify-all
always_run: true
decorate: true
spec:
containers:
- image: launcher.gcr.io/google/bazel:0.28.1
command:
- ./hack/verify-all.sh
annotations:
testgrid-num-columns-recent: '30'
testgrid-create-test-group: 'true'
```
Update org jobs to bazel 0.29.1 | ```yaml
presubmits:
kubernetes/org:
- name: pull-org-test-all
always_run: true
decorate: true
spec:
containers:
- image: launcher.gcr.io/google/bazel:0.29.1
command:
- bazel
args:
- test
- //...
annotations:
testgrid-num-columns-recent: '30'
testgrid-create-test-group: 'true'
- name: pull-org-verify-all
always_run: true
decorate: true
spec:
containers:
- image: launcher.gcr.io/google/bazel:0.29.1
command:
- ./hack/verify-all.sh
annotations:
testgrid-num-columns-recent: '30'
testgrid-create-test-group: 'true'
``` |
Subsets and Splits