enable discourse-plugin-ci
This commit is contained in:
		
							parent
							
								
									3c23b225fb
								
							
						
					
					
						commit
						14b8c1f1a8
					
				
							
								
								
									
										42
									
								
								.travis.yml
								
								
								
								
							
							
						
						
									
										42
									
								
								.travis.yml
								
								
								
								
							| 
						 | 
					@ -1,42 +1,12 @@
 | 
				
			||||||
language: ruby
 | 
					# We want to use the KVM-based system, so require sudo
 | 
				
			||||||
 | 
					sudo: required
 | 
				
			||||||
env:
 | 
					 | 
				
			||||||
  global:
 | 
					 | 
				
			||||||
    - DISCOURSE_HOSTNAME=www.example.com
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
dist: trusty
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
cache: bundler --path $TRAVIS_BUILD_DIR/discourse/vendor
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
addons:
 | 
					 | 
				
			||||||
  postgresql: 9.6
 | 
					 | 
				
			||||||
  apt:
 | 
					 | 
				
			||||||
    packages:
 | 
					 | 
				
			||||||
    - gifsicle
 | 
					 | 
				
			||||||
    - jpegoptim
 | 
					 | 
				
			||||||
    - optipng
 | 
					 | 
				
			||||||
    - jhead
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
rvm:
 | 
					 | 
				
			||||||
  - 2.6.3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  - redis-server
 | 
					  - docker
 | 
				
			||||||
 | 
					
 | 
				
			||||||
before_install:
 | 
					before_install:
 | 
				
			||||||
  - git clone https://github.com/discourse/discourse.git discourse
 | 
					  - git clone --depth=1 https://github.com/discourse/discourse-plugin-ci
 | 
				
			||||||
  - cd discourse
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install: true # Prevent travis doing bundle install
 | 
				
			||||||
  - touch config/stripe.yml
 | 
					 | 
				
			||||||
  - git clone $TRAVIS_BUILD_DIR plugins/discourse-donations --depth 50 --branch $TRAVIS_BRANCH
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
before_script:
 | 
					 | 
				
			||||||
  - gem install bundler
 | 
					 | 
				
			||||||
  - bundle install
 | 
					 | 
				
			||||||
  - bundle exec rake db:create db:migrate
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
script:
 | 
					script:
 | 
				
			||||||
  - "bundle exec rake plugin:spec[discourse-donations]"
 | 
					  - discourse-plugin-ci/script.sh
 | 
				
			||||||
  - "MODULE='Acceptance: Discourse Donations' bundle exec rake qunit:test[20000]"
 | 
					 | 
				
			||||||
  - "MODULE='component:stripe-card' bundle exec rake qunit:test[20000]"
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue