-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
44 lines (37 loc) · 1.12 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
43
44
sudo: false
language: python
python:
- "2.7"
env:
global:
- DCMTK_VERSION="dcmtk-3.6.1_20150924"
- DCMTK_DB_DIR="dcmtk_dicom_db"
- TESTDATA_DIR="testdata"
- ORTHANC_VERSION="Orthanc-1.1.0"
- secure: tLyIDfETpHCDRyEqF2ROM8ue+D+fl/IeOdFBY/Mov7zhAHpgBdQQJi+HQ1/RK+G7DDsnM/FIjvCcf4etphmBHK3xs8vDM1oPntYs+3iE2AbTcVGglHYoX1++H76xPt3eXyf1S0frgVg6qYCNmuP0chhDUkYXPydcKvq1ANjfTQU= # BUILD_TRIGGER_URL
cache:
pip: true
directories:
- $DCMTK_VERSION
- $DCMTK_DB_DIR
- $TESTDATA_DIR
- $ORTHANC_VERSION
addons:
apt:
packages:
- uuid-dev
before_install:
- ln -s bin $VIRTUAL_ENV/sbin
install:
- pip install -r test/requirements.txt
- pip install .
- ./test/install_deps.sh
script:
- ./test/lint.sh && ./test/test.sh
after_success:
- if [ "$TRAVIS_TAG" ]; then
./docker/build-trigger.sh Tag "$TRAVIS_TAG" "$BUILD_TRIGGER_URL";
fi
- if [ "$TRAVIS_EVENT_TYPE" == "push" -a "$TRAVIS_BRANCH" == "master" ]; then
./docker/build-trigger.sh Branch "$TRAVIS_BRANCH" "$BUILD_TRIGGER_URL";
fi