This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (82 loc) · 2.35 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
branches:
except:
- gh-pages
language: python
os: linux
dist: focal
jobs:
include:
- name: linux python 3.6
python: 3.6
- name: linux python 3.7
python: 3.7
- name: linux python 3.8
python: 3.8
- name: linux python 3.9
python: 3.9
- name: osx
os: osx
language: shell
osx_image: xcode11.6
before_install:
- brew install libxmlsec1 redis
- pyenv install 3.6.13
- pyenv install 3.7.10
- pyenv install 3.8.9
- pyenv install 3.9.4
- pyenv global 3.6.13 3.7.10 3.8.9 3.9.4
before_script:
- sudo rm -rf /usr/local/var/postgres
- initdb /usr/local/var/postgres -E utf8 -U postgres
- brew services start postgresql
- sudo psql -c 'create database atlas;' -U postgres
- brew services start redis
script:
- tox -e clean,py36,py37,py38,py39,cov
- name: windows
os: windows
language: shell
env: PGPASSWORD=12345
before_install:
- choco install postgresql13 --params '/Password:12345'
- choco install python --version 3.9.5
- choco install redis-64
- C:/Python39/python.exe -m ensurepip
install:
- C:/Python39/python.exe -m pip install tox-travis poetry codecov
- cd solr && docker run -d -v "$PWD:/var/solr/mine" -p 8983:8983 --name solr_dev amd64/solr:8; docker exec -it solr_dev bash -c "source /var/solr/mine/setup_cores.sh;"
before_script:
- C:/"Program Files"/PostgreSQL/13/bin/psql.exe -c 'create database atlas;' -U
postgres
- C:/"Program Files"/PostgreSQL/13/bin/psql.exe -c '\l' -U postgres
script:
- C:/Python39/python.exe -m tox -e clean,test,cov
after_success: echo "ok"
- name: browser stack
python: 3.8
env:
- BROWSERSTACK_BUILD_NAME="$TRAVIS_COMMIT"
- BROWSERSTACK_PROJECT_NAME="Atlas-Py"
script:
- tox -e clean,browsertest,cov
after_success:
- codecov -F browsertest
services:
- redis
- docker
addons:
postgresql: '13'
before_install:
- sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
install:
- cd solr && docker run -d -v "$PWD:/var/solr/mine" -p 8983:8983 --name solr_dev solr:8; docker exec -it solr_dev bash -c "source /var/solr/mine/setup_cores.sh;"
- python -m pip install tox-travis poetry codecov
- python --version
script:
- tox -e clean,test,cov
after_success:
- codecov -F unittest
notifications:
email:
on_success: change
on_failure: always