Skip to content

Commit b481a11

Browse files
committed
Use official discourse-plugin-ci for Travis CI
1 parent d0bd252 commit b481a11

File tree

1 file changed

+9
-39
lines changed

1 file changed

+9
-39
lines changed

.travis.yml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,12 @@
1-
sudo: required # required: https://github.com/discourse/mini_racer#travis-ci
2-
dist: trusty # required: https://github.com/discourse/mini_racer#travis-ci
3-
language: ruby
4-
cache:
5-
directories:
6-
- discourse/vendor/bundle
1+
# We want to use the KVM-based system, so require sudo
2+
sudo: required
73
services:
8-
- postgresql
9-
- redis-server
10-
addons:
11-
postgresql: 9.3
12-
apt:
13-
packages:
14-
- gifsicle
15-
- jpegoptim
16-
- optipng
17-
- jhead
18-
code_climate:
19-
repo_token: 34de2e1d1093068fa2e757bfce3a6214ae11c4b3f63bf36d81ec105c04ac2463
20-
services:
21-
- redis-server
22-
env:
23-
- LOAD_PLUGINS=1 RUN_COVERAGE=1 RAILS_ENV=test
4+
- docker
5+
246
before_install:
25-
- cd discourse
26-
- git init
27-
- git remote add -t \* -f origin https://github.com/discourse/discourse.git
28-
- git checkout tags/latest-release
29-
- mkdir plugins/discourse-nntp-bridge
30-
- cd ..
31-
- shopt -s extglob dotglob
32-
- mv !(discourse) discourse/plugins/discourse-nntp-bridge/
33-
- shopt -u dotglob
34-
- cd discourse
35-
- echo "gem 'simplecov'" >> Gemfile
36-
- bundle install
7+
- git clone --depth=1 https://github.com/discourse/discourse-plugin-ci
8+
9+
install: true # Prevent travis doing bundle install
10+
3711
script:
38-
- bundle exec rake db:create db:migrate db:test:prepare
39-
- bundle exec rake plugin:spec[discourse-nntp-bridge]
40-
after_script:
41-
- gem install codeclimate-test-reporter
42-
- codeclimate-test-reporter --path-prefix="plugins/discourse-nntp-bridge"
12+
- discourse-plugin-ci/script.sh

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy