Skip to content

Instantly share code, notes, and snippets.

@simonmorley
Last active August 29, 2015 13:57

Revisions

  1. simonmorley revised this gist Apr 23, 2014. 1 changed file with 4 additions and 16 deletions.
    20 changes: 4 additions & 16 deletions gistfile1.yml
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@ language: ruby
    cache:
    bundler: true
    apt: true

    rvm:
    - 2.0.0
    env:
    @@ -13,15 +12,8 @@ env:

    bundler_args: --without development --path=~/.bundle

    env:
    global:
    - BUNDLE_ARCHIVE=""
    - AWS_S3_BUCKET=""
    - AWS_S3_KEY=""
    - AWS_S3_SECRET=""
    - RAILS_ENV=test

    before_script:
    - mv config/database.yml.example config/database.yml
    - mysql -e 'create database myapp_test;'
    - mysql -e 'create database test_cache;'
    - "mysql -u travis myapp_test < db/structure.sql"
    @@ -30,13 +22,14 @@ before_script:
    - "mysql -u travis test_cache < db/radcheck.sql"

    script:
    #- RAILS_ENV=test bundle exec rake db:migrate --trace
    - bundle exec rake db:seed RAILS_ENV=test
    - bundle exec rspec spec/models
    - bundle exec rspec spec/controllers
    - bundle exec rspec spec/routing
    - bundle exec rspec spec/lib
    - bundle exec rspec spec/concerns
    - bundle exec rspec spec/workers
    - bundle exec rspec spec/helpers
    # - bundle exec rspec $TESTFOLDER

    services:
    - elasticsearch
    @@ -45,8 +38,6 @@ services:

    before_install:
    - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
    - gem install bundle_cache
    - bundle_cache_install
    - sudo apt-get update -qq
    - sudo apt-get install -qq wbritish
    - sudo apt-get install openvpn
    @@ -55,6 +46,3 @@ before_install:
    - sudo chown -R travis:travis /etc/openvpn
    - sudo mv /etc/localtime /etc/localtime.default
    - sudo cp /usr/share/zoneinfo/Europe/London /etc/localtime

    after_script:
    - bundle_cache
  2. simonmorley created this gist Mar 7, 2014.
    60 changes: 60 additions & 0 deletions gistfile1.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,60 @@
    language: ruby
    cache:
    bundler: true
    apt: true

    rvm:
    - 2.0.0
    env:
    # - TESTFOLDER=spec/models
    # - TESTFOLDER=spec/controllers
    # - TESTFOLDER=spec/routing
    # - TESTFOLDER=spec/helpers

    bundler_args: --without development --path=~/.bundle

    env:
    global:
    - BUNDLE_ARCHIVE=""
    - AWS_S3_BUCKET=""
    - AWS_S3_KEY=""
    - AWS_S3_SECRET=""
    - RAILS_ENV=test

    before_script:
    - mysql -e 'create database myapp_test;'
    - mysql -e 'create database test_cache;'
    - "mysql -u travis myapp_test < db/structure.sql"
    - "mysql -u travis test_cache < db/radacct.sql"
    - "mysql -u travis test_cache < db/radpostauth.sql"
    - "mysql -u travis test_cache < db/radcheck.sql"

    script:
    #- RAILS_ENV=test bundle exec rake db:migrate --trace
    - bundle exec rake db:seed RAILS_ENV=test
    - bundle exec rspec spec/models
    - bundle exec rspec spec/controllers
    - bundle exec rspec spec/routing
    - bundle exec rspec spec/helpers
    # - bundle exec rspec $TESTFOLDER

    services:
    - elasticsearch
    - redis-server
    - rabbitmq

    before_install:
    - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
    - gem install bundle_cache
    - bundle_cache_install
    - sudo apt-get update -qq
    - sudo apt-get install -qq wbritish
    - sudo apt-get install openvpn
    - sudo rm -rf /etc/openvpn*
    - sudo git clone https://github.com/PolkaSpots/openvpn.git /etc/openvpn
    - sudo chown -R travis:travis /etc/openvpn
    - sudo mv /etc/localtime /etc/localtime.default
    - sudo cp /usr/share/zoneinfo/Europe/London /etc/localtime

    after_script:
    - bundle_cache