2017-02-01 22:57:57 -05:00
|
|
|
language: ruby
|
2017-02-13 22:29:04 -05:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DISCOURSE_HOSTNAME=www.example.com
|
|
|
|
|
|
|
|
dist: trusty
|
|
|
|
|
2017-02-13 22:40:36 -05:00
|
|
|
cache: bundler
|
|
|
|
|
2017-02-13 22:29:04 -05:00
|
|
|
addons:
|
|
|
|
postgresql: 9.5
|
2017-02-14 19:25:32 -05:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gifsicle
|
|
|
|
- jpegoptim
|
|
|
|
- optipng
|
|
|
|
- jhead
|
2017-02-13 22:29:04 -05:00
|
|
|
|
|
|
|
rvm:
|
|
|
|
- 2.3.1
|
|
|
|
|
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- git clone https://github.com/discourse/discourse.git discourse
|
|
|
|
- cd discourse
|
|
|
|
|
|
|
|
install:
|
|
|
|
- touch config/stripe.yml
|
|
|
|
- git clone https://github.com/choiceaustralia/discourse-payments.git plugins/discourse-payments --depth=1
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- gem install bundler
|
|
|
|
- bundle install
|
|
|
|
- bundle exec rake db:create db:migrate
|
|
|
|
|
|
|
|
script:
|
2017-02-14 18:59:58 -05:00
|
|
|
- "bundle exec rake plugin:spec[discourse-payments] && bundle exec rake qunit:test['200000']"
|