From e8c81765f08a7204621acca814053c94e087eda6 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 9 Dec 2019 17:16:29 +1100 Subject: [PATCH] Update .travis.yml --- .travis.yml | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index b48ce894..9a695031 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1,12 @@ -# Uncomment tests runner when tests are added. - +# We want to use the KVM-based system, so require sudo sudo: required -#names: - #- docker +services: + - docker before_install: - - plugin_name=${PWD##*/} && echo $plugin_name - - chmod -R 777 . + - git clone --depth=1 https://github.com/discourse/discourse-plugin-ci -#script: - #- > - #docker run - #-e "COMMIT_HASH=origin/tests-passed" - #-e "SKIP_LINT=1" - #-e "RUBY_ONLY=1" - #-e SINGLE_PLUGIN=$plugin_name - #-v $(pwd):/var/www/discourse/plugins/$plugin_name - #discourse/discourse_test:release +install: true # Prevent travis doing bundle install -after_success: - - pip install virtualenv - - virtualenv ~/env - - source ~/env/bin/activate - - pip install transifex-client - - sudo echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc - - tx push -s +script: + - discourse-plugin-ci/script.sh