forked from openedx-unsupported/configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 863 Bytes
/
.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
# Travis CI configuration file for running tests
language: python
dist: xenial
python:
- "2.7"
- "3.6"
branches:
only:
- master
services:
- docker
addons:
apt:
packages:
- nodejs
before_install:
- sudo apt-get -y update
- sudo apt-get -y install -o Dpkg::Options::="--force-confold" docker-ce
install:
- "pip install demjson"
- "pip install -r requirements.txt"
- if [ "$TRAVIS_PYTHON_VERSION" = "3.6" ]; then pip install -r requirements3.txt; fi
env:
- MAKE_TARGET=test.syntax SHARD=0 SHARDS=1
- MAKE_TARGET=test.playbooks SHARD=0 SHARDS=1
- MAKE_TARGET=docker.test.shard SHARD=0 SHARDS=3
- MAKE_TARGET=docker.test.shard SHARD=1 SHARDS=3
- MAKE_TARGET=docker.test.shard SHARD=2 SHARDS=3
script:
- docker --version
- make --version
- travis_wait 50 make --keep-going $MAKE_TARGET SHARD=$SHARD SHARDS=$SHARDS