Fix Travis build

Fix Travis build
diff --git a/.travis.yml b/.travis.yml
old mode 100644
new mode 100755
index 4d9b058..6f9d637
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,28 +1,14 @@
-language: ruby
-
-addons:
-  postgresql: 9.6
-
-rvm:
-  - 2.5.0
-
-services:
-  - redis-server
-
+# We want to use the KVM-based system, so require sudo
 sudo: required
-dist: trusty
-cache: yarn
+services:
+  - docker
 
 before_install:
-  - git clone --depth=1 https://github.com/discourse/discourse.git build; cd build;
-  - git clone --depth=1 -b $TRAVIS_BRANCH https://github.com/$TRAVIS_REPO_SLUG.git plugins/discourse-prometheus-alert-receiver
-  - git clone --depth=1 https://github.com/discourse/discourse-assign.git plugins/discourse-assign
-
-before_script:
-  - bundle exec rake db:create db:migrate
+  - git clone --depth=1 https://github.com/discourse/discourse-plugin-ci
+  - git clone --depth=1 https://github.com/discourse/discourse-assign.git $HOME/plugins/discourse-assign
 
-install:
-  - bundle install --without development --deployment --retry=3 --jobs=3
+install: true # Prevent travis doing bundle install
 
 script:
-  - LOAD_PLUGINS=1 bundle exec rake plugin:spec['discourse-prometheus-alert-receiver']
+  - export DOCKER_OPTIONS="-v ${HOME}/plugins/discourse-assign:/var/www/discourse/plugins/discourse-assign"
+  - discourse-plugin-ci/script.sh

GitHub

2 Likes