forked from mitodl/edx-sga
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
39 lines (39 loc) · 1.15 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: python
matrix:
include:
- install:
- git clone https://github.com/edx/devstack.git
# Travis's version of docker-compose doesn't understand :cached, and it's not required anyway, so this removes it
- (cd devstack; sed -i 's/:cached//g' ./docker-compose-host.yml)
- (cd devstack; make dev.clone)
script: >
cd devstack;
DEVSTACK_WORKSPACE=$PWD/.. docker-compose
-f docker-compose.yml -f docker-compose-host.yml run
-e TRAVIS
-e TRAVIS_BRANCH
-e TRAVIS_JOB_NUMBER
-e TRAVIS_PULL_REQUEST
-e TRAVIS_JOB_ID
-e TRAVIS_TAG
-e TRAVIS_REPO_SLUG
-e TRAVIS_COMMIT
-e TRAVIS_PULL_REQUEST_SHA
-e TRAVIS_PULL_REQUEST_BRANCH
-e TRAVIS_COMMIT_RANGE
-e CI
-v $PWD/..:/edx-sga lms /edx-sga/run_devstack_integration_tests.sh
services:
- docker
env:
name: Integration
- install:
- pip install tox
script: tox -e django18
env:
name: Django 1.8 Unit Tests
- install:
- pip install tox
script: tox -e django111
env:
name: Django 1.11 Unit Tests