Commit 6773ec63 by Feanil Patel Committed by GitHub

Merge pull request #211 from edx/bilalahmad99/forums-16.04

use 16.04 latest docker image for forums
parents cce3d796 b422880e
sudo: false sudo: required
services:
- docker
language: ruby language: ruby
rvm: rvm:
- "1.9.3" - "1.9.3"
cache: bundler install:
- docker-compose -f ./.travis/docker-compose-travis.yml up -d
before_install: script:
- gem update bundler # Ensure we use the latest version of bundler. Travis' default version of outdated. - docker exec forum_testing /edx/app/forum/cs_comments_service/.travis/run_tests.sh
# Run Elasticsearch as a daemon
- curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.13.zip
- unzip elasticsearch-0.90.13.zip
- elasticsearch-0.90.13/bin/elasticsearch
- sleep 10
# Run MongoDB as a daemon
- curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.12.tgz
- tar -zxf mongodb-linux-x86_64-3.0.12.tgz
- export PATH=mongodb-linux-x86_64-3.0.12/bin:$PATH
- mkdir -p ./mongo/db
- mkdir -p ./mongo/log
- mongod --fork --dbpath ./mongo/db --logpath ./mongo/log/mongodb.log --storageEngine wiredTiger
script: bundle exec rspec
# This is only currently used by Travis for testing
version: "2"
services:
elasticsearch:
image: edxops/elasticsearch:0.9.13
container_name: "es.edx"
mongo:
image: mongo:3.0.12
container_name: "mongo.edx"
forum:
image: edxops/forums:latest
container_name: forum_testing
volumes:
- ..:/edx/app/forum/cs_comments_service
command: tail -f /dev/null
#!/bin/bash -xe
. /edx/app/forum/forum_env
export MONGOHQ_URL="mongodb://mongo.edx:27017/cs_comments_service_test"
cd /edx/app/forum/cs_comments_service
bundle install
bundle exec rspec
...@@ -24,9 +24,7 @@ test: ...@@ -24,9 +24,7 @@ test:
clients: clients:
default: default:
<<: *default_client <<: *default_client
database: cs_comments_service_test <<: *default_uri
hosts:
- localhost:27017
production: production:
clients: clients:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment