sudo: required dist: trusty services: - docker - postgres language: ruby branches: only: - master - revamp_admin env: global: - BUNDLE_GEMFILE="$TRAVIS_BUILD_DIR/Gemfile" - BUNDLE_PATH="$HOME/.bundle" - PHANTOMJS_VERSION=2.1.1 - PHANTOMJS_BIN="$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin/phantomjs" - SIMPLECOV=true matrix: - GEM=. DB=postgres - GEM=decidim-admin DB=postgres - GEM=decidim-core DB=postgres - GEM=decidim-system DB=postgres - GEM=decidim-api DB=postgres - GEM=decidim-pages DB=postgres - GEM=decidim-comments DB=postgres - GEM=decidim-meetings DB=postgres - GEM=decidim-proposals DB=postgres - GEM=decidim-results DB=postgres - GEM=decidim-budgets DB=postgres before_install: - nvm install 7 # Upgrade PhantomJS - "export PATH=$HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH" - "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $HOME/travis_phantomjs; mkdir -p $HOME/travis_phantomjs; fi" - "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi" - "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $HOME/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $HOME/travis_phantomjs; fi" - "phantomjs --version" # Repo for newer Node.js versions - gem update --system - yarn --ignore-engines bundler_args: --jobs=3 --retry=3 --deployment --path="$HOME/.bundle" cache: directories: - $HOME/.bundle - $TRAVIS_BUILD_DIR/.yarn-cache - $TRAVIS_BUILD_DIR/node_modules - $BUNDLE_PATH - $HOME/travis_phantomjs before_script: - bundle exec rake decidim:generate_test_app script: - $TRAVIS_BUILD_DIR/run_ci.sh rvm: - 2.4.1 notifications: email: false addons: postgresql: "9.4"