forked from dimagi/commcare-hq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.82 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
40
41
42
language: python
python: 2.7
sudo: required
group: edge
branches:
only:
- master
env:
matrix:
- TEST=python NOSE_DIVIDED_WE_RUN=05 JS_SETUP=yes
- TEST=python NOSE_DIVIDED_WE_RUN=6a JS_SETUP=yes
- TEST=python NOSE_DIVIDED_WE_RUN=bf JS_SETUP=yes
- TEST=python-sharded-and-javascript JS_SETUP=yes
global:
- REUSE_DB=true # can't drop the citus DB since it's the postgres database
# TRAVIS_HQ_USERNAME
- secure: "LuT0vvsY6RjlEX8Gje74Xl0jcuEfaiN/fOOXpfZd1tf8zC3Xd9E8mNn5vlup/3PBBBv1yIAUmw9LTc03ifWBGzaazqIVAgTfgBoW7XAd8G/lx0/eeZFqheSdpP8wSZwn72Z/XrIhQczFCreZRJHlZA9GopRv7Lfs1SfNEbnMoac="
# TRAVIS_HQ_PASSWORD
- secure: "GmJzDwP60bUWKzIWnhg4j8TkA/IQsM5Ulx+frkPkrZmLnmLZN5K6cWqruZLl/mB6VFvnuGNBwaYq5ADMD8LpIt8LYlmHZ/zOaE04ti3rOvaOHxG+ncMkloeeke+82ismFZsI/X15F4yawUKR74lnAS5u8BfY2P+Jqko1D+15WKg="
# DATADOG_API_KEY
- secure: "IDSCI7WXoTowmqcPM6Ip5I8iNu+utvLgzhpuI55Imi0kT6DEgqhYmRzHGY2AfSNKlhClYiGSGzWfqub3/0KyxXSkJB7VcqPQR6CToRfR9zgnu92e9yqmOwMsi5wXxQ0ZRt8l2Oh+WiTtLjGwkD3bvUAHDq2fk9bU7aE03562MTE="
before_install:
# get newer version of docker-compose for variable substitution in compose files
- curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv -v docker-compose /usr/local/bin/
install:
- mkdir -p $TRAVIS_BUILD_DIR/docker-volumes
before_script:
- docker version
- docker-compose version
script:
# workaround for env vars
- export TRAVIS_HQ_USERNAME=$TRAVIS_HQ_USERNAME
- export TRAVIS_HQ_PASSWORD=$TRAVIS_HQ_PASSWORD
- export DATADOG_API_KEY=$DATADOG_API_KEY
- scripts/docker test --noinput --stop --verbosity=2 --divide-depth=1 --with-timing --threshold=10
after_success:
# create symlink so artifacts are available
- sudo ln -s $(pwd) /mnt/commcare-hq-ro
services:
- docker