forked from openimis/openimis-be_py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 5.44 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
language: python
sudo: required
dist: bionic
services:
- docker
python:
- '3.7'
env:
matrix:
- DJANGO=2.1 DB=default DB_HOST=localhost DB_PORT=1433 DB_NAME=test_db DB_USER=sa
DB_PASSWORD=t3sts3cr3tp@ss
global:
- secure: XttJxJtwP5w5uX5ZacKLXMhgSzEUlaRj5mf1tJ2tYt9XY9y4iYCnUOe32S5r3VNnhg5zULcK7UVL2DtwTJUD2Pno/3b1xGnlpPhsJUXpw/G8tSSFstAi3lPAPShXnQspZeMGfTV/cMHCAXEXWnqGeIQUDjaE//JrSCNRFKdwqiCZ0QUMD+loBJsvZxgcEbwnumSPNoqUatZJ7kGTlU17pOVMRjuUmaqi1GYTp5xYbN92xsSyVuNFATFhEhuBSHOcVbmNDoYByNMHIgnajHzw22Awe94Ssp9oXkaQjx4/inT3pAWac7qOWxYmJvNZvLkteMU4F8ucyrjWusxHsSdH3tv8d4SmT6BWsnA9epNsFgVTBs0IPJrUluDXkFwrV82ClQODCK8sS4GFEWsbpSTQSWhxGVdmfzeie8mUpSiOtDUFGeM2m5QiwXkF9vCL9nt20XkamR8FlamEf+KbVGsQBbiB+y7zqdMHY0C7l2w/GSgEjXL558Wf1hDo/TLRoxnuvwRaA8E+LxIa3xoM9N/4WWoKgtkW89ZwSsZ+so6127bQ9Q3iyF7UtEJRcA6pUw3fOWtQlsfBEUPrOVr98CoHxRQVQYiEP+cI3RnZNx1AFk3JQi5YEp4Uk42CB0KRSW9A27W2PpqpE4sE3NnrcCWhQQ4Yc6LgZv9H9W5us4pIVQI=
- secure: rYjehYKLirbLJFEY7Di4Nnmu/H0znm0B/garZOKZnKOMyJ+b08OSN0JwtnNn+6tmyQnX+dEHR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ltpnLPUwrIpdN/wenvPbpeCCZYQELOoQajD2POM+oJ6lk4dEwUzRbvG7cbZF7Uu+itSy8ha7OkmTlPQJ4t8ZzSIttv0Fx4dykz1CIH6KJSuRjjdHdQEYI5Rz88D7EtE=
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee -a
/etc/apt/sources.list
- sudo apt-get update
# - sudo apt-get upgrade -y libstdc++6 libssl-dev
- sudo apt-get install -y apt-transport-https ca-certificates
# Necessary for some pip modules
- sudo apt-get install -y rustc cargo
- ACCEPT_EULA=Y sudo apt-get install -y msodbcsql17 odbcinst mssql-tools mssql-cli
- sudo ln -s /opt/mssql-tools/bin/sqlcmd /usr/bin/sqlcmd
- sudo apt-get install -y python3-dev unixodbc-dev
- "./script/launch-mssql-in-docker.sh -p $DB_PASSWORD"
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- sudo mv cc-test-reporter /usr/local/bin/
before_script:
- pip install -r requirements.txt
- python modules-requirements.py openimis.json > modules-requirements.txt
- pip install -r modules-requirements.txt
script:
- python modules-tests.py openimis.json > modules-tests.sh
- cd openIMIS
- source ../modules-tests.sh