-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
109 lines (90 loc) · 3.34 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
sudo: required
cache:
yarn: True
pip: True
directories:
- .npm
language: python
dist: trusty
branches:
only:
- master
templates:
mariadb: &mariadb DB_PACKAGES=",mysql" DATABASE_URL_ETP="mysql://root@localhost/essarch?isolation_level=read committed"
mysql: &mysql DB_PACKAGES=",mysql" DATABASE_URL_ETP="mysql://root@localhost/essarch?isolation_level=read committed"
postgres: &postgres DB_PACKAGES=",postgres" DATABASE_URL_ETP="postgres://postgres@localhost/essarch?isolation_level=read committed"
matrix:
include:
- env: FLAKE8
python: 3.6
install: pip install flake8==3.7.1
script: flake8
after_script: skip
- python: 3.6
env: REDIS_CLIENT_CLASS="fakeredis.FakeRedis"
- python: 3.6
services: mariadb
env:
- *mariadb
- REDIS_CLIENT_CLASS="fakeredis.FakeRedis"
- python: 3.6
services: mysql
env:
- *mysql
- REDIS_CLIENT_CLASS="fakeredis.FakeRedis"
- python: 3.6
services: postgresql
env:
- *postgres
- REDIS_CLIENT_CLASS="fakeredis.FakeRedis"
- os: windows
language: sh
python: 3.6
env: REDIS_CLIENT_CLASS="fakeredis.FakeRedis"
before_install:
- mkdir -p /c/ESSArch/log/
- wget https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/download/2018-10-03/gtk3-runtime-3.24.1-2018-10-03-ts-win64.exe
- powershell 'Start-Process -FilePath "gtk3-runtime-3.24.1-2018-10-03-ts-win64.exe" -Wait -PassThru -ArgumentList /S'
- choco install python3 --version 3.6.6
- choco install imagemagick
- export PATH="/c/Program Files/GTK3-Runtime Win64/bin:/c/Python36:/c/Python36/Scripts:$PATH"
install: # Workaround for windows since pip install -e in sh on windows doesn't seem to work.
- git clone https://github.com/ESSolutions/ESSArch_Core "$HOME/core"
- python -m pip install --upgrade pip
- powershell 'pip install -e $HOME/core/["tests,s3$DB_PACKAGES"]'
- node_js: "8"
language: node_js
install:
- git clone https://github.com/ESSolutions/ESSArch_Core "$HOME/core"
- export EC_FRONTEND="$HOME/core/ESSArch_Core/frontend"
- cd ESSArch_TP/frontend/static/frontend
- yarn
script: yarn test
after_script: skip
- node_js: "10"
language: node_js
install:
- git clone https://github.com/ESSolutions/ESSArch_Core "$HOME/core"
- export EC_FRONTEND="$HOME/core/ESSArch_Core/frontend"
- cd ESSArch_TP/frontend/static/frontend
- yarn
script: yarn test
after_script: skip
- env: PRETTIER
language: node_js
node_js: "10"
before_install: cd ESSArch_TP/frontend/static/frontend
install: yarn
script: yarn prettier --check "**/*.{js,scss,html}"
after_script: skip
allow_failures: # Temporary allow failure of django tests, until they are fixed
- script: coverage run ESSArch_TP/manage.py test -v2
before_install:
- sudo mkdir -p /ESSArch/log/
- sudo chmod 777 /ESSArch/log/
install:
- git clone https://github.com/ESSolutions/ESSArch_Core "$HOME/core"
- python -m pip install --upgrade pip
- pip install -e $HOME/core/["tests,s3$DB_PACKAGES"]
script: coverage run ESSArch_TP/manage.py test -v2
after_script: bash <(curl -s https://codecov.io/bash) -c -F backend