This commit is contained in:
Brian Telnes 2017-06-12 20:55:44 +00:00
Родитель 70c4b0e658
Коммит 1c5a916df3
3 изменённых файлов: 20 добавлений и 10 удалений

Просмотреть файл

@ -23,22 +23,22 @@ branches:
- btelnes
before_install:
- sudo apt-get -y update -qq
- docker-compose up --build -d
#- sudo apt-get -y update -qq
#- pip install ansible
#- pip install datadog
#- sudo -H apt-get install python-pymongo
# command to install dependencies
install:
- git clone -b oxa/master.fic https://github.com/Microsoft/edx-configuration.git /var/tmp/configuration
- cd /var/tmp/configuration
- sudo -H pip install -r pre-requirements.txt
- sudo -H pip install -r requirements.txt
#- sudo -H pip uninstall -y pymongo
#- sudo -H apt-get install python-pymongo
- sudo pip install setuptools --upgrade
#- git clone -b oxa/master.fic https://github.com/Microsoft/edx-configuration.git /var/tmp/configuration
#- cd /var/tmp/configuration
#- sudo -H pip install -r pre-requirements.txt
#- sudo -H pip install -r requirements.txt
#- sudo pip install setuptools --upgrade
#- cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./vagrant-devstack.yml -i "localhost," -vvv
#- cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," -vvv --extra-vars "OPENEDX_RELEASE=open-release/ficus.1,ansible_distribution='Ubuntu',ansible_distribution_release='xenial'"
- cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./vagrant-devstack.yml -i "localhost," -vvv
#- git clone -b oxa/master.fic https://github.com/Microsoft/edx-platform.git edx/app/edxapp/edx-platform
#- git clone -b oxa/master.fic https://github.com/Microsoft/edx-configuration.git edx/app/edx_ansible/edx_ansible
@ -92,6 +92,6 @@ install:
# command to run tests
script: ./scripts/travis-tests.sh
#script: ./scripts/travis-tests.sh
dist: trusty

8
Dockerfile Normal file
Просмотреть файл

@ -0,0 +1,8 @@
FROM edxops/edxapp:latest
WORKDIR /edx/app/edxapp/edx-platform
ADD scripts/travis-install.sh /edx/app/edxapp/edx-platform/scripts
ADD scripts/travis-test.sh /edx/app/edxapp/edx-platform/scripts
RUN git status
RUN . /edx/app/edxapp/edxapp_env
RUN /edx/app/edxapp/edx-platform/scripts/travis-install.sh
RUN lsb_release -a

2
scripts/travis-install.sh Executable file
Просмотреть файл

@ -0,0 +1,2 @@
#!/usr/bin/env bash