-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
142 lines (140 loc) · 5.89 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Big Thank You to https://github.com/cclauss/Travis-CI-Python-on-three-OSes/blob/master/.travis.yml
language: python # this works for Linux but is an error on macOS or Windows
matrix:
include:
- name: "Python 2.7 Linux"
os: linux
python: 2.7
addons:
apt:
packages:
- graphviz
before_install:
- pip install supervisor # Optional, needed for events generators.
- pip install demangler pyelftools
- name: "Python 3.6 Linux"
os: linux
python: 3.6
addons:
apt:
packages:
- graphviz
before_install:
- pip install supervisor # Optional, needed for events generators.
- pip install demangler pyelftools
- name: "Python 3.7.5 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
# python: 3.7 # 'python:' is ignored on Travis CI Windows
before_install:
# https://travis-ci.community/t/windows-python-pip-module-not-found/5480/4
##- choco install python --version 3.7.5
##- python -m ensurepip
# Suddenly: "python -m pip install --upgrade pip" failed and exited with 1 during"
# No module named pip
### - python -m pip install --upgrade pip
# This seems to run on Linux.
- echo "In before_install"
- choco install python --version 3.7.5
# /c/Users/travis/build/rchateauneu/survol
- pwd
# /c/ProgramData/chocolatey/bin/python
- which python
- dir `which python`
# Python 2.7.9
- python -V
#- which python3
#- python -m ensurepip
#- choco install pip
#- pip install pytest
#- python -m pip install pytest
#- python -m pip install --upgrade pip
#- python -m pip install pytest # Optional
#- python -m pip install pefile # Optional
#- python -m pip install wmi # Optional
#- python -m pip install pywin32 # Optional
#- python -m pip install pyodbc # Optional
#- python -m pip install supervisor-win # Optional, needed for events generators.
install:
# Is it possible to have an install step specific to a platform ?
- echo "In install"
#- which python
#- python -V
#- powershell python -V
#
# https://kendaleiv.com/using-sql-server-localdb-with-travis-ci-windows-builds/
# Travis CI now includes support for Windows builds.
# It doesn’t have SQL Server LocalDB installed by default currently, but it’s easy to install.
# More explanations about
# https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb
# Here’s an example Travis CI configuration that installs it using Chocolatey:
#
# Use mssqlserver2014-sqllocaldb rather than sqllocaldb package which has an issue:
# https://dba.stackexchange.com/questions/191393/localdb-v14-creates-wrong-path-for-mdf-files
#
# TODO: Must be tested.
#
# https://community.chocolatey.org/packages?q=SqlServer
#
# OK: choco install mssqlserver2014-sqllocaldb
# "was not successful. Exit code was '-2146233079'": choco install sql-server-express -y
# No output has been received in the last 10m0s
# - choco install sqlserver2014express
#- powershell -Command "Set-ExecutionPolicy Bypass"
#- choco install sqlserver2014express -v -y
#
# This installs a couple of drivers but these are not used yet,
# despite many attempts to install an ODBC-based databse on Windows.
- choco install sqlserver-odbcdriver
# List of services
- powershell Get-Service
#
#
# env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
script:
- echo "In script"
- python -V
- powershell python -V
#
- python -m pip install --upgrade pip
# Specific to Windows.
- pip install pytest
- pip install pefile # Optional
- pip install wmi # Optional
- pip install pywin32 # Optional
- pip install pyodbc # Optional
- pip install supervisor-win # Optional, needed for events generators.
#
# For all platforms.
- pip install psutil # Mandatory
- pip install rdflib # Mandatory
- pip install SQLAlchemy==1.3.23 # 1.4 does not work with rdflib-sqlalchemy:0.4.0
- pip install rdflib-sqlalchemy # Optional, needed for events generators.
- pip install SPARQLWrapper # Optional
- pip install pywbem # Optional
- pip install sqlparse # Optional
- pip install natsort # Optional, needed for nicer sorts.
- pip install twisted # Optional
#
# Do it elsewhere than Linux.
- pytest -v --durations=30 tests
#
#services:
# # https://docs:travis-ci.com/user/database-setup/
# #- MSSQLServer
# #- SQLEXPRESS
# - MSSQL$SQLEXPRESS
install:
# TODO: For all platforms but overriden by Windows configuration.
- pip install psutil # Mandatory
- pip install rdflib # Mandatory
- pip install SQLAlchemy==1.3.23 # 1.4 does not work with rdflib-sqlalchemy:0.4.0
- pip install rdflib-sqlalchemy # Optional, needed for events generators.
- pip install SPARQLWrapper # Optional
- pip install pywbem # Optional
- pip install sqlparse # Optional
- pip install natsort # Optional, needed for nicer sorts.
- pip install twisted # Optional
script:
- pytest -v --durations=30 tests