Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
ad8f29b5
Commit
ad8f29b5
authored
Nov 16, 2016
by
Bilal Ahmad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use 16.04 latest docker image for forums
parent
cce3d796
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
17 deletions
+46
-17
.travis.yml
+7
-17
.travis/run_tests.sh
+27
-0
docker-compose-travis.yml
+12
-0
No files found.
.travis.yml
View file @
ad8f29b5
sudo
:
false
sudo
:
required
services
:
-
docker
language
:
ruby
language
:
ruby
...
@@ -8,20 +10,8 @@ rvm:
...
@@ -8,20 +10,8 @@ rvm:
cache
:
bundler
cache
:
bundler
before_install
:
before_install
:
-
gem update bundler
# Ensure we use the latest version of bundler. Travis' default version of outdated.
-
docker-compose -f docker-compose-travis.yml up -d
-
docker exec forum_testing chmod +x /edx/app/forum/cs_comments_service/.travis/run_tests.sh
# Run Elasticsearch as a daemon
script
:
-
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.13.zip
-
docker exec forum_testing /edx/app/forum/cs_comments_service/.travis/run_tests.sh
-
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
.travis/run_tests.sh
0 → 100755
View file @
ad8f29b5
#!/bin/bash -xe
.
/edx/app/forum/forum_env
.
/edx/app/forum/ruby_env
gem update bundler
# Ensure we use the latest version of bundler. Travis' default version of outdated.
# install java
curl
-L
-C
-
-b
"oraclelicense=accept-securebackup-cookie"
-O
http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz
tar
-xvzf
jdk-8u111-linux-x64.tar.gz
-C
/opt
export
JAVA_HOME
=
/opt/jdk1.8.0_111/
export
PATH
=
/opt/jdk1.8.0_111/bin:
$PATH
# 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
bundle
exec
rspec
docker-compose-travis.yml
0 → 100644
View file @
ad8f29b5
# This is only currently used by Travis for testing
version
:
"
2"
services
:
forum
:
image
:
edxops/forums:latest
container_name
:
forum_testing
volumes
:
-
.:/edx/app/forum/cs_comments_service
-
$HOME/.gem:/edx/app/forum/.gem
command
:
tail -f /dev/null
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment