Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Remove "write a program" from octal exercise | ---
blurb: "Write a program that will convert a octal number, represented as a string (e.g. '1735263'), to its decimal equivalent using first principles (i.e. no, you may not use built-in or external libraries to accomplish the conversion)."
source: "All of Computer Science"
source_url: "http://www.wolframalpha.com/input/?i=base+8"
| ---
blurb: "Convert a octal number, represented as a string (e.g. '1735263'), to its decimal equivalent using first principles (i.e. no, you may not use built-in or external libraries to accomplish the conversion)."
source: "All of Computer Science"
source_url: "http://www.wolframalpha.com/input/?i=base+8"
|
Add a 2 second timeout to the other rabbit check | ---
- name: rabbit process check
sensu_process_check: service=rabbitmq
notify: restart sensu-client
- name: rabbit cluster check
sensu_check: name=rabbitmq-cluster plugin=check-rabbitmq-cluster.rb
args="--expected 2" use_sudo=true
notify: restart sensu-client
when: rabbitmq.cluster
- name: rabbit queues check
sensu_check: name=rabbitmq-queues plugin=check-rabbitmq-queues.rb
use_sudo=true
notify: restart sensu-client
- name: set cluster count fact
set_fact: cluster_node_count={{ groups['all'] | count }}
- name: rabbit queue num check
sensu_check: name=rabbitmq-numqueues plugin=check-rabbitmq-queues.rb
args="-t number -w {{ cluster_node_count|int * 50 }}
-c {{ cluster_node_count|int * 100 }}
--timeout 2"
use_sudo=true
notify: restart sensu-client
- name: rabbit metrics
template: src=etc/collectd/plugins/rabbitmq.conf dest=/etc/collectd/plugins/rabbitmq.conf
notify: restart collectd
when: collectd is defined and collectd.enabled|bool
tags: collectd
| ---
- name: rabbit process check
sensu_process_check: service=rabbitmq
notify: restart sensu-client
- name: rabbit cluster check
sensu_check: name=rabbitmq-cluster plugin=check-rabbitmq-cluster.rb
args="--expected 2" use_sudo=true
notify: restart sensu-client
when: rabbitmq.cluster
- name: rabbit queues check
sensu_check: name=rabbitmq-queues plugin=check-rabbitmq-queues.rb
args="--timeout 2"
use_sudo=true
notify: restart sensu-client
- name: set cluster count fact
set_fact: cluster_node_count={{ groups['all'] | count }}
- name: rabbit queue num check
sensu_check: name=rabbitmq-numqueues plugin=check-rabbitmq-queues.rb
args="-t number -w {{ cluster_node_count|int * 50 }}
-c {{ cluster_node_count|int * 100 }}
--timeout 2"
use_sudo=true
notify: restart sensu-client
- name: rabbit metrics
template: src=etc/collectd/plugins/rabbitmq.conf dest=/etc/collectd/plugins/rabbitmq.conf
notify: restart collectd
when: collectd is defined and collectd.enabled|bool
tags: collectd
|
Add default and test cmd | ################################################################################
# Defaults
#
# Best practice is to set defaults to production settings.
name: airstack/core
build:
dir: .airstack/build
cache: .airstack/cache
templates:
# Build template directory
dir: Dockerfiles
# Build templates, concatenated in listed order
files: Dockerfile.base Dockerfile.packages Dockerfile.services
################################################################################
# Environment specific sections
#
# Prefixed with a colon ':'
# Missing keys in environment sections will be looked up the default section above.
:development:
build:
templates:
<% dev_tpls = 'Dockerfile.base Dockerfile.packages Dockerfile.packages.development Dockerfile.services Dockerfile.services.development' %>
files: <%= dev_tpls %>
mount: &dev_mounts
- ./command:/package/json/json-utils/command
- ./test:/package/json/json-utils/test
:test:
build:
templates:
files: <%= dev_tpls %> Dockerfile.services.test
cmd: core-watch /package/json/json-utils -c "core-test-runner -f /package/json/json-utils/test/*_spec.lua"
mount:
*dev_mounts
:production:
# Build defaults
| ################################################################################
# Defaults
#
# Best practice is to set defaults to production settings.
name: airstack/core
build:
dir: .airstack/build
cache: .airstack/cache
templates:
# Build template directory
dir: Dockerfiles
# Build templates, concatenated in listed order
files: Dockerfile.base Dockerfile.packages Dockerfile.services
cmd: "sh -c '{ /etc/runit/2 multi &}'"
################################################################################
# Environment specific sections
#
# Prefixed with a colon ':'
# Missing keys in environment sections will be looked up the default section above.
:development:
build:
templates:
<% dev_tpls = 'Dockerfile.base Dockerfile.packages Dockerfile.packages.development Dockerfile.services Dockerfile.services.development' %>
files: <%= dev_tpls %>
mount: &dev_mounts
- ./command:/package/json/json-utils/command
- ./test:/package/json/json-utils/test
:test:
build:
templates:
files: <%= dev_tpls %> Dockerfile.services.test
# cmd: /command/core-watch /package/json/json-utils -c \"core-test-runner -f /package/json/json-utils/test/*_spec.lua\"
cmd: /command/core-test-runner -f /package/airstack/test/\*_spec.lua
mount:
*dev_mounts
:production:
# Build defaults
|
Add sanity_check configuration for netusb | sample:
name: Echo Server
description: Test core network features using a client/server sample
common:
tags: net
build_only: true
tests:
- test:
platform_whitelist: qemu_x86 sam_e70_xplained frdm_k64f qemu_cortex_m3 arduino_101
- test_802154:
extra_args: CONF_FILE="prj_qemu_802154.conf"
platform_whitelist: qemu_x86
- test_mcr20a:
extra_args: CONF_FILE="prj_frdm_k64f_mcr20a.conf"
platform_whitelist: frdm_k64f
- test_bt:
extra_args: CONF_FILE="prj_bt.conf"
platform_whitelist: qemu_x86
tags: bluetooth
| sample:
name: Echo Server
description: Test core network features using a client/server sample
common:
tags: net
build_only: true
tests:
- test:
platform_whitelist: qemu_x86 sam_e70_xplained frdm_k64f qemu_cortex_m3 arduino_101
- test_802154:
extra_args: CONF_FILE="prj_qemu_802154.conf"
platform_whitelist: qemu_x86
- test_mcr20a:
extra_args: CONF_FILE="prj_frdm_k64f_mcr20a.conf"
platform_whitelist: frdm_k64f
- test_bt:
extra_args: CONF_FILE="prj_bt.conf"
platform_whitelist: qemu_x86
tags: bluetooth
- test_usbnet:
build_only: true
extra_args: CONF_FILE="prj_quark_se_c1000_devboard_netusb.conf"
extra_configs:
- CONFIG_USB_DEVICE_VID=0xDEAD
- CONFIG_USB_DEVICE_PID=0xBEEF
platform_whitelist: quark_se_c1000_devboard
tags: net usb
- test_usbnet_composite:
build_only: true
extra_args: CONF_FILE="prj_quark_se_c1000_devboard_netusb.conf"
extra_configs:
- CONFIG_USB_COMPOSITE_DEVICE=y
- CONFIG_USB_DEVICE_VID=0xDEAD
- CONFIG_USB_DEVICE_PID=0xBEEF
platform_whitelist: quark_se_c1000_devboard
tags: net usb
|
Make the GorouterLatency* alerts less noisy. | # Source: firehose-exporter
---
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
value:
name: GorouterLatency
rules:
- record: "cc:firehose_value_metric_gorouter_latency:avg10m"
expr: avg_over_time(firehose_value_metric_gorouter_latency[10m])
- &alert
alert: GorouterLatency_Warning
expr: cc:firehose_value_metric_gorouter_latency:avg10m > 750
labels:
severity: warning
annotations:
summary: Gorouter latency
description: "Gorouter latency is too high ({{ $value | printf \"%.0f\" }}ms) on {{ $labels.bosh_job_ip }}"
url: https://team-manual.cloud.service.gov.uk/incident_management/responding_to_alerts/#gorouter-high-latency-alerts"
- <<: *alert
alert: GorouterLatency_Critical
expr: cc:firehose_value_metric_gorouter_latency:avg10m > 1500
labels:
severity: critical
| # Source: firehose-exporter
---
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
value:
name: GorouterLatency
rules:
- &alert
alert: GorouterLatency_Warning
expr: min(avg_over_time(firehose_value_metric_gorouter_latency[5m])) > 750
for: 15m
labels:
severity: warning
annotations:
summary: Gorouter latency
description: "Gorouter latency is too high ({{ $value | printf \"%.0f\" }}ms) on {{ $labels.bosh_job_ip }}"
url: https://team-manual.cloud.service.gov.uk/incident_management/responding_to_alerts/#gorouter-high-latency-alerts"
- <<: *alert
alert: GorouterLatency_Critical
expr: min(avg_over_time(firehose_value_metric_gorouter_latency[5m])) > 1500
labels:
severity: critical
|
Use openjdk8 for Travis CI | language: scala
scala:
- 2.12.11
jdk:
- oraclejdk8
| language: scala
scala:
- 2.12.11
jdk:
- openjdk8
|
Set JAVA_HOME to Java 8. | dist: precise
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- wget
- pkg-config
- libstdc++6
- oracle-java8-installer
before_install:
- wget https://github.com/bazelbuild/bazel/releases/download/0.5.2/bazel_0.5.2-linux-x86_64.deb
- sudo dpkg -i bazel_0.5.2-linux-x86_64.deb
script:
- bazel build //...
- bazel test //...
| dist: precise
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- wget
- pkg-config
- libstdc++6
- oracle-java8-installer
before_install:
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- wget https://github.com/bazelbuild/bazel/releases/download/0.5.2/bazel_0.5.2-linux-x86_64.deb
- sudo dpkg -i bazel_0.5.2-linux-x86_64.deb
script:
- bazel build //...
- bazel test //...
|
Make Travis happy about stable Chrome source | language: node_js
sudo: required
dist: trusty
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
node_js: 8
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
script:
- xvfb-run wct --skip-plugin sauce
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct --skip-plugin local --plugin sauce; fi"
| language: node_js
sudo: required
dist: xenial
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
node_js: 8
addons:
firefox: latest
chrome: stable
script:
- xvfb-run wct --skip-plugin sauce
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct --skip-plugin local --plugin sauce; fi"
|
Revert "Apparently the PECL Mongo driver comes pre-installed now?" | # we're exploiting the promise that there's "at least one version of Ruby available"...
language: php
php:
- 5.4
services: mongodb
before_script:
# - 'pecl -q install mongo'
- 'bundle install --without development'
# wheee!
script: rspec | # we're exploiting the promise that there's "at least one version of Ruby available"...
language: php
php:
- 5.4
services: mongodb
before_script:
- 'pecl -q install mongo'
- 'bundle install --without development'
# wheee!
script: rspec |
Remove support for ruby < 2.0.0 | language: ruby
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- 2.3.0
- rbx-2
- jruby-9000
- ruby-head
- jruby-head
sudo: false
cache: bundler
install:
- bundle install --retry=2
script:
- bundle exec rspec
addons:
code_climate:
repo_token: 476435b952955883b3c784cbbe41aae8ba578784ed9ba24a56898882182c86f3 | language: ruby
rvm:
- 2.0
- 2.1
- 2.2
- 2.3.0
- rbx-2
- jruby-9000
- ruby-head
- jruby-head
sudo: false
cache: bundler
install:
- bundle install --retry=2
script:
- bundle exec rspec
addons:
code_climate:
repo_token: 476435b952955883b3c784cbbe41aae8ba578784ed9ba24a56898882182c86f3 |
Remove 2.4 support for now. | before_install:
- gem install bundler
language: ruby
rvm:
- 2.0.0
- 2.1.0
- 2.2.0
- 2.3.0
- 2.4.0
# command to run tests
script: "bundle exec rake test"
| before_install:
- gem install bundler
language: ruby
rvm:
- 2.0.0
- 2.1.0
- 2.2.0
- 2.3.0
# command to run tests
script: "bundle exec rake test"
|
Enable CI tests in Rhino, RingoJS, and Narwhal | language: node_js
node_js:
- "0.10"
- "0.8"
env:
- TEST_COMMAND="grunt shell:test-node"
- TEST_COMMAND="grunt shell:test-phantomjs"
before_script:
- "npm install -g grunt-cli"
script:
$TEST_COMMAND
| language: node_js
node_js:
- "0.10"
- "0.8"
before_script:
- "npm install -g grunt-cli"
# Narwhal uses a hardcoded path to openjdk v6, so use that version
- "sudo apt-get update -qq"
- "sudo apt-get install -qq openjdk-6-jre"
- "PACKAGE=rhino1_7R4; wget https://github.com/downloads/mozilla/rhino/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip"
- "PACKAGE=rhino1_7R4; echo -e '#!/bin/sh\\njava -jar /opt/rhino1_7R4/js.jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino"
- "PACKAGE=ringojs-0.9; wget http://ringojs.org/downloads/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip"
- "PACKAGE=ringojs-0.9; sudo ln -s /opt/$PACKAGE/bin/ringo /usr/local/bin/ringo && sudo chmod +x /usr/local/bin/ringo"
- "PACKAGE=v0.3.2; wget https://github.com/280north/narwhal/archive/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip"
- "PACKAGE=narwhal-0.3.2; sudo ln -s /opt/$PACKAGE/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal"
# If the enviroment stores rt.jar in a different directory, find it and symlink the directory
- "PREFIX=/usr/lib/jvm; if [ ! -d $PREFIX/java-6-openjdk ]; then for d in $PREFIX/java-6-openjdk-*; do if [ -e $d/jre/lib/rt.jar ]; then sudo ln -s $d $PREFIX/java-6-openjdk; break; fi; done; fi"
script:
"grunt test"
|
Add Python3 environments to Travis | language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=rhel6
install:
- pip install tox
script:
- tox
branches:
only:
- master
notifications:
email:
- taxii-commits-list@lists.mitre.org
| language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=py35
- TOXENV=rhel6
install:
- pip install tox
script:
- tox
branches:
only:
- master
notifications:
email:
- taxii-commits-list@lists.mitre.org
|
Use the newer TravisCI container based builds | language: python
python:
- "2.7"
# Setup anaconda
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-2.0.0-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-2.0.0-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
- conda update --yes conda
# command to install other dependencies
install:
- conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy nose pandas matplotlib
- python setup.py -q install
# command to run tests
script: nosetests | sudo: false
language: python
python:
- "2.7"
# Setup anaconda
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-2.0.0-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-2.0.0-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
- conda update --yes conda
# command to install other dependencies
install:
- conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy nose pandas matplotlib
- python setup.py -q install
# command to run tests
script: nosetests |
Use trsty on oraclejdk9 as well | language: java
matrix:
include:
- jdk: oraclejdk8
dist: trusty
- jdk: oraclejdk9
- jdk: oraclejdk8
- jdk: oraclejdk9
- jdk: oraclejdk11
- jdk: openjdk8
- jdk: openjdk10
- jdk: openjdk11
- jdk: openjdk13
before_install:
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
- git clone git://github.com/cose-wg/Examples Examples
script:
- ls
- mvn test -B
| language: java
matrix:
include:
- jdk: oraclejdk8
dist: trusty
- jdk: oraclejdk9
dist: trusty
- jdk: oraclejdk11
- jdk: openjdk8
- jdk: openjdk10
- jdk: openjdk11
- jdk: openjdk13
before_install:
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
- git clone git://github.com/cose-wg/Examples Examples
script:
- ls
- mvn test -B
|
Make apt-get install field one line in Travis CI config. | branches:
only:
- master
- rust-0.8
- rust-0.9
before_install:
- yes | sudo add-apt-repository ppa:hansjorg/rust
- yes | sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
- yes | sudo apt-add-repository 'deb http://repos.codelite.org/wx2.9/ubuntu/ precise universe'
- sudo apt-get update
install:
- sudo apt-get install rust-nightly libwxgtk2.9-0-unofficial libwxgtk2.9-dev
- sudo apt-get install libclang-3.3-dev
script:
- export LD_LIBRARY_PATH=/usr/lib/llvm-3.3/lib
- mkdir -p build
- cd build
- cmake -DRUSTCFLAGS="-L;/usr/lib/llvm-3.3/lib" ..
- make
| branches:
only:
- master
- rust-0.8
- rust-0.9
before_install:
- yes | sudo add-apt-repository ppa:hansjorg/rust
- yes | sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
- yes | sudo apt-add-repository 'deb http://repos.codelite.org/wx2.9/ubuntu/ precise universe'
- sudo apt-get update
install:
- sudo apt-get install rust-nightly libclang-3.3-dev libwxgtk2.9-0-unofficial libwxgtk2.9-dev
script:
- export LD_LIBRARY_PATH=/usr/lib/llvm-3.3/lib
- mkdir -p build
- cd build
- cmake -DRUSTCFLAGS="-L;/usr/lib/llvm-3.3/lib" ..
- make
|
Use a matrix to prevent Python 3 and Django < 1.5 tests. | language: python
python:
- "2.6"
- "2.7"
- "3.3"
before_install:
- export PIP_USE_MIRRORS=true
- export PIP_INDEX_URL=https://simple.crate.io/
install:
- pip install -e .
- pip install -r requirements/tests.txt Django==$DJANGO
script:
- make test
env:
- DJANGO=1.3.7
- DJANGO=1.4.5
- DJANGO=1.5
| language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
before_install:
- export PIP_USE_MIRRORS=true
- export PIP_INDEX_URL=https://simple.crate.io/
install:
- pip install -e .
- pip install -r requirements/tests.txt Django==$DJANGO
script:
- make test
env:
- DJANGO=1.3.7
- DJANGO=1.4.5
- DJANGO=1.5
matrix:
exclude:
- python: 3.2
env: DJANGO=1.4.5
- python: 3.2
env: DJANGO=1.3.7
- python: 3.3
env: DJANGO=1.4.5
- python: 3.3
env: DJANGO=1.3.7
|
Fix Travis error: 'sys/cdefs.h' file not found | sudo: required
dist: trusty
language: cpp
compiler:
- clang
- gcc
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libboost-all-dev
- wget http://releases.llvm.org/3.9.0/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
- tar -xvf clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
script:
- cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=$PWD/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04 .
- make
- make check
| sudo: required
dist: trusty
language: cpp
compiler:
- clang
- gcc
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libboost-all-dev g++-multilib
- wget http://releases.llvm.org/3.9.0/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
- tar -xvf clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
script:
- cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=$PWD/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04 .
- make
- make check
|
Test with activesupport v4.0 and actionpack v4.0, and allow failure | language: ruby
rvm:
- 1.9.3
- 2.0.0
| language: ruby
rvm:
- 1.9.3
- 2.0.0
gemfile:
- gemfiles/rails3_2/Gemfile
- gemfiles/rails4_0/Gemfile
matrix:
allow_failures:
- rvm: 1.9.3
gemfile: gemfiles/rails4_0/Gemfile
- rvm: 2.0.0
gemfile: gemfiles/rails4_0/Gemfile
|
Install newer version of Bundler for Travis | language: ruby
cache: bundler
script: bundle exec rspec
sudo: false
gemfile:
- gemfiles/rack_1.5.gemfile
- gemfiles/rack_1.6.gemfile
- gemfiles/rack_2.0.gemfile
- gemfiles/rack_2.1.gemfile
- gemfiles/rack_2.2.gemfile
rvm:
- 2.3.8
- 2.4.9
- 2.5.8
- 2.6.5
- 2.7.0
| language: ruby
cache: bundler
script: bundle exec rspec
sudo: false
gemfile:
- gemfiles/rack_1.5.gemfile
- gemfiles/rack_1.6.gemfile
- gemfiles/rack_2.0.gemfile
- gemfiles/rack_2.1.gemfile
- gemfiles/rack_2.2.gemfile
rvm:
- 2.3.8
- 2.4.9
- 2.5.8
- 2.6.5
- 2.7.0
before_install:
- gem install bundler -v 1.17.2
|
Use Trusty image on Travis-CI | ### Project specific config ###
matrix:
include:
- os: linux
language: python
python: "2.7"
- os: linux
language: python
python: "3.6"
env: ATOM_CHANNEL=beta
install:
- pip install flake8
before_script:
- flake8 --version
### Generic setup follows ###
script:
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
- chmod u+x build-package.sh
- ./build-package.sh
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
- /^greenkeeper/.*$/
git:
depth: 10
sudo: false
addons:
apt:
packages:
- build-essential
- git
- libgnome-keyring-dev
- fakeroot
| ### Project specific config ###
matrix:
include:
- os: linux
language: python
python: "2.7"
- os: linux
language: python
python: "3.6"
env: ATOM_CHANNEL=beta
install:
- pip install flake8
before_script:
- flake8 --version
### Generic setup follows ###
script:
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
- chmod u+x build-package.sh
- ./build-package.sh
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
- /^greenkeeper/.*$/
git:
depth: 10
sudo: false
dist: trusty
addons:
apt:
packages:
- build-essential
- git
- libgnome-keyring-dev
- fakeroot
|
Install all pip requirements as root? (Travis-CI) | language: python
python:
- "2.6"
- "2.7"
- "pypy"
env:
- DJANGO=1.2.7
- DJANGO=1.3.1
install:
- pip install Django==$DJANGO --use-mirrors
- pip install pep8 --use-mirrors
- pip install https://github.com/dcramer/pyflakes/tarball/master
- sudo apt-get install libevent-dev
- pip install -e . --use-mirrors
script:
- "pep8 --ignore=E501,E225 raven"
- pyflakes -x W raven
- python setup.py test
notifications:
irc:
channels: "irc.freenode.org#sentry"
on_success: change
on_failure: change | language: python
python:
- "2.6"
- "2.7"
- "pypy"
env:
- DJANGO=1.2.7
- DJANGO=1.3.1
install:
- sudo apt-get install libevent-dev
- sudo pip install Django==$DJANGO --use-mirrors
- sudo pip install pep8 --use-mirrors
- sudo pip install https://github.com/dcramer/pyflakes/tarball/master
- sudo pip install -e . --use-mirrors
script:
- "pep8 --ignore=E501,E225 raven"
- pyflakes -x W raven
- python setup.py test
notifications:
irc:
channels: "irc.freenode.org#sentry"
on_success: change
on_failure: change |
Add MongoDB as a service | rvm:
- 2.1.0
notifications:
irc:
channels:
- "irc.freenode.net#theodi"
template:
- "%{repository} %{branch} - %{message} %{build_url}"
on_success: change
on_failure: always | rvm:
- 2.1.0
services: mongodb
notifications:
irc:
channels:
- "irc.freenode.net#theodi"
template:
- "%{repository} %{branch} - %{message} %{build_url}"
on_success: change
on_failure: always |
Support for nightly was dropped | language: php
cache:
directories:
- $HOME/.composer/cache
git:
depth: 5
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- hhvm-nightly
matrix:
fast_finish: true
allow_failures:
- php: hhvm-nightly
before_script:
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- composer install --no-interaction --no-progress --prefer-dist
script:
- vendor/bin/phpunit
| language: php
cache:
directories:
- $HOME/.composer/cache
git:
depth: 5
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
fast_finish: true
before_script:
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- composer install --no-interaction --no-progress --prefer-dist
script:
- vendor/bin/phpunit
|
Test to see python 3 compability | language: python
python:
- "2.6"
- "2.7"
# command to install redisco with dependencies
install:
- pip install . --use-mirrors
# command to run tests
script: nosetests --with-doctest
services:
- redis-server
| language: python
python:
- "2.6"
- "2.7"
- "3.1"
- "3.2"
- "3.3"
- "3.4"
# command to install redisco with dependencies
install:
- pip install . --use-mirrors
# command to run tests
script: nosetests --with-doctest
services:
- redis-server
|
Test with Elixir 1.2 and 1.3 | services:
- couchdb
language: elixir
elixir:
- 1.1.1
otp_release:
- 18.2
script:
- "MIX_ENV=test mix run priv/repo/seeds.exs"
- "MIX_ENV=test mix do deps.get, deps.compile, test --trace"
| services:
- couchdb
language: elixir
elixir:
- 1.2.6
- 1.3.2
otp_release:
- 18.2
script:
- "MIX_ENV=test mix run priv/repo/seeds.exs"
- "MIX_ENV=test mix do deps.get, deps.compile, test --trace"
|
ADD Travis : Support PHP 7.1 | language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.1
before_install:
- composer self-update | language: php
sudo: false
php:
- 7.1
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.1
before_install:
- composer self-update |
Update Travis CI node versions | sudo: false
language: node_js
node_js:
- '4'
- '6'
- '7'
| sudo: false
language: node_js
node_js:
- '9'
- '8'
- '6'
|
Install an IPython kernel before npm install | sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- uuid-dev
- libssl-dev
language: node_js
node_js:
- '5'
env:
global:
- ZMQ="3.2.5"
matrix:
- GROUP=unit
- GROUP=functional
cache:
apt: true
directories:
- node_modules
- zeromq-$ZMQ
before_install:
- source travis_before_install
install: env LD_LIBRARY_PATH=$LDHACK/lib LD_RUN_PATH=$LDHACK/lib PKG_CONFIG_PATH=$LDHACK/lib/pkgconfig LDFLAGS=-L$LDHACK/lib CFLAGS=-I$LDHACK/lib/include npm install
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
script: travis_retry npm run test:$GROUP
after_success: npm run coverage
| sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- uuid-dev
- libssl-dev
language: node_js
node_js:
- '5'
env:
global:
- ZMQ="3.2.5"
matrix:
- GROUP=unit
- GROUP=functional
cache:
apt: true
directories:
- node_modules
- zeromq-$ZMQ
before_install:
- source travis_before_install
- pip install jupyter_console --user
- jupyter kernelspec install-self --user
install: env LD_LIBRARY_PATH=$LDHACK/lib LD_RUN_PATH=$LDHACK/lib PKG_CONFIG_PATH=$LDHACK/lib/pkgconfig LDFLAGS=-L$LDHACK/lib CFLAGS=-I$LDHACK/lib/include npm install
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
script: travis_retry npm run test:$GROUP
after_success: npm run coverage
|
Disable composer warning about xdebug: | language: php
sudo: false
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: hhvm
before_install:
- composer self-update
- composer install
script: phpunit
| language: php
sudo: false
env:
- COMPOSER_DISABLE_XDEBUG_WARN=1
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: hhvm
before_install:
- composer self-update
- composer install
script: phpunit
|
Update Travis to use Go 1.4. | language: go
go:
- 1.3
install:
- go get code.google.com/p/go.tools/cmd/vet
- go get -t -v ./...
script:
- diff -u <(echo -n) <(gofmt -d ./)
- go tool vet ./
- go test -v -race ./...
| language: go
go:
- 1.4
install:
- go get code.google.com/p/go.tools/cmd/vet
- go get -t -v ./...
script:
- diff -u <(echo -n) <(gofmt -d ./)
- go tool vet ./
- go test -v -race ./...
|
Fix package in py.test invocation | # Use container system
sudo: false
# Cache pip & libsodium
cache:
directories:
- $HOME/libsodium
- $HOME/.cache/pip
# Clean up pip log
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
# Build matrix
language: python
matrix:
include:
- python: "3.4"
env: EVENT_LOOP=asyncio
- python: "3.5"
env: EVENT_LOOP=asyncio
- python: "3.5"
env: EVENT_LOOP=uvloop
before_script: "pip install .[uvloop]"
# Install dependencies
before_install:
- ./.travis-install-libsodium.sh
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HOME}/libsodium/lib
install:
- pip install -U setuptools pip
- "pip install .[dev]"
- pip install codecov
# Run flake8, isort, check docs & tests
script:
- flake8 .
- isort -rc -c . || (isort -rc -df . && return 1)
- python setup.py checkdocs
- py.test --cov-config .coveragerc --cov=saltyrtc --loop=$EVENT_LOOP
# After success
after_success:
- codecov
| # Use container system
sudo: false
# Cache pip & libsodium
cache:
directories:
- $HOME/libsodium
- $HOME/.cache/pip
# Clean up pip log
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
# Build matrix
language: python
matrix:
include:
- python: "3.4"
env: EVENT_LOOP=asyncio
- python: "3.5"
env: EVENT_LOOP=asyncio
- python: "3.5"
env: EVENT_LOOP=uvloop
before_script: "pip install .[uvloop]"
# Install dependencies
before_install:
- ./.travis-install-libsodium.sh
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HOME}/libsodium/lib
install:
- pip install -U setuptools pip
- "pip install .[dev]"
- pip install codecov
# Run flake8, isort, check docs & tests
script:
- flake8 .
- isort -rc -c . || (isort -rc -df . && return 1)
- python setup.py checkdocs
- py.test --cov-config .coveragerc --cov=saltyrtc.server --loop=$EVENT_LOOP
# After success
after_success:
- codecov
|
Update Clang version 7 and GCC version 7 | sudo: required
language: cpp
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-7
- libc++-7-dev
- libc++abi-7-dev
script:
- mkdir -p builddir
- cd builddir
- CC=clang-7 && CXX=clang-7 cmake ..
- make
| sudo: required
language: cpp
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- gcc-7
- g++-7
- clang-7
- libc++-7-dev
- libc++abi-7-dev
script:
- mkdir -p builddir
- cd builddir
- CC=clang-7 && CXX=clang-7 cmake ..
- make
|
Use the new build env on Travis | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.2
cache: bundler
before_script:
- git config --global user.email "bot@heroku.com"
- git config --global user.name "Heroku Bot (Travis CI)"
script: bundle exec rspec spec --color --format documentation
deploy:
provider: rubygems
on:
tags: true
api_key:
secure: ALsBCGGvdAiIEJR9zTzxumcgCaS5eqOs7Oee7e4SiDgHrT/DRSsFJBtNp9mJvQvHzW3FqSFZU7NO6tSRkwHGdGGw7pf/emjZ2ua0exuyCQ3LaCJBdwSQXl0GTMhhaMCCd2NYWJ+Fa3Q9jWWAdCfV8rqz5AX4ZG6fi3C2uubppVs=
| language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.2
sudo: false
cache: bundler
before_script:
- git config --global user.email "bot@heroku.com"
- git config --global user.name "Heroku Bot (Travis CI)"
script: bundle exec rspec spec --color --format documentation
deploy:
provider: rubygems
on:
tags: true
api_key:
secure: ALsBCGGvdAiIEJR9zTzxumcgCaS5eqOs7Oee7e4SiDgHrT/DRSsFJBtNp9mJvQvHzW3FqSFZU7NO6tSRkwHGdGGw7pf/emjZ2ua0exuyCQ3LaCJBdwSQXl0GTMhhaMCCd2NYWJ+Fa3Q9jWWAdCfV8rqz5AX4ZG6fi3C2uubppVs=
|
Add MRI 2.5 to Travis CI | language: ruby
sudo: false
rvm:
- 2.2
- 2.3
- 2.4
- ruby-head
- jruby-9.1.14.0
- jruby-head
before_install:
- gem install bundler
script:
- bundle exec rake test
- bundle exec cucumber
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
cache: bundler
services:
- mongodb
| language: ruby
sudo: false
rvm:
- 2.2
- 2.3
- 2.4
- 2.5
- ruby-head
- jruby-9.1.14.0
- jruby-head
before_install:
- gem install bundler
script:
- bundle exec rake test
- bundle exec cucumber
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
cache: bundler
services:
- mongodb
|
Update Travis CI with stable node and iojs. | language: node_js
node_js:
- "0.10"
notifications:
email: false
| language: node_js
node_js:
- node
- iojs
notifications:
email: false
|
Disable flake8 until we get it passing | language: python
env:
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=cov
- TOX_ENV=flake8
script:
- tox -e $TOX_ENV
| language: python
env:
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=cov
#- TOX_ENV=flake8
script:
- tox -e $TOX_ENV
|
Stop using pipenv run as we're already in a virtualenv in Travis | language: python
python:
- "2.7"
- "3.5"
- "3.6"
install:
- pip install pipenv
- pipenv install --dev
script: pipenv run nosetests --with-coverage --cover-package=pybib --cover-branches --rednose
| language: python
python:
- "2.7"
- "3.5"
- "3.6"
install:
- pip install pipenv
- pipenv install --dev
script: nosetests --with-coverage --cover-package=pybib --cover-branches --rednose
|
Test with 'bundle exec rake' | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- ree
- jruby
- jruby-18mode
- jruby-19mode
| language: ruby
script: bundle exec rake
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- ree
- jruby
- jruby-18mode
- jruby-19mode
|
Test with Ruby 2.7 on Travis | language: ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5
- 2.6
before_install:
# This is a workaround for a bug in bundler that Travis' VM comes with by default
- gem update bundler
# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec
| language: ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
before_install:
# This is a workaround for a bug in bundler that Travis' VM comes with by default
- gem update bundler
# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec
|
Add missing Python 3 versions to CI build matrix | sudo: false
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
- "pypy"
- "pypy3"
# bleeding edge versions
- "nightly"
install: true
matrix:
fast_finish: true
allow_failures:
- python: "nightly"
install:
- pip install .
script:
- pytest
| sudo: false
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "pypy"
- "pypy3"
# bleeding edge versions
- "nightly"
install: true
matrix:
fast_finish: true
allow_failures:
- python: "nightly"
install:
- pip install .
script:
- pytest
|
Add Ruby 2.1 and removed rbx. | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- ree
- rbx-18mode
- rbx-19mode
- rbx-20mode
notifications:
recipients:
email:
- cedric@howe.net
on_success: change
on_failure: always
| language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- ree
notifications:
recipients:
email:
- cedric@howe.net
on_success: change
on_failure: always
|
Update Homebrew, because it needs to. | language: c
compiler:
- clang
- gcc
os:
- linux
- osx
dist: xenial
addons:
apt:
packages: libutf8proc-dev
homebrew:
packages: utf8proc
script:
- make
- make test
| language: c
compiler:
- clang
- gcc
os:
- linux
- osx
dist: xenial
addons:
apt:
packages: libutf8proc-dev
homebrew:
packages: utf8proc
update: true
script:
- make
- make test
|
Use go tip for now | language: go
go:
- 1.2
- 1.3
- 1.4
env:
- KAFKA_INSTALL_ROOT=/home/travis/kafka KAFKA_HOSTNAME=localhost
before_install:
- export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR}
- vagrant/install_cluster.sh
- vagrant/boot_cluster.sh
- vagrant/create_topics.sh
- go install -a -race regexp # Fix for go 1.2
- go get code.google.com/p/go.tools/cmd/vet
- go get github.com/kisielk/errcheck
script:
- go test -v -race ./...
- go vet ./...
- errcheck github.com/Shopify/sarama/
- if [[ -n $(go fmt ./...) ]]; then echo "Please run go fmt on your code." && exit 1; fi
notifications:
flowdock: 15e08f7ed3a8fd2d89ddb36435301c1a
| language: go
go:
- 1.2
- 1.3
- tip
env:
- KAFKA_INSTALL_ROOT=/home/travis/kafka KAFKA_HOSTNAME=localhost
before_install:
- export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR}
- vagrant/install_cluster.sh
- vagrant/boot_cluster.sh
- vagrant/create_topics.sh
- go install -a -race regexp # Fix for go 1.2
- go get code.google.com/p/go.tools/cmd/vet
- go get github.com/kisielk/errcheck
script:
- go test -v -race ./...
- go vet ./...
- errcheck github.com/Shopify/sarama/
- if [[ -n $(go fmt ./...) ]]; then echo "Please run go fmt on your code." && exit 1; fi
notifications:
flowdock: 15e08f7ed3a8fd2d89ddb36435301c1a
matrix:
allow_failures:
go: tip
|
Allow Rubinius to fail, for now. | sudo: false
language: ruby
rvm:
- 2.2.5
- rbx
- jruby-9.1.5.0
| sudo: false
language: ruby
rvm:
- 2.2.5
- 2.3
- rbx
- jruby-9.1.5.0
matrix:
allow_failures:
- rvm: rbx
|
Test with more recent versions of Go | language: go
go:
- 1.3
- 1.4
install:
- go get github.com/yuin/gopher-lua
script:
- go test -v
notifications:
email: false
| language: go
go:
- 1.4
- 1.5
- 1.6
install:
- go get github.com/yuin/gopher-lua
script:
- go test -v
notifications:
email: false
|
Update ruby versions for CI | language: ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- 2.3.3
- 2.4.0
- jruby-9.1.7.0
- ruby-head
sudo: false
bundler_args: --without development --retry=3 --jobs=3
before_install:
- gem update --system
- gem update bundler
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
matrix:
allow_failures:
- rvm: jruby-head
- rvm: rbx-2
- rvm: ruby-head
fast_finish: true
| language: ruby
rvm:
- 2.6.0
- 2.7.0
- 3.0.0
- jruby-9.1.7.0
- ruby-head
sudo: false
bundler_args: --without development --retry=3 --jobs=3
before_install:
- gem update --system
- gem update bundler
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
matrix:
allow_failures:
- rvm: ruby-head
fast_finish: true
|
Remove python3.3, waiting for 3.4 | language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
install:
- "python setup.py install"
script: python test/__init__.py
| language: python
python:
- "2.6"
- "2.7"
- "3.2"
install:
- "python setup.py install"
script: python test/__init__.py
|
Remove old rubies and update the rest | dist: trusty
sudo: false
group: beta
language: ruby
before_install:
- gem install bundler
script:
- bundle exec rake compile || bundle exec rake compile
- bundle exec rake test
os:
- linux
- osx
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2.8
- 2.3.5
- 2.4.3
- 2.5.0
- ruby-head
- rbx
- system
env:
- CC=gcc
- CC=clang
matrix:
allow_failures:
- rvm: system
- os: osx
rvm: 2.0.0
- os: osx
rvm: ruby-head
- rvm: rbx
- rvm: rbx-head
- rvm: 1.9.3
exclude: # ruby 2.4.2 needs build with xcode9 or later on osx
- os: osx
rvm: 2.4.2
include:
- os: osx
osx_image: xcode9.1
rvm: 2.4.2
env:
- CC=gcc
- os: osx
osx_image: xcode9.1
rvm: 2.4.2
env:
- CC=clang
after_failure:
- "find build -name mkmf.log | xargs cat"
| dist: trusty
sudo: false
group: beta
language: ruby
before_install:
- gem install bundler
script:
- bundle exec rake compile || bundle exec rake compile
- bundle exec rake test
os:
- linux
- osx
rvm:
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.0
- ruby-head
- rbx
- system
env:
- CC=gcc
- CC=clang
matrix:
allow_failures:
- rvm: system
- os: osx
rvm: ruby-head
- rvm: rbx
- rvm: rbx-head
exclude: # ruby 2.4.2 needs build with xcode9 or later on osx
- os: osx
rvm: 2.4.2
include:
- os: osx
osx_image: xcode9.1
rvm: 2.4.2
env:
- CC=gcc
- os: osx
osx_image: xcode9.1
rvm: 2.4.2
env:
- CC=clang
after_failure:
- "find build -name mkmf.log | xargs cat"
|
Switch to amcat.nl (instead of amcat.vu.nl) | language: python
python:
- "2.7"
services:
- postgresql
- memcached
- rabbitmq
virtualenv:
system_site_packages: true
before_install:
- psql -c 'create database amcat;' -U postgres
- export DJANGO_DB_USER=postgres
- export DJANGO_LOG_LEVEL=WARNING
- export DJANGO_SETTINGS_MODULE=settings
- export PYTHONPATH=
install:
- sudo apt-get update
- cat apt_requirements.txt | tr '\n' ' ' | xargs sudo apt-get install -y
- sudo service rabbitmq-server start
- curl https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz | tar xvz
- wget http://amcat.vu.nl/plain/hitcount.jar
- elasticsearch-1.1.0/bin/plugin -install elasticsearch/elasticsearch-lang-python/1.2.0
- elasticsearch-1.1.0/bin/plugin -install elasticsearch/elasticsearch-analysis-icu/1.12.0
- elasticsearch-1.1.0/bin/plugin -install mobz/elasticsearch-head
- ES_CLASSPATH=hitcount.jar elasticsearch-1.1.0/bin/elasticsearch -Des.index.similarity.default.type=nl.vu.amcat.HitCountSimilarityProvider -d
- pip install -r requirements.txt
- pip install coverage coveralls
script:
- coverage run --source=. --omit=*/migrations/*,settings/* -m amcat.manage test
after_success:
- coverage report -m
- coveralls | language: python
python:
- "2.7"
services:
- postgresql
- memcached
- rabbitmq
virtualenv:
system_site_packages: true
before_install:
- psql -c 'create database amcat;' -U postgres
- export DJANGO_DB_USER=postgres
- export DJANGO_LOG_LEVEL=WARNING
- export DJANGO_SETTINGS_MODULE=settings
- export PYTHONPATH=
install:
- sudo apt-get update
- cat apt_requirements.txt | tr '\n' ' ' | xargs sudo apt-get install -y
- sudo service rabbitmq-server start
- curl https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz | tar xvz
- wget http://amcat.nl/plain/hitcount.jar
- elasticsearch-1.1.0/bin/plugin -install elasticsearch/elasticsearch-lang-python/1.2.0
- elasticsearch-1.1.0/bin/plugin -install elasticsearch/elasticsearch-analysis-icu/1.12.0
- elasticsearch-1.1.0/bin/plugin -install mobz/elasticsearch-head
- ES_CLASSPATH=hitcount.jar elasticsearch-1.1.0/bin/elasticsearch -Des.index.similarity.default.type=nl.vu.amcat.HitCountSimilarityProvider -d
- pip install -r requirements.txt
- pip install coverage coveralls
script:
- coverage run --source=. --omit=*/migrations/*,settings/* -m amcat.manage test
after_success:
- coverage report -m
- coveralls |
Support PHP 7.1 and remove support for 5.5 | language: php
dist: trusty
php:
- 5.5
- 5.6
- 7.0
- hhvm
before_install:
- composer selfupdate
- composer install
script:
- php vendor/bin/phpunit
after_script:
- php vendor/bin/coveralls
notifications:
slack:
secure: JePSotcs0psHN4Rl9HILCl298jZ0PS34BxEAu3YLWWfYo2hgFf8I3RuJfC8hlFvVq3DR4IFHn5oOZJX38goL9mxs0fsAxuGAPBzJHgMms9Ny2L58WJYNkuxTbHCPoFou5xPjQP1zXvU2qSob6j41MOAnHmN2IerOMtkSTfx31dE=
| language: php
dist: trusty
php:
- 5.6
- 7.0
- 7.1
- hhvm
before_install:
- composer selfupdate
- composer install
script:
- php vendor/bin/phpunit
after_script:
- php vendor/bin/coveralls
notifications:
slack:
secure: JePSotcs0psHN4Rl9HILCl298jZ0PS34BxEAu3YLWWfYo2hgFf8I3RuJfC8hlFvVq3DR4IFHn5oOZJX38goL9mxs0fsAxuGAPBzJHgMms9Ny2L58WJYNkuxTbHCPoFou5xPjQP1zXvU2qSob6j41MOAnHmN2IerOMtkSTfx31dE=
|
Remove testing from other ruby versions | before_install: gem update bundler
bundler_args: --without development
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- rbx-2
- ruby-head
language: ruby | before_install: gem update bundler
bundler_args: --without development
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
language: ruby |
Add more node.js versions to Travis CI | sudo: false
language: node_js
node_js:
- stable
- "0.12"
| sudo: false
language: node_js
node_js:
- "5"
- "4"
- "0.12"
|
Add code climate test coverage | language: ruby
| language: ruby
addons:
code_climate:
repo_token: 3fedf540189b9a4cab8cd906f464d2db431b8d76888d74828c80db4c14c2f065
|
Use the installed phpunit executable to run the tests | language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
script:
- ./vendor/bin/phpcbf --standard=PSR2 -v src/
- phpunit --coverage-clover=coverage.clover
after_script:
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
| language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
script:
- ./vendor/bin/phpcbf --standard=PSR2 -v src/
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
|
Fix issue with the build file | language: node_js
node_js:
- node
script: script/cibuild
deploy:
provider: pages
skip-cleanup: true
local_dir: build
target_branch: gh-pages
github_token: $GITHUB_TOKEN
on
branch: master
| language: node_js
node_js:
- node
script: script/cibuild
deploy:
provider: pages
skip-cleanup: true
local_dir: build
target_branch: gh-pages
github_token: $GITHUB_TOKEN
on:
branch: master
|
Use 'bundle exec' in Travis | language: ruby
rvm:
- "1.9.3"
- "2.0.0"
- "2.1.1"
- rbx-2
- jruby-19mode
script: "rake test functional_test DEBUG_LOGS=true"
sudo: false
cache: bundler
| language: ruby
rvm:
- "1.9.3"
- "2.0.0"
- "2.1.1"
- rbx-2
- jruby-19mode
script: "bundle exec rake test functional_test DEBUG_LOGS=true"
sudo: false
cache: bundler
|
Add Windows/OS X, cache npm, remove sudo false. | language: node_js
node_js:
- "6"
- "8"
- "10"
script: "npm run-script test-cover"
after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls"
sudo: false
| language: node_js
node_js:
- "6"
- "8"
- "10"
os:
- windows
- linux
- osx
cache: npm
script: "npm run-script test-cover"
after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls"
|
Add pyflakes to Travis tests | language: python
python:
- "3.4"
- "3.5.0b3"
- "3.5-dev"
- "nightly"
matrix:
allow_failures:
- python: "3.5-dev"
install:
- "python setup.py install"
script:
- py.test
- catimg --help
- catimg --update --verbose
- catimg > /dev/null
sudo: false
| language: python
python:
- "3.4"
- "3.5.0b3"
- "3.5-dev"
- "nightly"
matrix:
allow_failures:
- python: "3.5-dev"
install:
- "python setup.py install"
- "pip install pyflakes"
script:
- py.test
- catimg --help
- catimg --update --verbose
- catimg > /dev/null
- pyflakes catimg/**/!(__init__).py setup.py
sudo: false
|
Use preinstalled rubygems for now | language: ruby
before_install:
- gem update --system
- gem uni -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem i bundler -v '< 2'
rvm:
- 2.3.8
- 2.4.6
- 2.5.5
- 2.6.2
- ruby-head
gemfile:
- gemfiles/Gemfile-rails.4.2.x
- gemfiles/Gemfile-rails.5.0.x
- gemfiles/Gemfile-rails.5.1.x
- gemfiles/Gemfile-rails.5.2.x
- gemfiles/Gemfile-rails-edge
cache:
bundler: true
directories:
- node_modules
yarn: true
install:
- bundle install
- nvm install 10
- node -v
- npm i -g yarn
- yarn
script:
- yarn lint
- yarn test
- bundle exec rubocop
- bundle exec rake test
matrix:
allow_failures:
- gemfile: gemfiles/Gemfile-rails-edge
- rvm: ruby-head
exclude:
- rvm: 2.3.8
gemfile: gemfiles/Gemfile-rails-edge
- rvm: 2.4.6
gemfile: gemfiles/Gemfile-rails-edge
- rvm: 2.5.5
gemfile: gemfiles/Gemfile-rails-edge
- rvm: ruby-head
gemfile: gemfiles/Gemfile-rails.4.2.x
| language: ruby
before_install:
- gem uni -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem i bundler -v '< 2'
rvm:
- 2.3.8
- 2.4.6
- 2.5.5
- 2.6.2
- ruby-head
gemfile:
- gemfiles/Gemfile-rails.4.2.x
- gemfiles/Gemfile-rails.5.0.x
- gemfiles/Gemfile-rails.5.1.x
- gemfiles/Gemfile-rails.5.2.x
- gemfiles/Gemfile-rails-edge
cache:
bundler: true
directories:
- node_modules
yarn: true
install:
- bundle install
- nvm install 10
- node -v
- npm i -g yarn
- yarn
script:
- yarn lint
- yarn test
- bundle exec rubocop
- bundle exec rake test
matrix:
allow_failures:
- gemfile: gemfiles/Gemfile-rails-edge
- rvm: ruby-head
exclude:
- rvm: 2.3.8
gemfile: gemfiles/Gemfile-rails-edge
- rvm: 2.4.6
gemfile: gemfiles/Gemfile-rails-edge
- rvm: 2.5.5
gemfile: gemfiles/Gemfile-rails-edge
- rvm: ruby-head
gemfile: gemfiles/Gemfile-rails.4.2.x
|
Add Ruby 2.6 and 2.7 to test target | language: ruby
dist: trusty
script: bundle exec rake test
matrix:
include:
- os: linux
rvm: 2.4.4
- os: osx
rvm: 2.4.4
- os: linux
rvm: 2.5.1
- os: osx
rvm: 2.5.1
fast_finish: true
| language: ruby
dist: trusty
script: bundle exec rake test
matrix:
include:
- os: linux
rvm: 2.4.4
- os: osx
rvm: 2.4.4
- os: linux
rvm: 2.5.1
- os: osx
rvm: 2.5.1
- os: linux
rvm: 2.6.6
- os: osx
rvm: 2.6.6
- os: linux
rvm: 2.7.1
- os: osx
rvm: 2.7.1
fast_finish: true
|
Remove January test suite from Travis CI | sudo: false # use containers
language: java
cache:
directories:
- $HOME/.m2 # Maven dependencies
# whitelist
branches:
only:
- master
jdk:
- oraclejdk8
# Run the commit message check and then check out some required dependencies.
# TODO Currently check in messages are not checked for dawnsci.
# - chmod +x ./org.eclipse.dawnsci.releng/build/commit-msg.sh
# - bash ./org.eclipse.dawnsci.releng/build/commit-msg.sh
before_install:
- git clone --depth=50 --branch=master https://github.com/eclipse/richbeans.git ../org.eclipse.richbeans
- git clone --depth=50 --branch=master https://github.com/DawnScience/dawn-hdf.git ../../dawn-hdf
# Run the build from org.eclipse.dawnsci
install:
- cd ..
- mv dawnsci org.eclipse.dawnsci
- cd org.eclipse.dawnsci
# Set LD_LIBRARY_PATH for the tests
env:
- LD_LIBRARY_PATH=/home/travis/build/dawn-hdf/hdf.hdf5lib/lib/linux-x86_64
# Maven compile and test
# No need to run this as default travis will find maven and run it
script:
- mvn clean install surefire:test -Dtest.includes=org/eclipse/january/**/*Suite.java,org/eclipse/dawnsci/**/*Suite.java
| sudo: false # use containers
language: java
cache:
directories:
- $HOME/.m2 # Maven dependencies
# whitelist
branches:
only:
- master
jdk:
- oraclejdk8
# Run the commit message check and then check out some required dependencies.
# TODO Currently check in messages are not checked for dawnsci.
# - chmod +x ./org.eclipse.dawnsci.releng/build/commit-msg.sh
# - bash ./org.eclipse.dawnsci.releng/build/commit-msg.sh
before_install:
- git clone --depth=50 --branch=master https://github.com/eclipse/richbeans.git ../org.eclipse.richbeans
- git clone --depth=50 --branch=master https://github.com/DawnScience/dawn-hdf.git ../../dawn-hdf
# Run the build from org.eclipse.dawnsci
install:
- cd ..
- mv dawnsci org.eclipse.dawnsci
- cd org.eclipse.dawnsci
# Set LD_LIBRARY_PATH for the tests
env:
- LD_LIBRARY_PATH=/home/travis/build/dawn-hdf/hdf.hdf5lib/lib/linux-x86_64
# Maven compile and test
# No need to run this as default travis will find maven and run it
script:
- mvn clean install surefire:test -Dtest.includes=org/eclipse/dawnsci/**/*Suite.java
|
Switch to container-based Travis CI infrastructure | ---
language: bash
script:
- bin/fetch-configlet
- bin/configlet .
| ---
language: bash
script:
- bin/fetch-configlet
- bin/configlet .
sudo: false
|
Build with Node.js 12 on Travis CI. | sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '6'
- '8'
- '10'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- make zic && make
| sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '6'
- '8'
- '10'
- '12'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- make zic && make
|
Make sure search index is rebuilt completely when deploying | language: python
python:
- 3.4
install:
- pip install -r requirements.txt
script:
- coverage run --source=sergey,proposal manage.py test
- python manage.py syncdb --noinput
- python manage.py migrate --noinput
- python manage.py review
after_success:
- coveralls
deploy:
provider: heroku
api_key:
secure: ZD5BgojYQUWqegRjdIDNy/VaWIHJTLSbWiBCqYZxH+ZGJueBUOGdJEYCAGkKxUotBe4XaowX/y7/MROCYMQ0J2vr02T5Gyj9TZKtDfbMZ/0OjB7jHFKn0RC1pej8yt4ruslF1xqL0YwAZhD5DO6QSm5c0L5HK6Is9dlgtIcuM/Y=
app: pyvideoru
on:
repo: coagulant/pyvideo.ru
run:
- "python manage.py migrate --noinput"
- "python manage.py review"
- "python manage.py embed"
- "python manage.py update_index"
- restart
| language: python
python:
- 3.4
install:
- pip install -r requirements.txt
script:
- coverage run --source=sergey,proposal manage.py test
- python manage.py syncdb --noinput
- python manage.py migrate --noinput
- python manage.py review
after_success:
- coveralls
deploy:
provider: heroku
api_key:
secure: ZD5BgojYQUWqegRjdIDNy/VaWIHJTLSbWiBCqYZxH+ZGJueBUOGdJEYCAGkKxUotBe4XaowX/y7/MROCYMQ0J2vr02T5Gyj9TZKtDfbMZ/0OjB7jHFKn0RC1pej8yt4ruslF1xqL0YwAZhD5DO6QSm5c0L5HK6Is9dlgtIcuM/Y=
app: pyvideoru
on:
repo: coagulant/pyvideo.ru
run:
- "python manage.py migrate --noinput"
- "python manage.py review"
- "python manage.py embed"
- "python manage.py clear_index --noinput"
- "python manage.py update_index"
- restart
|
Add Custom Script to Travis | language: objective-c
osx_image: xcode8.2
xcode_project: tmdb.xcodeproj
xcode_scheme: tmdb
xcode_sdk: iphonesimulator8.3
| language: objective-c
osx_image: xcode8.2
xcode_project: tmdb.xcodeproj
xcode_scheme: tmdb
xcode_sdk: iphonesimulator8.3
script:
- xcodebuild build test -sdk iphonesimulator -project tmdb.xcodeproj -scheme tmdb -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.2' -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO
|
Update liberty version to 17.0.0_01 | sudo: false
language: java
matrix:
include:
- jdk: oraclejdk7
env: WLP_VERSION=8.5.5_09 WLP_LICENSE=L-MCAO-9SYMVC
- jdk: oraclejdk8
env: WLP_VERSION=16.0.0_03 WLP_LICENSE=L-SWIS-ABKSXS
script:
- travis_wait mvn verify -Ponline-its -Dinvoker.streamLogs=true -DwlpVersion=$WLP_VERSION -DwlpLicense=$WLP_LICENSE
| sudo: false
language: java
matrix:
include:
- jdk: oraclejdk7
env: WLP_VERSION=8.5.5_09 WLP_LICENSE=L-MCAO-9SYMVC
- jdk: oraclejdk8
env: WLP_VERSION=17.0.0_01 WLP_LICENSE=L-SWIS-AEPPZP
script:
- travis_wait mvn verify -Ponline-its -Dinvoker.streamLogs=true -DwlpVersion=$WLP_VERSION -DwlpLicense=$WLP_LICENSE
|
Install dependencies with pip3. Upload to codecov.io | # Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:3.6.1
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
# run tests!
# this example uses Django's built-in test-runner
# other common Python testing frameworks include pytest and nose
# https://pytest.org
# https://nose.readthedocs.io
- run:
name: run tests
command: |
. venv/bin/activate
pytest --cov=./
- store_artifacts:
path: test-reports
destination: test-reports
| # Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:3.6.1
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
# run tests!
# this example uses Django's built-in test-runner
# other common Python testing frameworks include pytest and nose
# https://pytest.org
# https://nose.readthedocs.io
- run:
name: run tests
command: |
. venv/bin/activate
pytest --cov=./
codecov
- store_artifacts:
path: test-reports
destination: test-reports
|
Add more ruby versions and platforms | rvm:
- 1.9.2
- jruby
- 1.9.3
- ruby-head
env: JRUBY_OPTS=--1.9
script: "bundle exec rspec spec"
| rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ree
- ruby-head
- rbx
- rbx-2.0
- jruby
env: JRUBY_OPTS=--1.9
script: "bundle exec rspec spec"
|
Use Maven Wrapper in Travis | ---
language: java
jdk:
- oraclejdk8
after_success:
- mvn -P coverage clean test jacoco:report coveralls:jacoco
| ---
language: java
jdk:
- oraclejdk8
after_success:
- ./mvnw -P coverage clean test jacoco:report coveralls:jacoco
|
Add 3.7 to build matrix, remove 3.4 | sudo: false
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
install: "pip install -e ."
script: nose2
| sudo: true
dist: xenial
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
install: "pip install -e ."
script: nose2
|
Support Go 1.9 and remove 1.7 | language: go
go:
- 1.7.x
- 1.8.x
sudo: false
install:
- make install-tools
- make install-dependencies
- make install
script:
- make lint
- make test-verbose-with-coverage
- gover
- if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
env:
# coveralls.io
secure: "OntYh2L1QW3VWuxKHDh5tWdWpUzIEuCVKqpjN11OOFriByT9AC1noYFq15KV30vtIyqs25fy7II5KjRrlTlawQFga0ahSG7BmFW0gfqLQWbPouAlHNVPVkf4QfTKb8Dtn1JQVB5p6egPCjE/xzZE5/mjgylsfTKRz5Y85OPfri8="
| language: go
go:
- 1.8.x
- 1.9.x
sudo: false
install:
- make install-tools
- make install-dependencies
- make install
script:
- make lint
- make test-verbose-with-coverage
- gover
- if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
env:
# coveralls.io
secure: "OntYh2L1QW3VWuxKHDh5tWdWpUzIEuCVKqpjN11OOFriByT9AC1noYFq15KV30vtIyqs25fy7II5KjRrlTlawQFga0ahSG7BmFW0gfqLQWbPouAlHNVPVkf4QfTKb8Dtn1JQVB5p6egPCjE/xzZE5/mjgylsfTKRz5Y85OPfri8="
|
Add Ruby 2.3 in the test matrix | bundler_args: --without development
language: ruby
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1
- 2.2.4
- jruby-18mode
- jruby-19mode
- jruby-head
- rbx-2
- ruby-head
matrix:
allow_failures:
- rvm: 1.9.2
- rvm: jruby-18mode
- rvm: jruby-19mode
- rvm: jruby-head
- rvm: rbx-2
- rvm: ruby-head
fast_finish: true
script: bundle exec thor spec
sudo: false
| bundler_args: --without development
language: ruby
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.5
- 2.3.1
- jruby-18mode
- jruby-19mode
- jruby-head
- rbx-2
- ruby-head
matrix:
allow_failures:
- rvm: 1.9.2
- rvm: jruby-18mode
- rvm: jruby-19mode
- rvm: jruby-head
- rvm: rbx-2
- rvm: ruby-head
fast_finish: true
script: bundle exec thor spec
sudo: false
cache: bundler
|
Fix hhvm build: hhvm is not supported on precise, but it is on trusty | language: php
dist: precise
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
- hhvm-nightly
matrix:
allow_failures:
- php: 7.0
- php: 7.1
- php: hhvm
- php: hhvm-nightly
script: phpunit --verbose
| language: php
dist: precise
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
- hhvm-nightly
matrix:
include:
- php: hhvm
dist: trusty
- php: hhvm-nightly
dist: trusty
allow_failures:
- php: 7.0
- php: 7.1
script: phpunit --verbose
|
Test on 2.1 also. Drop multiple JDK test. | language: ruby
bundler_args: --without development
rvm:
- 1.9.3
- 2.0.0
- jruby
jdk:
- oraclejdk7
- openjdk7
env: JRUBY_OPTS="--server -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -J-Xms512m -J-Xmx1024m"
services:
- mongodb
matrix:
exclude:
- rvm: 1.9.3
jdk: oraclejdk7
env: JRUBY_OPTS="--server -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -J-Xms512m -J-Xmx1024m"
- rvm: 2.0.0
jdk: oraclejdk7
env: JRUBY_OPTS="--server -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -J-Xms512m -J-Xmx1024m"
| language: ruby
bundler_args: --without development
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- jruby
env: JRUBY_OPTS="--server -J-Xms512m -J-Xmx1024m"
services:
- mongodb
|
Test gem on recent ruby versions | language: ruby
rvm:
- 2.1
- ruby-head
- jruby-19mode
- rbx-2
- 2.2.3
- 2.3.1
matrix:
allow_failures:
- rvm: ruby-head
bundler_args: --without local_development
before_install: gem install bundler
| language: ruby
rvm:
- 2.1
- ruby-head
- jruby-19mode
- rbx-2
- 2.2.10
- 2.3.8
- 2.4.6
- 2.5.5
- 2.6.2
matrix:
allow_failures:
- rvm: ruby-head
bundler_args: --without local_development
before_install: gem install bundler -v 1.17.3
|
Install the verified fake package in Travis. | language: python
python:
- "2.6"
- "2.7"
services:
- riak
before_install:
# we need the protobuf-compiler so we can install Riak client libraries
- sudo apt-get install -qq protobuf-compiler
install:
- "pip install -r requirements.txt --use-wheel"
- "pip install coveralls --use-wheel"
- "python setup.py install"
script:
- coverage run --source=go_contacts `which trial` go_contacts
after_success:
- coveralls
| language: python
python:
- "2.6"
- "2.7"
services:
- riak
before_install:
# we need the protobuf-compiler so we can install Riak client libraries
- sudo apt-get install -qq protobuf-compiler
install:
- "pip install -r requirements.txt --use-wheel"
- "pip install coveralls --use-wheel"
- "pip install -e ."
# We need to install the verified fake as well so we can test it.
- "pip install -e ./verified-fake"
script:
- coverage run --source=go_contacts `which trial` go_contacts
after_success:
- coveralls
|
Add Ruby 2.5 to Travis CI | sudo: required
services:
- docker
language: ruby
rvm:
- "2.2.7"
- "2.3.4"
- "2.4.1"
- "jruby-9.1.15.0"
cache: bundler
script: rake test
| sudo: required
services:
- docker
language: ruby
rvm:
- 2.2
- 2.3
- 2.4
- 2.5
- jruby-9.1.15.0
- ruby-head
- jruby-head
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
cache: bundler
script: rake test
|
Remove composer cache directories Travis CI | language: php
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.6
- php: 7.0
allow_failures:
- php: 7.0
install:
- composer install
script:
- phpunit -c app
| language: php
matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.6
- php: 7.0
allow_failures:
- php: 7.0
install:
- composer install
script:
- phpunit -c app
|
Duplicate packages for all versions | language: go
go:
- 1.1
- 1.2
- 1.3
- 1.4
- tip
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get code.google.com/p/go.tools/cmd/cover
- go get github.com/golang/lint/golint
script:
- $HOME/gopath/bin/golint
- $HOME/gopath/bin/goveralls -repotoken $GOVERALLS_TOKEN
notifications:
email:
recipients:
- montana@montanaflynn.me
on_success: change
on_failure: always
| language: go
go:
- 1.1
- 1.2
- 1.3
- 1.4
- tip
install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get code.google.com/p/go.tools/cmd/cover
- go get golang.org/x/tools/cmd/cover
- go get github.com/golang/lint/golint
script:
- $HOME/gopath/bin/golint
- $HOME/gopath/bin/goveralls -repotoken $GOVERALLS_TOKEN
notifications:
email:
recipients:
- montana@montanaflynn.me
on_success: change
on_failure: always
|
Fix build error: Can't find bundler |
language: ruby
sudo: false
cache: bundler
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- export REPO=gabriprat/hoshinplan
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- export COMMIT=$TRAVIS_COMMIT
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
addons:
postgresql: "9.4"
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- bundle exec rake db:test:prepare
services:
- docker
- redis
rvm:
- ruby-2.4.1
|
language: ruby
sudo: false
cache: bundler
install:
- gem uninstall bundler
- gem install bundler --version '1.16.0'
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- export REPO=gabriprat/hoshinplan
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- export COMMIT=$TRAVIS_COMMIT
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
addons:
postgresql: "9.4"
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- bundle exec rake db:test:prepare
services:
- docker
- redis
rvm:
- ruby-2.4.1
|
Use npm 1.4.6 when testing on Travis-CI | language: node_js
node_js:
- '0.12'
- '0.11'
- '0.10'
- '0.8'
- 'iojs'
| language: node_js
node_js:
- '0.12'
- '0.11'
- '0.10'
- '0.8'
- 'iojs'
before_install:
- npm install -g npm@~1.4.6
|
Allow failures for PHP 7 | language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
install:
- composer self-update && composer --version
- composer install --prefer-dist --dev
- wget https://scrutinizer-ci.com/ocular.phar
script:
- vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --configuration="phpunit.xml"
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
| language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
- 7.0
matrix:
allow_failures:
- php: hhvm
- php: 7.0
install:
- composer self-update && composer --version
- composer install --prefer-dist --dev
- wget https://scrutinizer-ci.com/ocular.phar
script:
- vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --configuration="phpunit.xml"
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
Drop Python 3.4 from the tests | language: python
sudo: false
env:
- RUNCOVERAGE=1 ROBOTPY_NO_DEPS=1
python:
- "3.4"
- "3.5"
- "3.6"
# command to install dependencies
install:
- pip install -U pip
- pip install -r travis-requirements.txt
# command to run tests
script:
- tests/run_tests.sh
deploy:
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/2fb1c026e64fdd70d27b
on_success: change
on_failure: always
on_start: never | language: python
sudo: false
env:
- RUNCOVERAGE=1 ROBOTPY_NO_DEPS=1
python:
- "3.5"
- "3.6"
# command to install dependencies
install:
- pip install -U pip
- pip install -r travis-requirements.txt
# command to run tests
script:
- tests/run_tests.sh
deploy:
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/2fb1c026e64fdd70d27b
on_success: change
on_failure: always
on_start: never
|
Test with latest Ruby versions | ---
os: linux
dist: focal
language: ruby
cache: bundler
rvm:
- 2.7.2
- 2.6.6
- 2.5.8
- ruby-head
- jruby-9.2.13.0
| ---
os: linux
dist: focal
language: ruby
cache: bundler
rvm:
- 2.7.2
- 2.6.6
- 2.5.8
- ruby-head
- jruby-9.2.14.0
|
Include 3.2 and php 5.6 in tests | language: php
php:
- 5.3
- 5.4
sudo: false
env:
- DB=MYSQL CORE_RELEASE=3.0
- DB=MYSQL CORE_RELEASE=3
- DB=PGSQL CORE_RELEASE=3
- DB=SQLITE CORE_RELEASE=3
matrix:
exclude:
- php: 5.4
env: DB=PGSQL CORE_RELEASE=3
- php: 5.4
env: DB=SQLITE CORE_RELEASE=3
- php: 5.4
env: DB=MYSQL CORE_RELEASE=3.0
before_script:
- pear -q install --onlyreqdeps pear/PHP_CodeSniffer
- phpenv rehash
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
script:
- phpunit restfulserver/tests/
- phpcs --encoding=utf-8 --tab-width=4 --standard=restfulserver/tests/phpcs -np restfulserver
| language: php
php:
- 5.3
sudo: false
env:
- DB=MYSQL CORE_RELEASE=3.1
matrix:
include:
- php: 5.4
env: DB=PGSQL CORE_RELEASE=3.2
- php: 5.4
env: DB=SQLITE CORE_RELEASE=3.2
- php: 5.5
env: DB=MYSQL CORE_RELEASE=3
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3.2
before_script:
- pear -q install --onlyreqdeps pear/PHP_CodeSniffer
- phpenv rehash
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
script:
- phpunit restfulserver/tests/
- phpcs --encoding=utf-8 --tab-width=4 --standard=restfulserver/tests/phpcs -np restfulserver
|
Remove request package from CI. | language: go
go:
- tip
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
- go test -coverprofile=monitor.coverprofile ./internal/monitor
- go test -coverprofile=operator.coverprofile ./internal/operator
- go test -coverprofile=client.coverprofile ./internal/operator/internal/client
- go test -coverprofile=request.coverprofile ./internal/operator/internal/request
- $HOME/gopath/bin/gover
- $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci
| language: go
go:
- tip
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
- go test -coverprofile=monitor.coverprofile ./internal/monitor
- go test -coverprofile=operator.coverprofile ./internal/operator
- go test -coverprofile=client.coverprofile ./internal/operator/internal/client
- $HOME/gopath/bin/gover
- $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci
|
Fix double slash in RSS feed post URLs | name: dev etc
description: Where mistakes go to die.
url: http://devetc.org/
author: Jonathon Mah
markdown: kramdown
pygments: true
| name: dev etc
description: Where mistakes go to die.
url: http://devetc.org
author: Jonathon Mah
markdown: kramdown
pygments: true
|
Fix Travis CI configuration file | language: c++
compiler:
- gcc
script:
- mkdir build && cd build && cmake .. && make
| language: c++
sudo: required
compiler:
- gcc
before_install:
- sudo apt-get install boost-dev
script:
- mkdir build && cd build && cmake .. && make
|
Remove configuration for pip mirrors | language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- pypy
before_install:
- sudo apt-get install subversion bzr mercurial
- echo -e "[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt" >> ~/.hgrc
- git config --global user.email "python-virtualenv@googlegroups.com"
- git config --global user.name "Pip"
install: pip install pytest pytest-xdist git+https://github.com/pypa/virtualenv@develop#egg=virtualenv scripttest>=1.3 mock
# Using -n 8because multiprocessing says a travis box has 16 CPUs (8 is half)
script: py.test -n 8
notifications:
irc: "irc.freenode.org#pip"
branches:
only:
- develop
- 1.3.X
- 1.4.X
env:
- PIP_USE_MIRRORS=true
| language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- pypy
before_install:
- sudo apt-get install subversion bzr mercurial
- echo -e "[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt" >> ~/.hgrc
- git config --global user.email "python-virtualenv@googlegroups.com"
- git config --global user.name "Pip"
install: pip install pytest pytest-xdist git+https://github.com/pypa/virtualenv@develop#egg=virtualenv scripttest>=1.3 mock
# Using -n 8because multiprocessing says a travis box has 16 CPUs (8 is half)
script: py.test -n 8
notifications:
irc: "irc.freenode.org#pip"
branches:
only:
- develop
- 1.3.X
- 1.4.X
|
Use ruby 2.2.3 instead of 2.2.2 on Travis | ---
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.6
- 2.2.2
- rbx-2
matrix:
allow_failures:
- rvm: rbx-2
exclude:
- rvm: 1.9.3
env: DB=database.yml.postgresql
- rvm: 2.0.0
env: DB=database.yml.postgresql
- rvm: 2.1.6
env: DB=database.yml.postgresql
- rvm: rbx-2
env: DB=database.yml.postgresql
- rvm: 1.9.3
env: DB=database.yml.mysql
- rvm: 2.0.0
env: DB=database.yml.mysql
- rvm: 2.1.6
env: DB=database.yml.mysql
- rvm: rbx-2
env: DB=database.yml.mysql
env:
global:
- DISPLAY=:99.0
matrix:
- DB=database.yml.mysql
- DB=database.yml.postgresql
- DB=database.yml.sqlite
before_install:
- sh -e /etc/init.d/xvfb start
- ./ci/add_mysql_gem.sh
before_script:
- cp config/$DB config/database.yml
- bundle exec rake db:create db:migrate
sudo: false
addons:
postgresql: "9.3"
| ---
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.6
- 2.2.3
- rbx-2
matrix:
allow_failures:
- rvm: rbx-2
exclude:
- rvm: 1.9.3
env: DB=database.yml.postgresql
- rvm: 2.0.0
env: DB=database.yml.postgresql
- rvm: 2.1.6
env: DB=database.yml.postgresql
- rvm: rbx-2
env: DB=database.yml.postgresql
- rvm: 1.9.3
env: DB=database.yml.mysql
- rvm: 2.0.0
env: DB=database.yml.mysql
- rvm: 2.1.6
env: DB=database.yml.mysql
- rvm: rbx-2
env: DB=database.yml.mysql
env:
global:
- DISPLAY=:99.0
matrix:
- DB=database.yml.mysql
- DB=database.yml.postgresql
- DB=database.yml.sqlite
before_install:
- sh -e /etc/init.d/xvfb start
- ./ci/add_mysql_gem.sh
before_script:
- cp config/$DB config/database.yml
- bundle exec rake db:create db:migrate
sudo: false
addons:
postgresql: "9.3"
|
Switch to container based testing on Travis | language: node_js
node_js:
- 0.10
before_script:
- npm install -g grunt-cli
notifications:
email: false
irc: false
branches:
only:
- master
| sudo: false
language: node_js
node_js:
- 0.10
before_script:
- npm install -g grunt-cli
notifications:
email: false
irc: false
branches:
only:
- master
|
Update the version of ruby used to build project in TravisCI. | # Lock down dist to ensure that builds run on a distribution that supports oraclejdk8
dist: trusty
language: ruby
jdk:
- oraclejdk8
rvm:
- 2.6.6
install:
- gem install bundler
- bundle install
script: buildr package
git:
depth: false
| # Lock down dist to ensure that builds run on a distribution that supports oraclejdk8
dist: trusty
language: ruby
jdk:
- oraclejdk8
rvm:
- 2.7.2
install:
- gem install bundler
- bundle install
script: buildr package
git:
depth: false
|
Exclude early versions of MiniTest gem from CI for Ruby 1.9.3. | script: "rake test"
notifications:
recipients:
- james@floehopper.org
rvm:
- 1.8.7
- 1.9.3
gemfile:
- Gemfile
- gemfiles/Gemfile.test-unit.latest
- gemfiles/Gemfile.test-unit.2.0.3
- gemfiles/Gemfile.test-unit.2.0.1
- gemfiles/Gemfile.test-unit.2.0.0
- gemfiles/Gemfile.minitest.latest
- gemfiles/Gemfile.minitest.2.3.0
- gemfiles/Gemfile.minitest.2.0.1
- gemfiles/Gemfile.minitest.2.0.0
- gemfiles/Gemfile.minitest.1.4.2
- gemfiles/Gemfile.minitest.1.4.0
- gemfiles/Gemfile.minitest.1.3.0
env:
- MOCHA_OPTIONS=debug
| script: "rake test"
notifications:
recipients:
- james@floehopper.org
rvm:
- 1.8.7
- 1.9.3
gemfile:
- Gemfile
- gemfiles/Gemfile.test-unit.latest
- gemfiles/Gemfile.test-unit.2.0.3
- gemfiles/Gemfile.test-unit.2.0.1
- gemfiles/Gemfile.test-unit.2.0.0
- gemfiles/Gemfile.minitest.latest
- gemfiles/Gemfile.minitest.2.3.0
- gemfiles/Gemfile.minitest.2.0.1
- gemfiles/Gemfile.minitest.2.0.0
- gemfiles/Gemfile.minitest.1.4.2
- gemfiles/Gemfile.minitest.1.4.0
- gemfiles/Gemfile.minitest.1.3.0
env:
- MOCHA_OPTIONS=debug
matrix:
exclude:
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.minitest.1.3.0
env: MOCHA_OPTIONS=debug
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.minitest.1.4.0
env: MOCHA_OPTIONS=debug
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.minitest.1.4.2
env: MOCHA_OPTIONS=debug
|
Test through Python 3.9 in CI pipeline | # Travis CI Configuration
language: python
python:
- "3.5"
- "3.6"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
- coverage run -m nose
- pycodestyle cachesimulator/*.py
after_success:
- coveralls
| # Travis CI Configuration
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
- coverage run -m nose
- pycodestyle cachesimulator/*.py
after_success:
- coveralls
|
Test against future PHP versions | language: php
php:
- "5.3"
- "5.4"
- "5.5"
- "5.6"
- "7.0"
- "7.1"
- "hhvm"
matrix:
include:
- php: 5.3
dist: precise
sudo: false
install: travis_retry composer install --no-interaction --prefer-source
script:
- if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi
after_script:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
| language: php
php:
- "5.3"
- "5.4"
- "5.5"
- "5.6"
- "7.0"
- "7.1"
- "master"
- "hhvm"
matrix:
include:
- php: 5.3
dist: precise
allow_failures:
- php: master
sudo: false
install: travis_retry composer install --no-interaction --prefer-source
script:
- if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi
after_script:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
|
Test with Ruby 1.8.7 on Travis CI. | language: ruby
cache: bundler
rvm:
- 2.2.0
- 2.1.0
- 2.0.0
- 1.9.3
before_install:
- gem update bundler
| language: ruby
cache: bundler
rvm:
- 2.2.0
- 2.1.0
- 2.0.0
- 1.9.3
- 1.8.7
before_install:
- gem update bundler
|
Remove RVM from Travis since we use Ruby in ChefDK | rvm: 2.2
sudo: required
# install the pre-release chef-dk. Use chef-stable-precise to install the stable release
addons:
apt:
sources:
- chef-current-precise
packages:
- chefdk
services: docker
env:
matrix:
- INSTANCE=default-ubuntu-1204
- INSTANCE=default-ubuntu-1404
- INSTANCE=default-centos-6
- INSTANCE=default-centos-7
# Don't `bundle install`
install: echo "skip bundle install"
# Ensure we make ChefDK's Ruby the default
before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142230889
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- /opt/chefdk/embedded/bin/chef gem install kitchen-docker
script:
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/rubocop --version
- /opt/chefdk/embedded/bin/rubocop
- /opt/chefdk/embedded/bin/foodcritic --version
- /opt/chefdk/embedded/bin/foodcritic . --exclude spec
- /opt/chefdk/embedded/bin/rspec
- KITCHEN_LOCAL_YAML=.kitchen.docker.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE}
| sudo: required
# install the pre-release chef-dk. Use chef-stable-precise to install the stable release
addons:
apt:
sources:
- chef-current-precise
packages:
- chefdk
services: docker
env:
matrix:
- INSTANCE=default-ubuntu-1204
- INSTANCE=default-ubuntu-1404
- INSTANCE=default-centos-6
- INSTANCE=default-centos-7
# Don't `bundle install`
install: echo "skip bundle install"
# Ensure we make ChefDK's Ruby the default
before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142230889
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- /opt/chefdk/embedded/bin/chef gem install kitchen-docker
script:
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/rubocop --version
- /opt/chefdk/embedded/bin/rubocop
- /opt/chefdk/embedded/bin/foodcritic --version
- /opt/chefdk/embedded/bin/foodcritic . --exclude spec
- /opt/chefdk/embedded/bin/rspec
- KITCHEN_LOCAL_YAML=.kitchen.docker.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE}
|
Add Carthage prebuild frameworks support on TravisCI | language: objective-c
osx_image: xcode9
before_install:
- export LANG=en_US.UTF-8
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild -workspace Example/EAIntroView.xcworkspace -scheme EAIntroView-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
| language: objective-c
osx_image: xcode9
before_install:
- export LANG=en_US.UTF-8
- brew update
- brew outdated carthage || brew upgrade carthage
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild -workspace Example/EAIntroView.xcworkspace -scheme EAIntroView-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
before_deploy:
- carthage build --no-skip-current
- carthage archive EAIntroView
deploy:
provider: releases
api_key:
secure: KVRgXHYFgNRhn55Sg1ubMBdFRSghJoTJZ7vVc/kY69grj5husQnkKGEikMkGWjQAVetjE0KgQ/UzAXkxf9m4y0BJXc0WCOOzVwmSec3lw4wbPl5QoHSyy7Etfz6ji0FSLTAjLWKz7bU35o3KHB+MU12LzaV82Yvc4h8XcpSnRj8=
file: EAIntroView.framework.zip
skip_cleanup: true
on:
repo: ealeksandrov/EAIntroView
tags: true
|
Enable Travis build for Ruby 1.8.7 | language: ruby
rvm:
- 1.9.2
- 1.9.3
#- jruby-19mode # JRuby in 1.9 mode
# - rbx-18mode
# - rbx-19mode # currently in active development, may or may not work for your project
# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec
| language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
#- jruby-19mode # JRuby in 1.9 mode
# - rbx-18mode
# - rbx-19mode # currently in active development, may or may not work for your project
# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.