doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
6154b8da-03a1-4999-8532-fdd40644ea13
{ "language": "YAML" }
```yaml language: java sudo: false notifications: email: false cache: directories: - "${HOME}/.m2/" before_install: - openssl aes-256-cbc -K $encrypted_58a7d4f10478_key -iv $encrypted_58a7d4f10478_iv -in retest-gmbh-gpg.asc.enc -out retest-gmbh-gpg.asc -d - gpg --fast-import retest-gmbh-gpg.asc install: true before_deploy: mvn package -DskipTests --settings .travis.settings.xml deploy: provider: releases api_key: "${GH_TOKEN}" file_glob: true file: "./target/recheck-*.jar" skip_cleanup: true on: tags: true branch: master after_deploy: mvn deploy -DskipTests --settings .travis.settings.xml``` Make sure there is a new line at the end
```yaml language: java sudo: false notifications: email: false cache: directories: - "${HOME}/.m2/" before_install: - openssl aes-256-cbc -K $encrypted_58a7d4f10478_key -iv $encrypted_58a7d4f10478_iv -in retest-gmbh-gpg.asc.enc -out retest-gmbh-gpg.asc -d - gpg --fast-import retest-gmbh-gpg.asc install: true before_deploy: mvn package -DskipTests --settings .travis.settings.xml deploy: provider: releases api_key: "${GH_TOKEN}" file_glob: true file: "./target/recheck-*.jar" skip_cleanup: true on: tags: true branch: master after_deploy: mvn deploy -DskipTests --settings .travis.settings.xml ```
78aeb114-ddb8-46b3-a2e1-e026799e903f
{ "language": "YAML" }
```yaml rvm: - "2.1.10" - "2.2.5" - "2.3.1" ``` Add Ruby 2.4.0 to Travis CI environment
```yaml rvm: - "2.1.10" - "2.2.5" - "2.3.1" - "2.4.0" ```
84613b24-332b-4a21-bc00-2bdd0e57181f
{ "language": "YAML" }
```yaml language: python python: - "2.6" - "2.7" install: "pip install argparse --use-mirrors" script: nosetests ``` Add Python 3.2/3.3 to Travis YAML
```yaml language: python python: - "2.6" - "2.7" - "3.2" - "3.3" install: "pip install argparse --use-mirrors" script: nosetests ```
542b7d08-3d22-4d5a-aadb-9a1cf8c7802f
{ "language": "YAML" }
```yaml --- language: ruby sudo: false rvm: - 1.9.3 - 2.0.0 - 2.1.6 env: - PUPPET_GEM_VERSION="~> 3.0" - PUPPET_GEM_VERSION="~> 4.0" matrix: fast_finish: true include: - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.0.0 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.1.6 env: PUPPET_GEM_VERSION="~> 4.0" gemfile: .gemfile bundler_args: --without system_tests script: - "bundle exec rake validate" - "bundle exec rake lint" - "bundle exec rake spec SPEC_OPTS='--format documentation'" notifications: on_success: change on_failure: change ``` Update Travis CI build matrix
```yaml --- sudo: false language: ruby gemfile: .gemfile matrix: fast_finish: true include: - 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" script: - "bundle exec rake validate" - "bundle exec rake lint" - "bundle exec rake spec SPEC_OPTS='--format documentation'" bundler_args: --without system_tests notifications: on_success: change on_failure: change ```
50f101e1-c1b5-411b-9238-25679548b888
{ "language": "YAML" }
```yaml language: ruby env: LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" install: bundle install --jobs=1 --retry=3 rvm: - ruby - jruby - rbx ``` Update ci to use 2.2.0
```yaml language: ruby rvm: - 2.2.0 ```
17a00f56-f60d-4a4e-92ef-694bca475c69
{ "language": "YAML" }
```yaml language: node_js node_js: - "0.11" - "0.10" - 0.8 before_install: "npm install -g bob --loglevel error" script: "bob build" ``` Drop 0.8 due to bob's min node engine. Temp drop 0.11 due to buster ramp-resources sub dep install problem.
```yaml language: node_js node_js: - "0.10" before_install: "npm install -g bob --loglevel error" script: "bob build" ```
68633392-7f0b-49bb-b3f4-a915914ebeb2
{ "language": "YAML" }
```yaml language: "python" python: - "3.5" sudo: "required" services: - docker env: matrix: - >- TEMPLATE_FILE="templates/Dockerfile-template" BASE_IMAGE="java:7" GIT_TAG_NAME="nifi-0.5.1" DOCKER_TAGS="0.5.1-openjdk-7,latest" TEMPLATE_VALUES="base_image=java:7,nifi_version=0.5.1" DESTINATION="0.5.1-openjdk-7" - >- TEMPLATE_FILE="templates/Dockerfile-template" BASE_IMAGE="java:8" GIT_TAG_NAME="nifi-0.5.1" DOCKER_TAGS="0.5.1-openjdk-8,latest" TEMPLATE_VALUES="base_image=java:8,nifi_version=0.5.1" DESTINATION="0.5.1-openjdk-8" before_script: make_docker.py -h script: >- make_docker.py --repository mkobit/nifi --templateFile $TEMPLATE_FILE --templateSubstitutions $TEMPLATE_VALUES --destinationFile $DESTINATION --no-docker-build --no-docker-push ``` Make Travis before_script and script commands relative paths
```yaml language: "python" python: - "3.5" sudo: "required" services: - docker env: matrix: - >- TEMPLATE_FILE="templates/Dockerfile-template" BASE_IMAGE="java:7" GIT_TAG_NAME="nifi-0.5.1" DOCKER_TAGS="0.5.1-openjdk-7,latest" TEMPLATE_VALUES="base_image=java:7,nifi_version=0.5.1" DESTINATION="0.5.1-openjdk-7" - >- TEMPLATE_FILE="templates/Dockerfile-template" BASE_IMAGE="java:8" GIT_TAG_NAME="nifi-0.5.1" DOCKER_TAGS="0.5.1-openjdk-8,latest" TEMPLATE_VALUES="base_image=java:8,nifi_version=0.5.1" DESTINATION="0.5.1-openjdk-8" before_script: ./make_docker.py -h script: >- ./make_docker.py --repository mkobit/nifi --templateFile $TEMPLATE_FILE --templateSubstitutions $TEMPLATE_VALUES --destinationFile $DESTINATION --no-docker-build --no-docker-push ```
10a99491-e94d-4ab7-8225-fd8c3ae41809
{ "language": "YAML" }
```yaml language: python python: - 2.6 - 2.7 - 3.2 - 3.3 env: - DJANGO_VERSION=1.4.5 - DJANGO_VERSION=1.5.1 matrix: exclude: - env: DJANGO_VERSION=1.4.5 python: 3.3 - env: DJANGO_VERSION=1.4.5 python: 3.2 install: - pip install django==$DJANGO_VERSION - python setup.py develop script: cd example_project; python manage.py test photologue ``` Remove support for Python 3.2 (doesn't support Unicode literals)
```yaml language: python python: - 2.6 - 2.7 - 3.3 env: - DJANGO_VERSION=1.4.5 - DJANGO_VERSION=1.5.1 matrix: exclude: - env: DJANGO_VERSION=1.4.5 python: 3.3 install: - pip install django==$DJANGO_VERSION - python setup.py develop script: cd example_project; python manage.py test photologue ```
84280b31-a49b-483c-a001-3012e1fb942b
{ "language": "YAML" }
```yaml language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ruby-head - jruby - rbx - ree before_install: - sudo apt-get update -qq - sudo apt-get install -qq -y poppler-utils poppler-data matrix: allow_failures: - rvm: ruby-head ``` Allow rbx to fail in Travis, as it's not supported.
```yaml language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ruby-head - jruby - rbx - ree before_install: - sudo apt-get update -qq - sudo apt-get install -qq -y poppler-utils poppler-data matrix: allow_failures: - rvm: ruby-head - rvm: rbx ```
649eee83-a29a-4c22-8e47-99a379686719
{ "language": "YAML" }
```yaml sudo: required cache: bundler dist: trusty language: ruby rvm: - 2.3 - 2.4 - 2.5 gemfiles: - gemfiles/standalone.gemfile - gemfiles/rails_5.0.gemfile - gemfiles/rails_5.1.gemfile - gemfiles/rails_5.2.gemfile script: "bundle exec rspec && bundle exec codeclimate-test-reporter" before_install: - sudo add-apt-repository ppa:chris-lea/libsodium -y - sudo apt-get update -q - sudo apt-get install libsodium-dev -y - gem install bundler ``` Include ruby 2.6 in Travis execution plan
```yaml sudo: required cache: bundler dist: trusty language: ruby rvm: - 2.3 - 2.4 - 2.5 - 2.6 gemfiles: - gemfiles/standalone.gemfile - gemfiles/rails_5.0.gemfile - gemfiles/rails_5.1.gemfile - gemfiles/rails_5.2.gemfile script: "bundle exec rspec && bundle exec codeclimate-test-reporter" before_install: - sudo add-apt-repository ppa:chris-lea/libsodium -y - sudo apt-get update -q - sudo apt-get install libsodium-dev -y - gem install bundler ```
4c601d33-fed7-482c-9e97-e0854c84b488
{ "language": "YAML" }
```yaml language: "node_js" node_js: - 0.4 - 0.6 ``` Test on node 0.8 using Travis CI.
```yaml language: "node_js" node_js: - 0.4 - 0.6 - 0.8 ```
d369b088-c6c2-4fb1-b28e-be50baa45f28
{ "language": "YAML" }
```yaml sudo: false language: php cache: directories: - $HOME/.composer/cache matrix: allow_failures: - php: 7 include: - php: 7.0 env: PHPUNIT_VERSION='5.0.0' - php: 7.1 env: PHPUNIT_VERSION='5.0.0' - php: hhvm dist: trusty env: PHPUNIT_VERSION='4.8.36' php: - 5.3 - 5.4 - 5.5 - 5.6 install: - if [ "$PHPUNIT_VERSION" != "" ]; then composer require phpunit/phpunit:$PHPUNIT_VERSION --prefer-dist --no-interaction; fi; - if [ "$PHPUNIT_VERSION" == "" ]; then composer install --prefer-dist --no-interaction; fi; before_script: - mkdir -p build/logs script: - if [ "$PHPUNIT_VERSION" != "" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi; - if [ "$PHPUNIT_VERSION" == "" ]; then phpunit --coverage-clover build/logs/clover.xml; fi; after_success: - bash <(curl -s https://codecov.io/bash) after_script: - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar -t 3; fi; - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi; ``` Drop HHVM support and test on all PHP 7.x versions
```yaml sudo: false language: php cache: directories: - $HOME/.composer/cache matrix: include: - php: 5.3 dist: trusty php: - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - 7.2 install: composer install --prefer-dist --no-interaction before_script: - mkdir -p build/logs script: phpunit --coverage-clover build/logs/clover.xml after_success: - bash <(curl -s https://codecov.io/bash) after_script: - wget https://scrutinizer-ci.com/ocular.phar -t 3 - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml ```
8646bb75-939f-44e4-aa97-351c3d3ba0a9
{ "language": "YAML" }
```yaml # This is necessary until https://github.com/travis-ci/travis-ci/issues/3120 is # fixed sudo: required language: scala # These directories are cached to S3 at the end of the build cache: directories: - $HOME/.ivy2/cache - $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION scala: - 2.10.6 - 2.11.7 jdk: - oraclejdk7 # Note: not currently testing on JDK 8 internally - oraclejdk8 - openjdk7 notifications: hipchat: rooms: secure: olqJQz/4oPk0IYPAWLyOGwzDxNwGCjY0ZGXUnfd1MHzReWsb3opPwF9QUSGbpHHBhyLi8DLxrPXuBPhg/9TC1leIvTBAOKDPilV4XVZCNjH/VQ7JdiAREJC2o3M2pr6iwovEHO/k6a1TORXUf9Q2vX09FvFpiIcq+hpjR9BciVM= before_script: - unset SBT_OPTS - ./bin/travisci - travis_retry ./sbt ++$TRAVIS_SCALA_VERSION update script: ./sbt ++$TRAVIS_SCALA_VERSION coverage test && ./sbt ++$TRAVIS_SCALA_VERSION coverageAggregate after_success: ./sbt ++$TRAVIS_SCALA_VERSION coveralls ``` Disable openjdk7 in Travis CI builds
```yaml # This is necessary until https://github.com/travis-ci/travis-ci/issues/3120 is # fixed sudo: required language: scala # These directories are cached to S3 at the end of the build cache: directories: - $HOME/.ivy2/cache - $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION scala: - 2.10.6 - 2.11.7 jdk: - oraclejdk7 # Note: not currently testing on JDK 8 internally - oraclejdk8 # Enable once https://github.com/travis-ci/travis-ci/issues/5227 is fixed. #- openjdk7 notifications: hipchat: rooms: secure: olqJQz/4oPk0IYPAWLyOGwzDxNwGCjY0ZGXUnfd1MHzReWsb3opPwF9QUSGbpHHBhyLi8DLxrPXuBPhg/9TC1leIvTBAOKDPilV4XVZCNjH/VQ7JdiAREJC2o3M2pr6iwovEHO/k6a1TORXUf9Q2vX09FvFpiIcq+hpjR9BciVM= before_script: - unset SBT_OPTS - ./bin/travisci - travis_retry ./sbt ++$TRAVIS_SCALA_VERSION update script: ./sbt ++$TRAVIS_SCALA_VERSION coverage test && ./sbt ++$TRAVIS_SCALA_VERSION coverageAggregate after_success: ./sbt ++$TRAVIS_SCALA_VERSION coveralls ```
875942ee-b5d1-48d9-8e1f-59b61a909524
{ "language": "YAML" }
```yaml language: python sudo: true cache: directories: - $HOME/.cache/pip env: - TOX_ENV=py27-pymongo - TOX_ENV=py27-pyexecjs - TOX_ENV=py33-pymongo - TOX_ENV=py33-pyexecjs - TOX_ENV=py34-pymongo - TOX_ENV=py34-pyexecjs - TOX_ENV=pypy-pymongo - TOX_ENV=pypy-pyexecjs - TOX_ENV=pep8 script: - tox -e $TOX_ENV before_install: - "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10" - "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list" - "sudo apt-get update" - "sudo apt-get install mongodb-org-server" before_script: - "until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done" install: pip install tox ``` Add pypi deployment on tags
```yaml language: python sudo: true cache: directories: - $HOME/.cache/pip env: - TOX_ENV=py27-pymongo - TOX_ENV=py27-pyexecjs - TOX_ENV=py33-pymongo - TOX_ENV=py33-pyexecjs - TOX_ENV=py34-pymongo - TOX_ENV=py34-pyexecjs - TOX_ENV=pypy-pymongo - TOX_ENV=pypy-pyexecjs - TOX_ENV=pep8 script: - tox -e $TOX_ENV before_install: - "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10" - "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list" - "sudo apt-get update" - "sudo apt-get install mongodb-org-server" before_script: - "until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done" install: pip install tox deploy: provider: pypi user: vmalloc distributions: bdist_wheel password: secure: sNOkUNFfWKGsRy4BI+1jyqycZGSMiXTLtpCrX1mTuvjddbndULrHL3ecIPsCno49/nPR4Gww+e9U3HXc8LKJ9qR4mJ8bVCNiHO5GlGVnpV+wdGh9LVnsU1LWwuD8uWlLyTSOKP+ZmerCw7tGACYiv0e9zp8SqZXCH6VS+sAGFxU= on: tags: true all_branches: true repo: vmalloc/mongomock ```
76ce6ccc-e094-465e-9103-36808b93a7ee
{ "language": "YAML" }
```yaml language: ruby rvm: - 1.8.7 - 1.9.3 - 2.0.0 script: 'ci/spec.rb' before_install: - gem install bundler rspec ``` Add 2.1.0 test on Travis
```yaml language: ruby rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.0 script: 'ci/spec.rb' before_install: - gem install bundler rspec ```
631b5440-67d3-4050-98aa-767fde7481d7
{ "language": "YAML" }
```yaml language: csharp os: - linux - osx mono: - latest script: - ./build.sh --target "Travis" --platform "Mono" --configuration "Release" notifications: email: false webhooks: urls: - https://webhooks.gitter.im/e/98f653320ef2b7506c05 on_success: change on_failure: always on_start: never ``` Use mono 4.4.2 until latest 4.6 is fixed
```yaml language: csharp os: - linux - osx mono: - 4.4.2 script: - ./build.sh --target "Travis" --platform "Mono" --configuration "Release" notifications: email: false webhooks: urls: - https://webhooks.gitter.im/e/98f653320ef2b7506c05 on_success: change on_failure: always on_start: never ```
49f0183a-cf36-4ba8-a8eb-797076c9b1d9
{ "language": "YAML" }
```yaml sudo: false cache: bundler language: ruby rvm: - 2.2.8 - 2.3.5 - 2.4.2 before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - "sleep 5" script: - bundle exec rspec - bundle exec rubocop ``` Update the Ruby build matrix for Travis CI.
```yaml sudo: false cache: bundler language: ruby rvm: - 2.2.9 - 2.3.6 - 2.4.3 - 2.5.0 before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - "sleep 5" script: - bundle exec rspec - bundle exec rubocop ```
a9825e0e-ea93-4236-9630-ff08d4b31210
{ "language": "YAML" }
```yaml language: ruby rvm: - 2.3.0 - 2.2.4 - 2.1.8 addons: apt: packages: - libkrb5-3 - libkrb5-26-heimdal cache: - bundler - apt script: bundle exec bash run_tests.sh``` Add OS X to Travis
```yaml language: ruby os: - linux - osx rvm: - 2.3.0 - 2.2.4 - 2.1.8 matrix: exclude: - os: osx rvm: 2.3.0 addons: apt: packages: - libkrb5-3 - libkrb5-26-heimdal cache: - bundler - apt script: bundle exec bash run_tests.sh```
28d45d71-9eca-43db-9508-e1950eaf9ba3
{ "language": "YAML" }
```yaml language: php php: - 5.4 - 5.5 - 5.6 - hhvm sudo: false before_script: - travis_retry composer self-update - travis_retry composer install --prefer-source --no-interaction --dev script: phpunit notifications: email: on_success: never on_failure: always``` Update Travis CI config to remove deprecated options
```yaml language: php php: - 5.4 - 5.5 - 5.6 - hhvm sudo: false before_script: - travis_retry composer self-update - travis_retry composer install --prefer-source --no-interaction script: phpunit notifications: email: on_success: never on_failure: always```
33742c52-20b6-4f89-a292-e55a59510930
{ "language": "YAML" }
```yaml sudo: false language: ruby rvm: - 2.3.1 env: matrix: - SOLIDUS_BRANCH=v2.3 DB=postgres - SOLIDUS_BRANCH=v2.4 DB=postgres - SOLIDUS_BRANCH=v2.5 DB=postgres - SOLIDUS_BRANCH=v2.6 DB=postgres - SOLIDUS_BRANCH=v2.7 DB=postgres - SOLIDUS_BRANCH=master DB=postgres - SOLIDUS_BRANCH=v2.3 DB=mysql - SOLIDUS_BRANCH=v2.4 DB=mysql - SOLIDUS_BRANCH=v2.5 DB=mysql - SOLIDUS_BRANCH=v2.6 DB=mysql - SOLIDUS_BRANCH=v2.7 DB=mysql - SOLIDUS_BRANCH=master DB=mysql ``` Add Solidus v2.8 to Travis config
```yaml sudo: false language: ruby rvm: - 2.3.1 env: matrix: - SOLIDUS_BRANCH=v2.3 DB=postgres - SOLIDUS_BRANCH=v2.4 DB=postgres - SOLIDUS_BRANCH=v2.5 DB=postgres - SOLIDUS_BRANCH=v2.6 DB=postgres - SOLIDUS_BRANCH=v2.7 DB=postgres - SOLIDUS_BRANCH=v2.8 DB=postgres - SOLIDUS_BRANCH=master DB=postgres - SOLIDUS_BRANCH=v2.3 DB=mysql - SOLIDUS_BRANCH=v2.4 DB=mysql - SOLIDUS_BRANCH=v2.5 DB=mysql - SOLIDUS_BRANCH=v2.6 DB=mysql - SOLIDUS_BRANCH=v2.7 DB=mysql - SOLIDUS_BRANCH=v2.8 DB=mysql - SOLIDUS_BRANCH=master DB=mysql ```
3d482dfa-4947-4fb7-ad20-d7849273659c
{ "language": "YAML" }
```yaml dist: xenial os: - linux language: go go: - "1.12.x" - tip matrix: allow_failures: - go: tip env: - GO111MODULE=on GOLANGCI_RELEASE="v1.16.0" before_install: - go get github.com/mattn/goveralls - go get github.com/lawrencewoodman/roveralls - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE} script: - make test - make lint - travis_wait 20 roveralls - goveralls -coverprofile=roveralls.coverprofile -service=travis-ci ``` Update golangci-lint version to 1.17.1
```yaml dist: xenial os: - linux language: go go: - "1.12.x" - tip matrix: allow_failures: - go: tip env: - GO111MODULE=on GOLANGCI_RELEASE="v1.17.1" before_install: - go get github.com/mattn/goveralls - go get github.com/lawrencewoodman/roveralls - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE} script: - make test - make lint - travis_wait 20 roveralls - goveralls -coverprofile=roveralls.coverprofile -service=travis-ci ```
a34a6eeb-4b63-4668-a662-cb9242a933ae
{ "language": "YAML" }
```yaml language: rust rust: - nightly services: - postgresql before_install: - npm install -g less - cargo install diesel_cli before_script: - cp .env.travis .env - psql -c 'create database basgit_travis;' -U postgres env: - RUSTFLAGS="--deny warnings" script: - ci/check-basic-style.sh - cargo build --verbose - cargo test --verbose cache: cargo ``` Fix Rust version for Travis-CI
```yaml language: rust rust: - nightly-2017-05-03 services: - postgresql before_install: - npm install -g less - cargo install diesel_cli before_script: - cp .env.travis .env - psql -c 'create database basgit_travis;' -U postgres env: - RUSTFLAGS="--deny warnings" script: - ci/check-basic-style.sh - cargo build --verbose - cargo test --verbose cache: cargo ```
8c980bf6-a4ae-4d03-844e-fe1cb0fdcf4a
{ "language": "YAML" }
```yaml language: ruby rvm: - 2.1.2 - 2.1.1 - 2.1.0 - 1.9.3-p392 - 1.9.3-p429 - 1.9.3-p448 script: "bundle exec rake spec:with_coveralls" notifications: slack: sachin21dev:3pEyff2UFnoCgl4NI0uxbsER ``` Add Travis CI testing target for new ruby version
```yaml language: ruby rvm: - ruby-2.3.0 - 2.1.2 - 2.1.1 - 2.1.0 - 1.9.3-p392 - 1.9.3-p429 - 1.9.3-p448 script: "bundle exec rake spec:with_coveralls" notifications: slack: sachin21dev:3pEyff2UFnoCgl4NI0uxbsER ```
5eaa77eb-eed0-46ac-82be-f840355766b4
{ "language": "YAML" }
```yaml language: node_js node_js: - "6.0.x" - "6.1.x" ``` Fix node versions on Travis CI
```yaml language: node_js node_js: - "6" - "6.1" ```
ecfc9950-f560-4a86-9a87-0468b6d7308b
{ "language": "YAML" }
```yaml language: java jdk: - oraclejdk8 before_install: - rm -rf ~/.linuxbrew - yes | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)" - export PATH="$HOME/.linuxbrew/bin:$PATH" - export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH" - export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH" - brew install jdk - export JAVA_HOME=/home/travis/.linuxbrew/Cellar/jdk/1.8.0-40 install: - mvn install -DskipTests=true -DskipUnitTests=true script: - mvn test -Dgrinder.display.tree.util.ui=false -Dtrace.level=off -Djustification.level=off ``` Remove jdk 8.40 before install logic
```yaml language: java jdk: - oraclejdk8 install: - mvn install -DskipTests=true -DskipUnitTests=true script: - mvn test -Dgrinder.display.tree.util.ui=false -Dtrace.level=off -Djustification.level=off ```
aff5f9fd-9258-44a0-bab6-13409bfc51b1
{ "language": "YAML" }
```yaml language: python python: - "3.3" - "3.4" install: - pip install -r requirements.txt --use-mirrors script: - flake8 . # - pep257 . --explain ``` Update pip install command
```yaml language: python python: - "3.3" - "3.4" install: - pip install -r requirements.txt script: - flake8 . # - pep257 . --explain ```
06c0d24b-361f-43ea-b7e5-d7e70bd3146a
{ "language": "YAML" }
```yaml sudo: required services: - docker language: python python: - "3.4" install: "pip install -r requirements-dev.txt" before_script: - docker-compose run deps - ./puffin.py db create - ./puffin.py db upgrade script: py.test ``` Add sleep after starting deps to fix Travis
```yaml sudo: required services: - docker language: python python: - "3.4" install: "pip install -r requirements-dev.txt" before_script: - docker-compose run deps - sleep 5 - ./puffin.py db create - ./puffin.py db upgrade script: py.test ```
370c55a6-ba49-4732-bb47-3f22d242f644
{ "language": "YAML" }
```yaml language: python python: - 3.5 env: - TOXENV=py26-stix111 - TOXENV=py26-stix120old - TOXENV=py26-stix120 - TOXENV=py27-stix111 - TOXENV=py27-stix120old - TOXENV=py27-stix120 install: - pip install -U tox script: - tox notifications: email: - stix-commits-list@lists.mitre.org ``` Use Python 2.7 to run Tox
```yaml language: python python: - 2.7 env: - TOXENV=py26-stix111 - TOXENV=py26-stix120old - TOXENV=py26-stix120 - TOXENV=py27-stix111 - TOXENV=py27-stix120old - TOXENV=py27-stix120 install: - pip install -U tox script: - tox notifications: email: - stix-commits-list@lists.mitre.org ```
bbe392e9-43fe-4547-8127-4dea9f7bee00
{ "language": "YAML" }
```yaml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm env: - SYMFONY_VERSION=2.5.* matrix: include: - php: 5.5 env: SYMFONY_VERSION=2.3.* - php: 5.5 env: SYMFONY_VERSION=2.4.* - php: 5.5 env: SYMFONY_VERSION=2.6.* before_script: - composer self-update - composer require symfony/symfony:${SYMFONY_VERSION} script: - phpunit notifications: irc: "irc.freenode.org#symfony-cmf" email: "symfony-cmf-devs@googlegroups.com" ``` Use latest versions in the test matrix
```yaml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm env: - SYMFONY_VERSION=2.6.* matrix: include: - php: 5.6 env: SYMFONY_VERSION=2.3.* - php: 5.6 env: SYMFONY_VERSION=2.5.* - php: 5.6 env: SYMFONY_VERSION=2.7.* - php: 5.6 env: SYMFONY_VERSION=3.0.* allow_failures: - php: 5.6 env: SYMFONY_VERSION=2.7.* - php: 5.6 env: SYMFONY_VERSION=3.0.* before_script: - composer self-update - composer require symfony/symfony:${SYMFONY_VERSION} script: - phpunit notifications: irc: "irc.freenode.org#symfony-cmf" email: "symfony-cmf-devs@googlegroups.com" ```
e4e5dcf5-0ef3-45d6-9be4-3e440513f2ea
{ "language": "YAML" }
```yaml language: php php: - '5.6' - '7.0' install: - composer install script: - php vendor/bin/parallel-lint ./src ./tests - php vendor/bin/php-cs-fixer fix --config=vendor/shopsys/coding-standards/build/phpcs-fixer.php_cs --dry-run --verbose --diff ./src ./tests - php vendor/bin/phpcs --standard=vendor/shopsys/coding-standards/rulesetCS.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp ./src ./tests - php vendor/bin/phpmd "./src,./tests" text vendor/shopsys/coding-standards/rulesetMD.xml --extensions=php - php vendor/bin/phpunit tests ``` Add PHP 7.1 and lowest dependencies Travis builds
```yaml language: php php: - 5.6 - 7.0 - 7.1 matrix: include: - php: 5.6 env: DEPENDENCIES="--prefer-lowest --prefer-stable" - php: 7.1 env: DEPENDENCIES="--prefer-lowest --prefer-stable" install: - travis_retry composer update $DEPENDENCIES script: - php vendor/bin/parallel-lint ./src ./tests - php vendor/bin/php-cs-fixer fix --config=vendor/shopsys/coding-standards/build/phpcs-fixer.php_cs --dry-run --verbose --diff ./src ./tests - php vendor/bin/phpcs --standard=vendor/shopsys/coding-standards/rulesetCS.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp ./src ./tests - php vendor/bin/phpmd "./src,./tests" text vendor/shopsys/coding-standards/rulesetMD.xml --extensions=php - php vendor/bin/phpunit tests ```
760f26f3-e44a-4aa1-a580-404de046be55
{ "language": "YAML" }
```yaml language: python python: - "3.4" - "3.5" - "3.6-dev" - "nightly" sudo: required install: - sudo apt-get install lilv-utils - pip3 install coveralls - pip3 install cffi - pip3 install JACK-Client script: - cd .. - mkdir data - cd data - mkdir test - cd ../PluginsManager - coverage3 run --source=pluginsmanager setup.py test after_success: - bash <(curl -s https://codecov.io/bash) ``` Add calf plugins in build
```yaml language: python python: - "3.4" - "3.5" - "3.6-dev" - "nightly" sudo: required install: - sudo apt-get install -y lilv-utils --no-install-recommends - sudo apt-get install -y calf-plugins --no-install-recommends - pip3 install coveralls - pip3 install cffi - pip3 install JACK-Client script: - cd .. - mkdir data - cd data - mkdir test - cd ../PluginsManager - coverage3 run --source=pluginsmanager setup.py test after_success: - bash <(curl -s https://codecov.io/bash) ```
25af5999-bca1-4a2b-87ca-7f6ab4acb354
{ "language": "YAML" }
```yaml language: node_js notifications: email: false node_js: - 0.10 ``` Build on node 0.11 as well
```yaml language: node_js notifications: email: false node_js: - 0.10 - 0.11 ```
79476070-c587-4a40-96ac-89b4c527b6e8
{ "language": "YAML" }
```yaml # Use Docker-based container (instead of OpenVZ) sudo: false language: java jdk: - openjdk6 ``` Use Precise on Travis CI to run JDK 6
```yaml # Use Docker-based container (instead of OpenVZ) sudo: false # https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming # Travis now defaults to Trusty, which is missing openjdk6. dist: precise cache: directories: - $HOME/.ivy2/cache - $HOME/.sbt/boot # WORKAROUND https://github.com/travis-ci/travis-ci/issues/5227 addons: hosts: workaround-travis-ci-issue-5227 hostname: workaround-travis-ci-issue-5227 language: java jdk: - openjdk6 before_cache: - find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete - find $HOME/.sbt -name "*.lock" -print -delete ```
12fd3aa1-477e-4bae-919f-272c44ba516f
{ "language": "YAML" }
```yaml sudo: required dist: trusty language: c env: - PGVERSION=9.1 - PGVERSION=9.2 - PGVERSION=9.3 - PGVERSION=9.4 - PGVERSION=9.5 before_script: - export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH # Add our chosen PG version to the path - sudo /etc/init.d/postgresql stop # Stop whichever version of PG that travis started - sudo /etc/init.d/postgresql start $PGVERSION # Start the version of PG that we want to test - sudo apt-get update -qq # Retrieves new list of packages - sudo apt-get install postgresql-server-dev-$PGVERSION # Required for PGXS - sudo apt-get install postgresql-common # Required for extension support files - createdb hll_regress # Create the test database script: - make && sudo make install - psql -c "create extension hll" hll_regress - make -C regress ``` Remove PostgreSQL 9.1 from test matrix
```yaml sudo: required dist: trusty language: c env: - PGVERSION=9.2 - PGVERSION=9.3 - PGVERSION=9.4 - PGVERSION=9.5 before_script: - export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH # Add our chosen PG version to the path - sudo /etc/init.d/postgresql stop # Stop whichever version of PG that travis started - sudo /etc/init.d/postgresql start $PGVERSION # Start the version of PG that we want to test - sudo apt-get update -qq # Retrieves new list of packages - sudo apt-get install postgresql-server-dev-$PGVERSION # Required for PGXS - sudo apt-get install postgresql-common # Required for extension support files - createdb hll_regress # Create the test database script: - make && sudo make install - psql -c "create extension hll" hll_regress - make -C regress ```
ff9e298a-0f71-4edd-ae23-6f3002b12c63
{ "language": "YAML" }
```yaml language: ruby rvm: - "1.9.3" - "2.0.0" notifications: email: recipients: - "ul-dlt-applications@lists.psu.edu" - "michael@psu.edu" on_success: "change" on_failure: "always" irc: channels: - "irc.freenode.org#scholarsphere" - "irc.freenode.org#projecthydra" template: - "%{repository}//%{branch}@%{commit} by %{author}: %{message} - %{build_url}" services: - redis-server``` Speed up Travis builds by not building libxml2 shipped with Nokogiri
```yaml language: ruby rvm: - "1.9.3" - "2.0.0" env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true notifications: email: recipients: - "ul-dlt-applications@lists.psu.edu" - "michael@psu.edu" on_success: "change" on_failure: "always" irc: channels: - "irc.freenode.org#scholarsphere" - "irc.freenode.org#projecthydra" template: - "%{repository}//%{branch}@%{commit} by %{author}: %{message} - %{build_url}" services: - redis-server ```
af860e64-cfea-4944-aa14-2cb09d79a95b
{ "language": "YAML" }
```yaml language: node_js node_js: - "4" - "0.12" - "0.10" ``` Remove old node versions from run list
```yaml language: node_js node_js: - "4" - "5" - "6" ```
56898e10-bda3-4ccd-abf4-fb82405c173d
{ "language": "YAML" }
```yaml language: python python: - "2.7" - "3.2" - "3.3" install: - pip install coverage==3.7.1 tox==1.9.2 script: - tox - coverage run --rcfile=.coveragerc setup.py test -s tests.unit after_success: coveralls notifications: email: on_failure: change ``` Upgrade to Docker-based Travis builds
```yaml language: python python: - "2.7" - "3.2" - "3.3" install: - pip install coverage==3.7.1 tox==1.9.2 script: - tox - coverage run --rcfile=.coveragerc setup.py test -s tests.unit after_success: coveralls notifications: email: on_failure: change sudo: false ```
b6a26bf5-7df3-422d-be6c-42902839bce5
{ "language": "YAML" }
```yaml dist: xenial sudo: false cache: directories: - $HOME/.cache/pip language: python matrix: include: - python: "2.7" env: TOXENV=py2 - python: "3.5" env: TOXENV=py3 - python: "3.6" env: TOXENV=py3 - python: "3.7" env: TOXENV=py3 # Meta - python: "3.7" env: TOXENV=flake8 - python: "3.7" env: TOXENV=manifest - python: "3.7" env: TOXENV=docs - python: "3.7" env: TOXENV=readme install: - pip install tox script: - tox before_install: - pip install codecov after_success: - tox -e coverage-report - codecov ``` Add Python 3.8 to test matrix.
```yaml dist: xenial sudo: false cache: directories: - $HOME/.cache/pip language: python matrix: include: - python: "2.7" env: TOXENV=py2 - python: "3.5" env: TOXENV=py3 - python: "3.6" env: TOXENV=py3 - python: "3.7" env: TOXENV=py3 - python: "3.8" env: TOXENV=py3 # Meta - python: "3.8" env: TOXENV=flake8 - python: "3.8" env: TOXENV=manifest - python: "3.8" env: TOXENV=docs - python: "3.8" env: TOXENV=readme install: - pip install tox script: - tox before_install: - pip install codecov after_success: - tox -e coverage-report - codecov ```
8fafb9ca-9436-4276-b392-74e45de3ed20
{ "language": "YAML" }
```yaml language: ruby cache: bundler sudo: false rvm: - 2.4 - 2.5 - 2.6 - ruby-head - jruby-9.2.7.0 gemfile: - gemfiles/rspec3.4.gemfile - gemfiles/rspec-head.gemfile before_install: - travis_retry gem update --system || travis_retry gem update --system 2.7.8 - travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3 matrix: allow_failures: - rvm: ruby-head ``` Remove unused sudo: false directive
```yaml language: ruby cache: bundler rvm: - 2.4 - 2.5 - 2.6 - ruby-head - jruby-9.2.7.0 gemfile: - gemfiles/rspec3.4.gemfile - gemfiles/rspec-head.gemfile before_install: - travis_retry gem update --system || travis_retry gem update --system 2.7.8 - travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3 matrix: allow_failures: - rvm: ruby-head ```
2edeb1d9-7ef9-41fb-8efd-de22da2551e5
{ "language": "YAML" }
```yaml language: ruby notifications: email: on_success: change on_failure: always before_install: - gem update --system $RUBYGEMS_VERSION - gem --version - gem install bundler - bundle --version - mkdir -p tmp/bundle bundler_args: "--binstubs" rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 - jruby-head - rbx script: bin/rake build spec install matrix: allow_failures: - rvm: 2.1.0 - rvm: rbx - rvm: jruby-head ``` Mark the two ruby versions that don't work at the moment and merge to master
```yaml language: ruby notifications: email: on_success: change on_failure: always before_install: - gem update --system $RUBYGEMS_VERSION - gem --version - gem install bundler - bundle --version - mkdir -p tmp/bundle bundler_args: "--binstubs" rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 - jruby-head - rbx script: bin/rake build spec install matrix: allow_failures: - rvm: 1.8.7 - rvm: jruby-head ```
f4d8af28-c884-4657-b42f-3d6b837c0ced
{ "language": "YAML" }
```yaml # http://docs.travis-ci.com/user/workers/container-based-infrastructure/ sudo: false # http://docs.travis-ci.com/user/languages/java/ language: java jdk: - openjdk8 - oraclejdk8 - oraclejdk9 - oraclejdk11 #Cache downloaded Maven artifacts between builds cache: directories: - "${HOME}/.m2" notifications: email: false slack: wlc:Kinf3gdySndcFTBtjcci3rJN ``` Disable Project Jigsaw enabled JDK CI builds
```yaml # http://docs.travis-ci.com/user/workers/container-based-infrastructure/ sudo: false # http://docs.travis-ci.com/user/languages/java/ language: java jdk: - openjdk8 - oraclejdk8 - oraclejdk9 # - oraclejdk10 # - oraclejdk11 #Cache downloaded Maven artifacts between builds cache: directories: - "${HOME}/.m2" notifications: email: false slack: wlc:Kinf3gdySndcFTBtjcci3rJN ```
9394e640-c611-43b9-b706-c5610486a40e
{ "language": "YAML" }
```yaml language: ruby rvm: - 2.1.2 script: - bundle exec rspec one_sheet/resume.rb --format progress - bundle exec rspec spec/ --no-drb --format progress env: global: - secure: |- IIBXub6BG+Sb8n6N+gMli+iETv9p0atS5la2evNOU2YbsKZBTuNnKHDsUF/1wgOXbJ6HjiG 2Nfn8xJAIXZ0cKtulnxbTnEqINl4Jfy0RFotk9xinJeC48Pv+QMOiRh+FmSOexQUUc6NPCf 2PtXEG+4wMV7zKqM2FgSq86GIGU0w= ``` Update Ruby version for use with Travis
```yaml language: ruby rvm: - 2.1.5 script: - bundle exec rspec one_sheet/resume.rb --format progress - bundle exec rspec spec/ --no-drb --format progress env: global: - secure: |- IIBXub6BG+Sb8n6N+gMli+iETv9p0atS5la2evNOU2YbsKZBTuNnKHDsUF/1wgOXbJ6HjiG 2Nfn8xJAIXZ0cKtulnxbTnEqINl4Jfy0RFotk9xinJeC48Pv+QMOiRh+FmSOexQUUc6NPCf 2PtXEG+4wMV7zKqM2FgSq86GIGU0w= ```
99558ec5-2f22-4e6d-8162-e32a644dfedd
{ "language": "YAML" }
```yaml language: node_js node_js: - "node" addons: code_climate: repo_token: 4a2c4f4f7c68cab958c00156152acb7f4bd6d88f6d1ca61ed7055e6ede3ac2c8 jobs: include: - script: npm run lint; - script: npm test -- --coverage; # - stage: release # script: npm pack # deploy: # provider: releases # api_key: $GITHUB_TOKEN # file_glob: true # file: "*.tgz" # skip_cleanup: true # on: # tags: true - stage: deploy script: npm run build; deploy: provider: pages local_dir: build/ skip_cleanup: true github_token: $GITHUB_TOKEN on: branch: master after_success: - npm install -g codeclimate-test-reporter - codeclimate-test-reporter < coverage/lcov.info ``` Move code climate token into a variable
```yaml language: node_js node_js: - "node" addons: code_climate: repo_token: $CODECLIMATE_TOKEN jobs: include: - script: npm run lint; - script: npm test -- --coverage; # - stage: release # script: npm pack # deploy: # provider: releases # api_key: $GITHUB_TOKEN # file_glob: true # file: "*.tgz" # skip_cleanup: true # on: # tags: true - stage: deploy script: npm run build; deploy: provider: pages local_dir: build/ skip_cleanup: true github_token: $GITHUB_TOKEN on: branch: master after_success: - npm install -g codeclimate-test-reporter - codeclimate-test-reporter < coverage/lcov.info ```
1aa3519d-50ef-432b-83ef-e26b7945819b
{ "language": "YAML" }
```yaml language: ruby services: - elasticsearch env: -ROOMS_DB_USER=root ROOMS_DB_DATABASE=nyu_rooms_test ROOMS_DB_HOST=localhost ROOMS_SECRET_TOKEN=dd6f1b6faf2511a744f3f08644e76edcb6be01d7019a6e62947e3a76a2c5f1ea7f3206af6bd0409ed222a56b2a53788da8de1d3528547889cc59c7dbc27f4503 ROOMS_COOKIE_DOMAIN=.local ROOMS_BONSAI_URL=http://localhost:9200 LOGIN_URL=https://dev.login.library.nyu.edu SSO_LOGOUT_PATH=/logout before_script: - sleep 30 - mysql -e 'create database nyu_rooms_test;' - bundle exec rake db:schema:load - RAILS_ENV=test bundle exec rake environment tire:import CLASS=Room FORCE=true - RAILS_ENV=test bundle exec rake environment tire:import CLASS=Reservation FORCE=true - sleep 30 rvm: - 2.0.0 - 2.1.5 - 2.2.5 notifications: email: - lib-webservices@nyu.edu sudo: false ``` Add ruby version to Travis
```yaml language: ruby services: - elasticsearch env: -ROOMS_DB_USER=root ROOMS_DB_DATABASE=nyu_rooms_test ROOMS_DB_HOST=localhost ROOMS_SECRET_TOKEN=dd6f1b6faf2511a744f3f08644e76edcb6be01d7019a6e62947e3a76a2c5f1ea7f3206af6bd0409ed222a56b2a53788da8de1d3528547889cc59c7dbc27f4503 ROOMS_COOKIE_DOMAIN=.local ROOMS_BONSAI_URL=http://localhost:9200 LOGIN_URL=https://dev.login.library.nyu.edu SSO_LOGOUT_PATH=/logout before_script: - sleep 30 - mysql -e 'create database nyu_rooms_test;' - bundle exec rake db:schema:load - RAILS_ENV=test bundle exec rake environment tire:import CLASS=Room FORCE=true - RAILS_ENV=test bundle exec rake environment tire:import CLASS=Reservation FORCE=true - sleep 30 rvm: - 2.0.0 - 2.1.5 - 2.2.5 - 2.3.1 notifications: email: - lib-webservices@nyu.edu sudo: false ```
f7dbf297-b37d-4732-b488-5d6131e34ff8
{ "language": "YAML" }
```yaml language: python python: - 2.7 install: - pip install -r requirements.txt - pip install coveralls script: coverage run --source=psiturk setup.py test after_success: coveralls ``` Add dev to Travis' whitelist
```yaml language: python python: - 2.7 # whitelist branches: only: - master - dev install: - pip install -r requirements.txt - pip install coveralls script: coverage run --source=psiturk setup.py test after_success: coveralls ```
46a0b408-3486-4f4d-bdc7-ed252a165e79
{ "language": "YAML" }
```yaml language: python sudo: required python: - '2.7' - '3.4' - '3.5' cache: directories: - $HOME/.cache/pip env: # Current production - ELASTICSEARCH_VERSION=1.4.4 # Future production point release - ELASTICSEARCH_VERSION=1.4.5 # Latest in 1.X line (as of 2016-02-10) - ELASTICSEARCH_VERSION=1.7.5 services: - postgresql before_install: # Use same ES version as in production (also the Travis "elasticsearch" service setting fails to start) - travis_retry curl -OL https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb - sudo dpkg -i --force-confnew elasticsearch-$ELASTICSEARCH_VERSION.deb - sudo service elasticsearch start install: - travis_retry pip install -e . - travis_retry pip install "file://$(pwd)#egg=django-bulbs[dev]" before_script: - psql -c 'create database bulbs;' -U postgres # Wait for ES startup - until curl http://localhost:9200/; do sleep 1; done script: - py.test --cov bulbs --cov-report term-missing after_success: - coveralls ``` Disable Travis ES 1.4.5 config for faster builds
```yaml language: python sudo: required python: - '2.7' - '3.4' - '3.5' cache: directories: - $HOME/.cache/pip env: # Current production - ELASTICSEARCH_VERSION=1.4.4 # Future production point release. Disabled 2016-04-07 to speed up Travis builds #- ELASTICSEARCH_VERSION=1.4.5 # Latest in 1.X line (as of 2016-02-10) - ELASTICSEARCH_VERSION=1.7.5 services: - postgresql before_install: # Use same ES version as in production (also the Travis "elasticsearch" service setting fails to start) - travis_retry curl -OL https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb - sudo dpkg -i --force-confnew elasticsearch-$ELASTICSEARCH_VERSION.deb - sudo service elasticsearch start install: - travis_retry pip install -e . - travis_retry pip install "file://$(pwd)#egg=django-bulbs[dev]" before_script: - psql -c 'create database bulbs;' -U postgres # Wait for ES startup - until curl http://localhost:9200/; do sleep 1; done script: - py.test --cov bulbs --cov-report term-missing after_success: - coveralls ```
f5f952bf-b1e8-41da-99a0-ac99958d795b
{ "language": "YAML" }
```yaml env: HOME=/home/travis language: python python: - 2.7 install: - pip install tox script: tox -rv ``` Install package dependencies in TravisCI
```yaml env: HOME=/home/travis sudo: required dist: trusty before_install: - sudo apt-get -qq update - ./bootstrap install language: python python: - 2.7 install: - pip install tox script: tox -rv ```
cb72f0e2-a0f5-48cd-b78c-829379faabc0
{ "language": "YAML" }
```yaml language: go branches: only: - master - develop go: - 1.2 - 1.2.1 - 1.2.2 - 1.3 - 1.3.1 - 1.3.2 - 1.3.3 - 1.4 - 1.4.1 - 1.4.2 - 1.4.3 - 1.5 - 1.5.1 - 1.5.2 - 1.5.3 - 1.5.4 - 1.6 - 1.6.1 - 1.6.2 install: - check_preconditions && actually_build - make build after_script: - make uninstall ``` Build only golang last version
```yaml language: go branches: only: - master - develop go: - 1.6 - 1.6.1 - 1.6.2 install: - make build after_script: - make uninstall ```
dd3d62ac-621d-49e1-9599-1383749c58a2
{ "language": "YAML" }
```yaml language: node_js install: - npm install gitbook-cli -g script: - gitbook build ./docs ./docs-build deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard local_dir: docs-build fqdn: doc.iot.noahgao.net on: branch: master ``` Check Travis CI support for Documentation Deployment
```yaml language: node_js git: submodules: false install: - npm install gitbook-cli -g script: - gitbook build ./docs ./docs-build deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard local_dir: docs-build fqdn: doc.iot.noahgao.net on: branch: master ```
da68b30d-fded-43f7-ab76-13ac841da0b0
{ "language": "YAML" }
```yaml sudo: false language: python python: - "3.6" services: - postgresql before_script: - psql -c 'create database test;' -U postgres env: global: - PGUSER=postgres - PG_PASSWORD= install: - pip install poetry - poetry develop script: - poetry run py.test --cov ``` Fix database password env var name
```yaml sudo: false language: python python: - "3.6" services: - postgresql before_script: - psql -c 'create database test;' -U postgres env: global: - PGUSER=postgres - PGPASSWORD= install: - pip install poetry - poetry develop script: - poetry run py.test --cov ```
e95c07c8-e56e-4086-b813-a3a4796458a1
{ "language": "YAML" }
```yaml # Copyright (c) 2019, WSO2 Inc. (http://wso2.com) All Rights Reserved. # # 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: java sudo: required git: quiet: true matrix: include: - env: BUILD_TYPE=MAVEN fast_finish: true services: - docker before_install: - if [ $TRAVIS_OS_NAME == "linux" ]; then export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi script: - if [ "$BUILD_TYPE" = "MAVEN" ]; then cd internal; mvn install -B -V -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN; fi after_success: - bash <(curl -s https://codecov.io/bash) cache: directories: - $HOME/.m2 ``` Switch Travis to OpenJDK 1.8
```yaml # Copyright (c) 2019, WSO2 Inc. (http://wso2.com) All Rights Reserved. # # 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: java sudo: required git: quiet: true matrix: include: - env: BUILD_TYPE=MAVEN fast_finish: true services: - docker before_install: - if [ $TRAVIS_OS_NAME == "linux" ]; then export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi script: - jdk_switcher use openjdk8 - if [ "$BUILD_TYPE" = "MAVEN" ]; then cd internal; mvn install -B -V -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN; fi after_success: - bash <(curl -s https://codecov.io/bash) cache: directories: - $HOME/.m2 ```
a3b6a85c-097a-463d-81c3-103b00a3512c
{ "language": "YAML" }
```yaml --- language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.8 - 2.2.4 - 2.3.0 - 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.8 env: DB=database.yml.postgresql - rvm: 2.2.4 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.8 env: DB=database.yml.mysql - rvm: 2.2.4 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.4" ``` Remove ruby 1.9.3 from Travis
```yaml --- language: ruby rvm: - 2.0.0 - 2.1.8 - 2.2.4 - 2.3.0 - rbx-2 matrix: allow_failures: - rvm: rbx-2 exclude: - rvm: 2.0.0 env: DB=database.yml.postgresql - rvm: 2.1.8 env: DB=database.yml.postgresql - rvm: 2.2.4 env: DB=database.yml.postgresql - rvm: rbx-2 env: DB=database.yml.postgresql - rvm: 2.0.0 env: DB=database.yml.mysql - rvm: 2.1.8 env: DB=database.yml.mysql - rvm: 2.2.4 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.4" ```
82e87225-a08b-4dc1-bf9f-4e82ee606239
{ "language": "YAML" }
```yaml language: ruby cache: bundler rvm: - 2.2.4 before_install: - sh .travis/install_riakcs.sh - gem install bundler before_script: - cp config.yml.example config.yml script: bundle exec rake test branches: only: - master - stable notifications: email: false webhooks: urls: - http://hook-juggler.herokuapp.com/hooks/travis on_success: always on_failure: always services: - riak ``` Revert "Add riak service to Travis CI"
```yaml language: ruby cache: bundler rvm: - 2.2.4 before_install: - sh .travis/install_riakcs.sh - gem install bundler before_script: - cp config.yml.example config.yml script: bundle exec rake test branches: only: - master - stable notifications: email: false webhooks: urls: - http://hook-juggler.herokuapp.com/hooks/travis on_success: always on_failure: always ```
602d1f0a-d907-425e-a4d9-2650f9f387ae
{ "language": "YAML" }
```yaml # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You 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: java matrix: include: - jdk: openjdk8 - jdk: openjdk11 - jdk: openjdk15 - jdk: openjdk-ea allow_failures: - jdk: openjdk-ea script: - mvn after_success: - mvn -B -V clean test jacoco:report coveralls:report -Ptravis-jacoco --no-transfer-progress ``` Replace Java 15 with Java 16 in Travis CI.
```yaml # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You 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: java matrix: include: - jdk: openjdk8 - jdk: openjdk11 - jdk: openjdk16 - jdk: openjdk-ea allow_failures: - jdk: openjdk-ea script: - mvn after_success: - mvn -B -V clean test jacoco:report coveralls:report -Ptravis-jacoco --no-transfer-progress ```
4e0b3812-beae-4b18-b42a-ecf6aa1b5f79
{ "language": "YAML" }
```yaml language: ruby cache: bundler sudo: false rvm: - 2.3 notifications: email: false hipchat: rooms: secure: KbZjr/brG9QE4jeqOXHXlDDmnLRy/yE8flTtv9xsKn5jUxJXMXp8NO37Yl/K2L957J2xbI/U1p6kABM5oi0W5MGtlu5yLrzNoA97YecUs7z/ynRVHf3FcFM5VhcmVTQI89cZ2Z+/oj0DBuodc+dEo4Qs61LTwEKZCOijAxzQDQo= template: - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" notify: true deploy: provider: rubygems api_key: secure: ct0p0GoB7SUlhddoxaKaifPPtP/B0cIwaiGRnN9SHMzJH5rRNr8WRDA0/RyrpiGatrTlLolUWZpuz437oXpwUbOFoLJGvHSg6S/DA8VPqXmo0G41XwGw7TbN1APcM3zybJSymvnQ99T8wAb3AQYYnwt15VrI8lVj5/3Mdk4aDLA= gem: cb-api on: branch: master repo: careerbuilder/ruby-cb-api ``` Test against Ruby 2.4 and 2.5
```yaml language: ruby cache: bundler sudo: false rvm: - 2.3 - 2.4 - 2.5 notifications: email: false hipchat: rooms: secure: KbZjr/brG9QE4jeqOXHXlDDmnLRy/yE8flTtv9xsKn5jUxJXMXp8NO37Yl/K2L957J2xbI/U1p6kABM5oi0W5MGtlu5yLrzNoA97YecUs7z/ynRVHf3FcFM5VhcmVTQI89cZ2Z+/oj0DBuodc+dEo4Qs61LTwEKZCOijAxzQDQo= template: - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" notify: true deploy: provider: rubygems api_key: secure: ct0p0GoB7SUlhddoxaKaifPPtP/B0cIwaiGRnN9SHMzJH5rRNr8WRDA0/RyrpiGatrTlLolUWZpuz437oXpwUbOFoLJGvHSg6S/DA8VPqXmo0G41XwGw7TbN1APcM3zybJSymvnQ99T8wAb3AQYYnwt15VrI8lVj5/3Mdk4aDLA= gem: cb-api on: branch: master repo: careerbuilder/ruby-cb-api ```
62bc6ab0-e312-4703-96d0-22cde6e4ad7b
{ "language": "YAML" }
```yaml sudo: false language: node_js node_js: - '12' - '10' branches: only: - master - travis-ci install: - npm install --no-package-lock --no-save - npm install -g nyc prove script: - nyc npm test ``` Build with Node.js 14 on Travis CI.
```yaml sudo: false language: node_js node_js: - '14' - '12' - '10' branches: only: - master - travis-ci install: - npm install --no-package-lock --no-save - npm install -g nyc prove script: - nyc npm test ```
ddd29c00-23c0-4b9d-9cb2-f21f6bf68154
{ "language": "YAML" }
```yaml sudo: false env: - CXX=g++-4.8 language: node_js node_js: - 0.8 - 0.10 - 0 #Latest 0.x.x build. - 3 #Latest io.js build. - 4.2.4 #LTS - stable matrix: allow_failures: - node_js: 0.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - libx11-dev - zlib1g-dev - libpng12-dev - libxtst-dev - g++-4.8 - gcc-4.8 before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start``` Add notifications to TravisCI builds.
```yaml sudo: false env: - CXX=g++-4.8 language: node_js node_js: - 0.8 - 0.10 - 0 #Latest 0.x.x build. - 3 #Latest io.js build. - 4.2.4 #LTS - stable matrix: allow_failures: - node_js: 0.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - libx11-dev - zlib1g-dev - libpng12-dev - libxtst-dev - g++-4.8 - gcc-4.8 before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start notifications: webhooks: urls: - https://webhooks.gitter.im/e/e737dd5170be50cdba95 on_success: change on_failure: always on_start: never ```
989edee3-4b27-4d97-9d7b-18452e082041
{ "language": "YAML" }
```yaml language: php php: - '5.6' - '7.0' script: phpunit --bootstrap ./vendor/autoload.php ./src/Trident/tests/``` Make Travis update composer and install dependencies.
```yaml language: php php: - '5.6' - '7.0' before_install: - composer self-update - composer install script: phpunit --bootstrap ./vendor/autoload.php ./src/Trident/tests/```
5f2667b7-4884-4ec8-a75b-a54cf810815f
{ "language": "YAML" }
```yaml language: cpp sudo: required os: - osx - linux addons: apt: packages: - build-essential - python-dev- - libxml2-dev - libxslt1-dev install: - sudo pip install --upgrade pip wheel script: - python -V - gcc -v - ls -al - mkdir wheels - pip wheel pyahocorasick intbitset bitarray --wheel-dir=wheels - pip wheel lxml==3.6.0 --wheel-dir=wheels - ls -al - ls -al wheels deploy: provider: bintray file: bintray_travis.json user: pombreda key: secure: l8uNfriu2L+rHRRBsR8R6pGHFt+r1Rymfk+1pOKdJTR8NjgBAYEAxPU6IPr+drH1WheXGVFoWttWTcplvo8Xmc+skUMXKUnjNCgrRE0rYKqjdHmEBMKUAjAfZ3hq48ayjRm3FvAjPwcWbTD0siBjK1qm4SD7TBEEC28XuJhT1oE= ``` Build one wheel at a time
```yaml language: cpp sudo: required os: - osx - linux addons: apt: packages: - build-essential - python-dev- - libxml2-dev - libxslt1-dev install: - sudo pip install --upgrade pip wheel script: - python -V - gcc -v - ls -al - mkdir wheels - pip wheel pyahocorasick --wheel-dir=wheels - pip wheel intbitset --wheel-dir=wheels - pip wheel bitarray --wheel-dir=wheels - pip wheel lxml==3.6.0 --wheel-dir=wheels - ls -al - ls -al wheels deploy: provider: bintray file: bintray_travis.json user: pombreda key: secure: l8uNfriu2L+rHRRBsR8R6pGHFt+r1Rymfk+1pOKdJTR8NjgBAYEAxPU6IPr+drH1WheXGVFoWttWTcplvo8Xmc+skUMXKUnjNCgrRE0rYKqjdHmEBMKUAjAfZ3hq48ayjRm3FvAjPwcWbTD0siBjK1qm4SD7TBEEC28XuJhT1oE= ```
1a4a6b6c-ed7b-4052-92f9-24aa66d8cd26
{ "language": "YAML" }
```yaml apiVersion: v1 kind: ResourceQuota metadata: name: mem-cpu-dev spec: hard: requests.cpu: "1" requests.memory: 4Gi limits.cpu: "4" limits.memory: 16Gi``` Update quota to avoid error
```yaml apiVersion: v1 kind: ResourceQuota metadata: name: mem-cpu-dev spec: hard: requests.cpu: "2" requests.memory: 4Gi limits.cpu: "4" limits.memory: 16Gi```
c541f184-a12a-484e-92e7-0ce8d39e6d47
{ "language": "YAML" }
```yaml language: java script: ./mvnw verify after_success: - ./mvnw clean verify jacoco:report coveralls:report jdk: - oraclejdk8 branches: only: - master ``` Replace Oracle JDK with OpenJDK in Travis builds
```yaml language: java script: ./mvnw verify after_success: - ./mvnw clean verify jacoco:report coveralls:report jdk: - openjdk8 branches: only: - master ```
1a67ab4f-c60d-4443-9451-a6fb8393e2d6
{ "language": "YAML" }
```yaml language: node_js node_js: - 0.8 - 0.9 - 0.10``` Test on Node 0.6 and 0.7 as newlines are no longer part of the output
```yaml language: node_js node_js: - 0.6 - 0.7 - 0.8 - 0.9 - 0.10```
50a3c9e6-8ab9-439f-b7bd-2cd49bc3f543
{ "language": "YAML" }
```yaml language: cpp sudo: required dist: trusty before_script: - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update - sudo apt-get install g++-5 cmake libboost-all-dev llvm-3.6-dev llvm-3.6-doc llvm-3.6-runtime llvm-3.6 llvm-3.6-tools -y - sudo pip install --user git+git://github.com/eddyxu/cpp-coveralls.git script: - cmake . -DCMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage" -DCMAKE_CXX_COMPILER=g++-5 - make - make test - coveralls env: COMPILER=g++-4.9 ``` Revert to llvm 3.5 because hopfully those ubuntu packages aren't broken
```yaml language: cpp sudo: required dist: trusty before_script: - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update - sudo apt-get install g++-5 cmake libboost-all-dev llvm-3.5-dev llvm-3.5-doc llvm-3.5-runtime llvm-3.5 llvm-3.5-tools -y - sudo pip install --user git+git://github.com/eddyxu/cpp-coveralls.git script: - cmake . -DCMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage" -DCMAKE_CXX_COMPILER=g++-5 - make - make test - coveralls env: COMPILER=g++-4.9 ```
dfd61db2-1fc8-43d4-9597-349e37e4ce32
{ "language": "YAML" }
```yaml language: ruby rvm: - 2.2.2 - 2.3 - 2.4 - 2.5 - 2.6 before_install: gem install bundler -v 1.11.2 addons: code_climate: repo_token: 0b8e41ecbc26637a7db4e6e9d4581c445441674f689016ab45fb5c51242b59bf after_success: - bundle exec codeclimate-test-reporter``` Support ruby 2.4 and up
```yaml language: ruby rvm: - 2.4 - 2.5 - 2.6 before_install: gem install bundler -v 1.11.2 addons: code_climate: repo_token: 0b8e41ecbc26637a7db4e6e9d4581c445441674f689016ab45fb5c51242b59bf after_success: - bundle exec codeclimate-test-reporter```
9131c9c7-59cd-4b9d-99b5-d80b9ac27a8b
{ "language": "YAML" }
```yaml language: ruby rvm: - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 - jruby-19mode - rbx-2.1.1 - ruby-head matrix: allow_failures: - rvm: 1.9.2 - rvm: ruby-head - rvm: rbx-19mode notifications: irc: "irc.freenode.org#adhearsion" ``` Allow rbx to fail on CI
```yaml language: ruby rvm: - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 - jruby-19mode - rbx-2.1.1 - ruby-head matrix: allow_failures: - rvm: 1.9.2 - rvm: ruby-head - rvm: rbx-2.1.1 notifications: irc: "irc.freenode.org#adhearsion" ```
5e3190d6-cbda-4a1f-9631-e20be2d761d4
{ "language": "YAML" }
```yaml language: php git: depth: 5 php: - 5.5 - 5.6 - 7.0 - 7.1 - 7.2 matrix: include: - php: hhvm-3.18 dist: trusty sudo: required before_script: - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo "hhvm.enable_short_tags = On" >> /etc/hhvm/php.ini; fi - travis_retry composer self-update - travis_retry composer install --no-interaction --prefer-source --dev - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build script: - vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml after_script: - ./cc-test-reporter after-build --exit-code $EXIT_CODE after_success: - bash <(curl -s https://codecov.io/bash) addons: code_climate: repo_token: d16eac66156a1f7a995de17964d4ffdd152821ab52e8470b5dbd5d3406406836 ``` Set the EXIT_CODE for CodeClimate reporter
```yaml language: php git: depth: 5 php: - 5.5 - 5.6 - 7.0 - 7.1 - 7.2 matrix: include: - php: hhvm-3.18 dist: trusty sudo: required before_script: - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo "hhvm.enable_short_tags = On" >> /etc/hhvm/php.ini; fi - travis_retry composer self-update - travis_retry composer install --no-interaction --prefer-source --dev - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build script: - vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml after_script: - ./cc-test-reporter after-build --exit-code $? after_success: - bash <(curl -s https://codecov.io/bash) addons: code_climate: repo_token: d16eac66156a1f7a995de17964d4ffdd152821ab52e8470b5dbd5d3406406836 ```
3cd1e46c-e21a-4f90-8a45-ea3191022678
{ "language": "YAML" }
```yaml language: cpp compiler: - gcc - clang # Change this to your needs script: mkdir build && cd build && cmake .. && make && make packege ``` Correct a typo in the Travis CI setup script
```yaml language: cpp compiler: - gcc - clang # Change this to your needs script: mkdir build && cd build && cmake .. && make && make package ```
78ff1d19-99ee-4db1-a1d2-f883fa515bcf
{ "language": "YAML" }
```yaml language: node_js dist: trusty sudo: required node_js: stable env: - PATH=$HOME/purescript:$PATH install: - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p') - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz - tar -xvf $HOME/purescript.tar.gz -C $HOME/ - chmod a+x $HOME/purescript - npm install -g bower - npm install - bower install --production script: - npm run -s build - bower install - npm run -s test after_success: - >- test $TRAVIS_TAG && echo $GITHUB_TOKEN | pulp login && echo y | pulp publish --no-push ``` Fix the retrieval of the latest compiler version tag
```yaml language: node_js dist: trusty sudo: required node_js: stable env: - PATH=$HOME/purescript:$PATH install: - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest)) - curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz - tar -xvf $HOME/purescript.tar.gz -C $HOME/ - chmod a+x $HOME/purescript - npm install -g bower - npm install - bower install --production script: - npm run -s build - bower install - npm run -s test after_success: - >- test $TRAVIS_TAG && echo $GITHUB_TOKEN | pulp login && echo y | pulp publish --no-push ```
b5d56150-37cc-4607-b669-3762adce23d3
{ "language": "YAML" }
```yaml language: php php: - '7.0' # Setup anaconda before_install: - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda2/bin:$PATH - conda update --yes conda install: - conda install --yes numpy scipy - pip install biom-format h5py --user - composer install - npm install - node_modules/bower/bin/bower install services: - postgresql addons: postgresql: "9.4" before_script: - cp test/php/.travis.config.php test/php/config.php script: - phpunit - npm test ``` Install h5py via apt and upgrade via pip
```yaml language: php php: - '7.0' # Setup anaconda before_install: - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda2/bin:$PATH - conda update --yes conda install: - conda install --yes numpy scipy - pip install biom-format --user - pip install biom-format h5py --upgrade --user - composer install - npm install - node_modules/bower/bin/bower install services: - postgresql addons: apt: packages: - python-h5py postgresql: "9.4" before_script: - cp test/php/.travis.config.php test/php/config.php script: - phpunit - npm test ```
3673de38-11f4-46a1-9df5-3fbeddbed405
{ "language": "YAML" }
```yaml language: c os: - linux - osx compiler: - clang - gcc matrix: allow_failures: - compiler: gcc sudo: false script: - python minipkg.py - source ~/.bash_profile - python build.py < supported-packages.txt - pkg_info after_failure: - cat *-log.txt ``` Test building supported packages if successful.
```yaml language: c os: - linux - osx compiler: - clang - gcc matrix: allow_failures: - compiler: gcc sudo: false script: - python minipkg.py - source ~/.bash_profile after_success: - python build.py < supported-packages.txt - pkg_info after_failure: - cat *-log.txt ```
22605f19-3ec7-4ae2-a6b5-88555dd4d98a
{ "language": "YAML" }
```yaml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 before_install: # - sudo apt-get update -qq - sudo apt-get install -qq libssl-dev install: - | git clone git://github.com/bitcoin/secp256k1.git libsecp256k1 \ && cd libsecp256k1 \ && ./autogen.sh && ./configure && make && sudo make install \ && cd .. - | cd secp256k1 \ && phpize && ./configure && make && sudo make install \ && cd .. - composer update before_script: - php-config || true - phpenv rehash - phpenv version-name script: - | cd libsecp256k1 \ && ./tests \ && cd .. - php -dextension=secp256k1.so vendor/phpunit/phpunit/phpunit --debug tests/ notifications: webhooks: urls: - https://webhooks.gitter.im/e/b3be9256c50203ac55c1 on_success: change # options: [always|never|change] default: always on_failure: always # options: [always|never|change] default: always on_start: false # default: false ``` Use version of libsecp256k1 before introduction of public key / signature types
```yaml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 before_install: # - sudo apt-get update -qq - sudo apt-get install -qq libssl-dev install: - | wget https://github.com/bitcoin/secp256k1/archive/4c63780710351ffcc52341497e3ca0e518fbad79.zip \ && unzip 4c63780710351ffcc52341497e3ca0e518fbad79.zip \ && cd libsecp256k1 \ && ./autogen.sh && ./configure && make && sudo make install \ && cd .. - | cd secp256k1 \ && phpize && ./configure && make && sudo make install \ && cd .. - composer update before_script: - php-config || true - phpenv rehash - phpenv version-name script: - | cd libsecp256k1 \ && ./tests \ && cd .. - php -dextension=secp256k1.so vendor/phpunit/phpunit/phpunit --debug tests/ notifications: webhooks: urls: - https://webhooks.gitter.im/e/b3be9256c50203ac55c1 on_success: change # options: [always|never|change] default: always on_failure: always # options: [always|never|change] default: always on_start: false # default: false ```
21bf597f-e74a-4369-bc94-089da813f6ec
{ "language": "YAML" }
```yaml language: haxe cache: directories: - $HOME/.m2 addons: apt: packages: - protobuf-compiler before_install: - wget http://download.macromedia.com/pub/flex/sdk/flex_sdk_3.6.zip - unzip -d flex_sdk flex_sdk_3.6.zip install: - haxelib install haxelib-run - git clone --branch v2.4.1 --depth 1 https://github.com/google/protobuf.git - | echo ' PROTOBUF_VERSION=2.4.1 PROTOBUF_DIR=protobuf PROTOC=protoc ifeq ($(OS), Windows_NT) BAT=.bat EXE=.exe PATH_SEPARATOR=; else PATH_SEPARATOR=: endif COMPC=flex_sdk/bin/compc$(BAT) MXMLC=flex_sdk/bin/mxmlc$(BAT) ASDOC=flex_sdk/bin/asdoc$(BAT) FDB=flex_sdk/bin/fdb$(BAT) MVN=mvn JAVAC=javac JAR=jar HAXE=haxe ' > config.mk script: - make ``` Revert "Use the protoc executable from Ubuntu"
```yaml language: haxe cache: directories: - $HOME/.m2 addons: apt: packages: - protobuf-compiler before_install: - wget http://download.macromedia.com/pub/flex/sdk/flex_sdk_3.6.zip - unzip -d flex_sdk flex_sdk_3.6.zip install: - haxelib install haxelib-run - git clone --branch v2.4.1 --depth 1 https://github.com/google/protobuf.git - | echo ' PROTOBUF_VERSION=2.4.1 PROTOBUF_DIR=protobuf ifeq ($(OS), Windows_NT) BAT=.bat EXE=.exe PATH_SEPARATOR=; else PATH_SEPARATOR=: endif COMPC=flex_sdk/bin/compc$(BAT) MXMLC=flex_sdk/bin/mxmlc$(BAT) ASDOC=flex_sdk/bin/asdoc$(BAT) FDB=flex_sdk/bin/fdb$(BAT) MVN=mvn JAVAC=javac JAR=jar HAXE=haxe ' > config.mk - make protobuf/src/protoc script: - make ```
73a1adf2-c9ef-4f38-898a-00536d3b89eb
{ "language": "YAML" }
```yaml sudo: required language: - python - node_js python: - "2.7" - "3.3" node_js: - "node" cache: directories: # cache pylint stat files: - $HOME/.pylint.d install: # install dev/test dependencies: - bash scripts/install.sh script: # run tests: - bash scripts/run_tests.sh notifications: # disable all email build notifications: email: false ``` Add sonar scan task to Travis build
```yaml dist: trusty sudo: required addons: sonarcloud: organization: "jonlabelle-github" token: secure: "EfB1NODLgc/Sp8JGzckrrxLPWB3x/mmfujMAMNBpLSbMDTn6tWdG7PKrOS5VNBlv/UtkSJgJ3VJkDA7A0IS8IxAdy1fxRBK/XB1Ws/OAh8m25/3Unm05PBGLOtyZlgup3jUzWm7pLtz+TLGLcvp+Z+RD80BM9Ck6dDZZrDBeImw9vwINebHGbbwrAUK07vqwl0BCrTmAWwILyPXLO4vlXtJyZeiUIVP2xaBXXG0rjpmy8Re4VIs/BClkGVAa5R0hKZAq5lsFavMXROLeUQyJd4axqsXY9/btCBGxvFFZW39OZPtZvAKTsvtbmyWwg8YgkhUx8bbEu6IkEgJKFZfrZEdPqWmQGH97fMVR2N8vl0ln0n0HHGtjGuXxtK3pWgp20Texa7BR+pMJRZkd/hVdXdKbQ/5og4ZwGZUwP//Ct9Mhq9gJ5dzYNsYx9vIsT6O++71jQM6zlETHpRjzBByt4BDOl6eHSDw1yqWqBJL++Wci64jE9HQFvflgVywCzQU4O0b0fLZcn/A2/d+b6dYF8yxpS26ZQ0yUotCBhbRMzHTqENemMAyyyuJgtdkEcH0l2j6ZmFAWWDgfus/H6cYM52mLUcu6lFgKzl6IRIrBUq4E4jEiU7J/DYRpFvY2/5xoWeJ11E6oOPCr+M3khHLArV221KLqFWwI/qTuy1hA1VY=" # jdk required by sonar-scanner: jdk: - oraclejdk8 language: - python - node_js python: - "2.7" - "3.3" node_js: - "node" cache: directories: - $HOME/.pylint.d - $HOME/.sonar/cache install: - bash scripts/install.sh script: - bash scripts/run_tests.sh - sonar-scanner notifications: email: false ```
126953b6-f3be-4db0-996a-339ca9ed0d2b
{ "language": "YAML" }
```yaml language: go go: - 1.3 - tip script: - go test -v ./... ``` Add slack notifications to the ableton channel for builds
```yaml language: go go: - 1.3 - tip script: - go test -v ./... notifications: slack: secure: YyKza3/7/PKJ5b+zIffDS0WNCdW03zBWg1A/ABqIXcR+sqkYJcaKVOg/PpfmliV3DMTg5Hkbegx4DI+O/zjGMP4v0dPjxK7jS4fkHRdlh4nocJWoxWJvLMWnGy1HnxIBhEWBwWlsgyTMb4ujujzbCk+4M25xKP+WHP+cAQtfTxQF9beZOjTzWENaIoW5SweV0RrtKrLkDROol4XWoRZF2vtMfemu/ovEEZ+u9o793SNceYtYjjM2X2MtBWpb0xoktBo0yy12zbjKaPjId34zF6PoED4sxhqSsl7jTEP4H1WAEFBzbGGqR0ewpJ4dhzbL1g2SF8RKtAlpv7NjZ1504e2R+rnis7fLaSyy5ZlMYIyeEpnYYcw6bUtBlApsBuwjl51FGBpygKzznWRERl/poDJ27kluQmVBmoS6OHXRpQs6PV0YXrv9nC8iz3tG5zfPNJQ0PvVQi3j6poET5/fal1inq+/cFWnyDpByCKhcq3V0r9atYDzvn2pz7Ebxt3Xrlzf4c5cz6iQ7KP7CJ4UHs0F37Y31FBuxLx73eye7iHAiYJms/mjAM80ykOqk4aKY7/AHrDOzsHPP/A2VZP8KGOiK6PJ0MUM/KSzHovaS7dLEq/Z73c4SuXdQiST9AYLZF3anbmpu+5Aw4CRq6zE6g3xUS55drgja5YF4nI/ujWI= ```
d28fb82b-9ddb-432f-925f-b5c6ff2cdeb0
{ "language": "YAML" }
```yaml language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - jruby - rbx - ree ``` Test in both 1.8 and 1.9 mode on JRuby and Rubinius
```yaml language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - jruby-18mode - jruby-19mode - rbx-18mode - rbx-19mode ```
2edb7f28-77a8-4319-af6d-d38116df3df2
{ "language": "YAML" }
```yaml sudo: false language: java env: global: - LDFLAGS=-L/tmp/proto3-a2/lib - CXXFLAGS=-I/tmp/proto3-a2/include - LD_LIBRARY_PATH=/tmp/proto3-a2/lib - PATH=/tmp/proto3-a2/bin:$PATH before_install: - buildscripts/make_dependencies.sh # build protoc into /tmp/proto3-a2 - mkdir -p $HOME/.gradle - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties - echo "org.gradle.parallel=true" >> $HOME/.gradle/gradle.properties jdk: - oraclejdk8 os: - linux branches: only: - master notifications: email: false cache: directories: - /tmp/proto3-a2 - $HOME/.m2 ``` Disable Travis parallel building to reduce memory usage
```yaml sudo: false language: java env: global: - LDFLAGS=-L/tmp/proto3-a2/lib - CXXFLAGS=-I/tmp/proto3-a2/include - LD_LIBRARY_PATH=/tmp/proto3-a2/lib - PATH=/tmp/proto3-a2/bin:$PATH before_install: - buildscripts/make_dependencies.sh # build protoc into /tmp/proto3-a2 - mkdir -p $HOME/.gradle - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties jdk: - oraclejdk8 os: - linux branches: only: - master notifications: email: false cache: directories: - /tmp/proto3-a2 - $HOME/.m2 ```
64f6bca9-787f-4d9b-9b28-2c7adf4dd5b2
{ "language": "YAML" }
```yaml language: php php: - 7.1 - 7.2 - 7.3 before_install: - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && (cd && source ~/.nvm/nvm.sh) && nvm install - nvm use - npm install -g gulp@3.9.1 install: - php composer.phar install - nvm use - npm install - gulp --production script: - vendor/bin/phpunit ``` Update Travis CI config for Laravel Mix
```yaml language: php php: - 7.1 - 7.2 - 7.3 before_install: - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && (cd && source ~/.nvm/nvm.sh) && nvm install install: - php composer.phar install - nvm use - npm install - npm run prod script: - vendor/bin/phpunit ```
d91f4b2d-2c64-4d47-9c0b-2d4f918343b8
{ "language": "YAML" }
```yaml language: c sudo: required install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh script: - bash -ex .travis-ci.sh env: - OCAML_VERSION=4.02 PACKAGE=bulletml ``` Add more versions to env matrix
```yaml language: c sudo: required install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh script: - bash -ex .travis-ci.sh env: - OCAML_VERSION=4.02 PACKAGE=bulletml - OCAML_VERSION=4.03 PACKAGE=bulletml - OCAML_VERSION=latest PACKAGE=bulletml ```
724bdd25-63b7-4361-a49e-3e9718a1b15b
{ "language": "YAML" }
```yaml # .travis.yml file based on: # https://gist.github.com/dan-blanchard/7045057 language: python python: - "3.5" - "3.6" install: # Setup anaconda. See http://conda.pydata.org/docs/travis.html - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - bash miniconda.sh -b -p $HOME/miniconda - export PATH="$HOME/miniconda/bin:$PATH" - hash -r - conda config --set always_yes yes --set changeps1 no - conda update -q conda # Useful for debugging any issues with conda - conda info -a # Create conda environment with dependencies - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib h5py pandas networkx cffi - source activate test-environment - pip install git+https://github.com/BBN-Q/Adapt.git - pip install tqdm pyvisa coveralls - export PYTHONPATH=$PYTHONPATH:$PWD/src script: - coverage run -m unittest discover -v test after_script: - coveralls # necessary to run on new container-based infrastructure sudo: false cache: directories: - $HOME/download - $HOME/.cache/pip ``` Add scikit-learn to Travis config.
```yaml # .travis.yml file based on: # https://gist.github.com/dan-blanchard/7045057 language: python python: - "3.5" - "3.6" install: # Setup anaconda. See http://conda.pydata.org/docs/travis.html - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - bash miniconda.sh -b -p $HOME/miniconda - export PATH="$HOME/miniconda/bin:$PATH" - hash -r - conda config --set always_yes yes --set changeps1 no - conda update -q conda # Useful for debugging any issues with conda - conda info -a # Create conda environment with dependencies - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib h5py pandas networkx cffi scikit-learn - source activate test-environment - pip install git+https://github.com/BBN-Q/Adapt.git - pip install tqdm pyvisa coveralls - export PYTHONPATH=$PYTHONPATH:$PWD/src script: - coverage run -m unittest discover -v test after_script: - coveralls # necessary to run on new container-based infrastructure sudo: false cache: directories: - $HOME/download - $HOME/.cache/pip ```
278e71b8-84e0-41f3-a5ff-f7c4827ac7bf
{ "language": "YAML" }
```yaml language: java notifications: irc: "chat.freenode.net#jsense" email: false env: - TERM=dumb before_install: - echo 'yes' | sudo add-apt-repository ppa:chris-lea/protobuf - sudo apt-get update - sudo apt-get install protobuf-compiler libprotobuf-dev install: - ./gradlew assemble -s script: - ./gradlew check -s ``` Remove custom install and script.
```yaml language: java notifications: irc: "chat.freenode.net#jsense" email: false env: - TERM=dumb before_install: - echo 'yes' | sudo add-apt-repository ppa:chris-lea/protobuf - sudo apt-get update - sudo apt-get install protobuf-compiler libprotobuf-dev ```
73227d1a-e747-41c6-9c85-acb188729cb5
{ "language": "YAML" }
```yaml language: php php: - 5.4 - 5.5 - 5.6 - hhvm before_script: - composer self-update - composer install script: - ./vendor/bin/phpunit --coverage-text ``` Add PHP 7 to Travis CI builds.
```yaml language: php php: - 5.4 - 5.5 - 5.6 - 7 - hhvm matrix: allow_failures: - php: 7 before_script: - composer self-update - composer install script: - ./vendor/bin/phpunit --coverage-text ```
b1e5c954-6747-43a3-a910-d0fbb83e788f
{ "language": "YAML" }
```yaml language: ruby script: "bundle exec rake test" rvm: - 1.9.3 - 1.9.2 notifications: email: on_success: always on_failure: always``` Add support for jruby, rbx and ree.
```yaml language: ruby script: "bundle exec rake test" rvm: - 1.9.3 - 1.9.2 - jruby - rbx - ree notifications: email: on_success: always on_failure: always```
bb3b5ada-37af-444d-aca9-c35b814cdb0f
{ "language": "YAML" }
```yaml sudo: required services: - docker language: node_js node_js: - node script: - npm run lint - npm run generate-coverage - npm run check-coverage - npm run upload-coverage-coveralls - npm run upload-coverage-codacy - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" - chmod +x ./scripts/* - ./scripts/docker_ci.sh ``` Move the docker build/push to the deploy step
```yaml sudo: required services: - docker language: node_js node_js: - node script: - npm run lint - npm run generate-coverage - npm run check-coverage - npm run upload-coverage-coveralls - npm run upload-coverage-codacy deploy: - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" - chmod +x scripts/* - ./scripts/docker_ci.sh ```
91b6fdb1-0440-4238-89f1-fcc911a7d6cf
{ "language": "YAML" }
```yaml sudo: false language: python cache: pip dist: xenial python: - "3.7" - "3.6" - "3.5" before_install: - pip install -r requirements-tests-py3.txt install: - pip install . script: ./tests/mypy_test.py ``` Test only with a single Python version
```yaml dist: xenial sudo: false language: python python: 3.7 cache: pip before_install: - pip install -r requirements-tests-py3.txt install: - pip install . script: ./tests/mypy_test.py ```
2a8bd1f7-8a79-40ee-9a51-9c6a64c7564f
{ "language": "YAML" }
```yaml language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 env: - PUPPET_VERSION="~> 2.7.0" - PUPPET_VERSION="~> 3.1.0" - PUPPET_VERSION="~> 3.2.0" matrix: exclude: - rvm: 2.0.0 env: PUPPET_VERSION="~> 2.7.0" - rvm: 2.0.0 env: PUPPET_VERSION="~> 3.1.0" ``` Add Puppet 3.3.x to Travis CI build matrix
```yaml language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 env: - PUPPET_VERSION="~> 2.7.0" - PUPPET_VERSION="~> 3.1.0" - PUPPET_VERSION="~> 3.2.0" - PUPPET_VERSION="~> 3.3.0" matrix: exclude: - rvm: 2.0.0 env: PUPPET_VERSION="~> 2.7.0" - rvm: 2.0.0 env: PUPPET_VERSION="~> 3.1.0" ```
39388d28-d408-488c-8a2b-5b03f2f20563
{ "language": "YAML" }
```yaml language: ruby before_install: gem install bundler --version '1.8' install: bundle install rvm: - 2.0 - 2.1 - 2.2 - ruby-head ``` Test with Rubinius and JRuby
```yaml language: ruby before_install: gem install bundler --version '1.8' install: bundle install rvm: - 2.0 - 2.1 - 2.2 - ruby-head - rbx-2 - jruby-head ```
30f7097b-67ed-478f-92b4-c6b3a5581090
{ "language": "YAML" }
```yaml language: node_js node_js: - "0.10" - "0.12" - "iojs" ``` Test on io.js 1.0.0 as well as 2.x
```yaml language: node_js node_js: - "0.10" - "0.12" - "iojs-v1.0.0" - "iojs" ```
50b3debd-b3be-4c9d-a58c-51dedc548ff5
{ "language": "YAML" }
```yaml language: python python: 3.5 sudo: false env: - TOX_ENV=py27-django17 - TOX_ENV=py33-django17 - TOX_ENV=py34-django17 - TOX_ENV=py27-django18 - TOX_ENV=py33-django18 - TOX_ENV=py34-django18 - TOX_ENV=py35-django18 - TOX_ENV=py27-django19 - TOX_ENV=py34-django19 - TOX_ENV=py35-django19 install: - pip install tox before_script: - psql -c 'create database netfields;' -U postgres script: - tox -e $TOX_ENV ``` Remove Django 1.7 from Travis
```yaml language: python python: 3.5 sudo: false env: - TOX_ENV=py27-django18 - TOX_ENV=py33-django18 - TOX_ENV=py34-django18 - TOX_ENV=py35-django18 - TOX_ENV=py27-django19 - TOX_ENV=py34-django19 - TOX_ENV=py35-django19 install: - pip install tox before_script: - psql -c 'create database netfields;' -U postgres script: - tox -e $TOX_ENV ```
bb1b21e0-ee4f-47fd-ad45-4d2d23a6eaab
{ "language": "YAML" }
```yaml language: php php: - "5.4" - "5.5" - "5.6" - "nightly" - "hhvm" before_script: - composer install --no-interaction - cp config/app_travis.php config/app.php - cp config/oauth_example.php config/oauth.php - mysql -e 'create database pmaerr;' - wget https://scrutinizer-ci.com/ocular.phar script: - bin/cake migrations migrate - vendor/bin/phpunit --coverage-clover build/logs/clover.xml -c phpunit.xml.dist after_script: - php vendor/bin/coveralls -v - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml matrix: allow_failures: - php: "hhvm" - php: "nightly" ``` Use container based builds on Travis
```yaml language: php php: - "5.4" - "5.5" - "5.6" - "nightly" - "hhvm" sudo: false before_script: - composer install --no-interaction - cp config/app_travis.php config/app.php - cp config/oauth_example.php config/oauth.php - mysql -e 'create database pmaerr;' - wget https://scrutinizer-ci.com/ocular.phar script: - bin/cake migrations migrate - vendor/bin/phpunit --coverage-clover build/logs/clover.xml -c phpunit.xml.dist after_script: - php vendor/bin/coveralls -v - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml matrix: allow_failures: - php: "hhvm" - php: "nightly" ```
4f21552a-8f8d-4353-9df4-9a10a8eb7e63
{ "language": "YAML" }
```yaml language: groovy jdk: - oraclejdk8 before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ before_install: - chmod +x gradlew script: travis_wait 10 ./gradlew -Dfile.encoding=UTF-8 test jacocoTestReport after_success: - ./gradlew coveralls ``` Print the version of gradle
```yaml language: groovy jdk: - oraclejdk8 before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ before_install: - chmod +x gradlew before_script: - ./gradlew --version script: travis_wait 10 ./gradlew -Dfile.encoding=UTF-8 test jacocoTestReport after_success: - ./gradlew coveralls ```
b1037349-43d0-417f-9905-0bdc1fb36d25
{ "language": "YAML" }
```yaml sudo: false language: python cache: pip python: - "3.5" - "3.6" - "nightly" - "pypy3.5-5.8.0" env: - TYPING_VERSION="<3.5.3" - TYPING_VERSION=">=3.5.3" matrix: allow_failures: - python: "nightly" include: - { python: "3.7", dist: xenial, sudo: true } install: - pip install --upgrade coveralls pytest "typing$TYPING_VERSION" "pytest-cov>=2.5.1" dataclasses # mypy can't be installed on pypy - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* ]] ; then pip install mypy ; fi # Black is Python 3.6+-only - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* && "${TRAVIS_PYTHON_VERSION}" != "3.5"* ]] ; then pip install black ; fi script: - py.test -vv --cov=injector --cov-branch --cov-report html --cov-report term - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* ]] ; then mypy injector ; fi - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* && "${TRAVIS_PYTHON_VERSION}" != "3.5"* ]] ; then black --check . ; fi after_success: - coveralls ``` Reduce the number of CI jobs
```yaml sudo: false language: python cache: pip python: - "3.5" - "3.6" - "nightly" - "pypy3.5-5.8.0" matrix: allow_failures: - python: "nightly" include: - { python: "3.7", dist: xenial, sudo: true } install: - pip install --upgrade coveralls pytest "pytest-cov>=2.5.1" dataclasses # mypy can't be installed on pypy - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* ]] ; then pip install mypy ; fi # Black is Python 3.6+-only - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* && "${TRAVIS_PYTHON_VERSION}" != "3.5"* ]] ; then pip install black ; fi script: - py.test -vv --cov=injector --cov-branch --cov-report html --cov-report term - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* ]] ; then mypy injector ; fi - if [[ "${TRAVIS_PYTHON_VERSION}" != "pypy"* && "${TRAVIS_PYTHON_VERSION}" != "3.5"* ]] ; then black --check . ; fi after_success: - coveralls ```
7f215230-bb83-46a2-b4e3-2220d7f57049
{ "language": "YAML" }
```yaml language: python python: - 2.7 - 3.3 before_install: # Use miniconda and conda packages to speed up dependency setup (principally # borrowed from https://gist.github.com/dan-blanchard/7045057 # and https://github.com/Jorge-C/ordination/blob/master/.travis.yml - sudo apt-get update -qq - sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran - wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # Update conda itself - conda update --yes conda # matplotlib needs a DISPLAY - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" install: - conda create --yes -n env_name python=$TRAVIS_PYTHON_VERSION nose pip numpy matplotlib pandas coverage - source activate env_name - python setup.py install script: - nosetests --with-coverage --cover-package=pyblock --cover-min-percentage=87 pyblock ``` Tweak coverage percentage as we're (still) not testing plot output.
```yaml language: python python: - 2.7 - 3.3 before_install: # Use miniconda and conda packages to speed up dependency setup (principally # borrowed from https://gist.github.com/dan-blanchard/7045057 # and https://github.com/Jorge-C/ordination/blob/master/.travis.yml - sudo apt-get update -qq - sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran - wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # Update conda itself - conda update --yes conda # matplotlib needs a DISPLAY - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" install: - conda create --yes -n env_name python=$TRAVIS_PYTHON_VERSION nose pip numpy matplotlib pandas coverage - source activate env_name - python setup.py install script: - nosetests --with-coverage --cover-package=pyblock --cover-min-percentage=85 pyblock ```
e7f4d09b-429f-4396-9ff8-d3006ff50847
{ "language": "YAML" }
```yaml language: node_js node_js: - '0.11' script: - npm test -- --single-run - npm run lint cache: directories: - node_modules ``` Upgrade to new Travis CI infrastructure
```yaml sudo: false language: node_js node_js: - '0.11' script: - npm test -- --single-run - npm run lint cache: directories: - node_modules ```
006bf81d-ebc3-4459-a77c-b1713a4c8d0b
{ "language": "YAML" }
```yaml language: node_js node_js: - "0.10" - "0.12" - iojs script: "npm run-script test-cover" after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls" ``` Convert to Travis CI's container-based infrastructure.
```yaml language: node_js node_js: - "0.10" - "0.12" - iojs script: "npm run-script test-cover" after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls" sudo: false ```
8bbed652-2662-450b-b11c-568d6ae7c5c3
{ "language": "YAML" }
```yaml language: python python: - "3.5" - "3.6" - "3.7" - "nightly" matrix: allow_failures: - python: 'nightly' install: - pip install -e. - pip install pytest script: pytest sudo: false ``` Add Travis CI config for Python 3.7
```yaml language: python dist: xenial # required for Python >= 3.7 python: - "3.5" - "3.6" - "3.7" - "nightly" matrix: allow_failures: - python: 'nightly' install: - pip install -e. - pip install pytest script: pytest sudo: false ```
3a73ee41-1900-4a91-b226-e88b319f5d23
{ "language": "YAML" }
```yaml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - 7.0 - hhvm ## Cache composer sudo: false cache: directories: - $HOME/.composer/cache install: - travis_retry composer install --prefer-dist --no-interaction script: vendor/bin/phpspec run ``` Remove support for PHP 5.3
```yaml language: php php: - 5.4 - 5.5 - 5.6 - 7.0 - hhvm ## Cache composer sudo: false cache: directories: - $HOME/.composer/cache install: - travis_retry composer install --prefer-dist --no-interaction script: vendor/bin/phpspec run ```
e380dca4-9e9f-40e6-8c7c-c54a1c6ee6b5
{ "language": "YAML" }
```yaml language: ruby bundler_args: --without development rvm: - 1.9.3 - 2.0.0 before_script: - cp config/database.travis.yml config/database.yml - psql -c 'CREATE DATABASE brimir_test;' -U postgres ``` Prepare Travis DB before running tests.
```yaml language: ruby bundler_args: --without development rvm: - 1.9.3 - 2.0.0 before_script: - psql -c 'CREATE DATABASE brimir_test;' -U postgres - cp config/database.travis.yml config/database.yml - bundle exec rake db:test:prepare ```
b70bb2a5-13dc-461a-8c32-f31629adf674
{ "language": "YAML" }
```yaml language: ruby script: bundle exec rake travis matrix: fast_finish: true include: - rvm: 1.8.7 gemfile: gemfiles/Gemfile-ruby-1.8.7 - rvm: 1.9.3 gemfile: Gemfile - rvm: 2.0.0 gemfile: Gemfile - rvm: 2.1.0 gemfile: Gemfile - rvm: 2.1.1 gemfile: Gemfile # env: COVERAGE=true - rvm: 2.1.1 gemfile: gemfiles/Gemfile-edge - rvm: jruby-18mode gemfile: gemfiles/Gemfile-ruby-1.8.7 - rvm: jruby-19mode gemfile: Gemfile - rvm: jruby-head gemfile: Gemfile allow_failures: - rvm: 1.8.7 - rvm: jruby-18mode - rvm: jruby-head notifications: email: - matt.eldridge@us.ibm.com before_install: - gem update --system # todo: workaround for https://github.com/rubygems/rubygems/pull/763 ``` Drop support for 1.8.7 and 1.9.3
```yaml language: ruby script: bundle exec rake travis matrix: fast_finish: true include: - rvm: 2.0.0 gemfile: Gemfile - rvm: 2.1.0 gemfile: Gemfile - rvm: 2.1.1 gemfile: Gemfile - rvm: 2.2 gemfile: Gemfile # env: COVERAGE=true - rvm: 2.1.1 gemfile: gemfiles/Gemfile-edge - rvm: jruby-head gemfile: Gemfile allow_failures: - rvm: 1.8.7 - rvm: jruby-18mode - rvm: jruby-head notifications: email: - matt.eldridge@us.ibm.com before_install: - gem update --system # todo: workaround for https://github.com/rubygems/rubygems/pull/763 ```
9faef905-343f-4a63-af74-4ffae33d7b70
{ "language": "YAML" }
```yaml language: node_js node_js: - 6 cache: directories: - docs/vendor/bundle - node_modules - $HOME/.yarn-cache before_install: - | echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc unset GITHUB_TOKEN if [ "$TEST_TYPE" != build_website ] && \ ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/' then echo "Only docs were updated, stopping build process." exit fi sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update -qq sudo apt-get install -y -qq yarn yarn --version install: - | yarn install script: - | yarn run lint # Disabled until testing is fixed # yarn run test:lcov ``` Remove some scripts copied by mistake from react
```yaml language: node_js node_js: - 6 cache: directories: - docs/vendor/bundle - node_modules - $HOME/.yarn-cache before_install: - | sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update -qq sudo apt-get install -y -qq yarn yarn --version install: - | yarn install script: - | yarn run lint # Disabled until testing is fixed # yarn run test:lcov ```
818b39c3-3d29-4979-b652-99636059b09e
{ "language": "YAML" }
```yaml sudo: false os: - linux - osx - windows language: node_js node_js: - node - '10' - '8' - '6' ``` Drop node v6 since picomatch doesnt support it.
```yaml sudo: false os: - linux - osx - windows language: node_js node_js: - node - '10' - '8' ```