-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
95 lines (83 loc) · 2.04 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
###
### .travis.yml
###
node_js-lint: &node_js-lint
language: node_js
before_script:
- cd website
- npm install --ignore-scripts
script:
- npm run lint
python-lint: &python-lint
language: python
before_script:
- cd website
- pip install -r requirements-dev.txt
script:
- pylint --exit-zero --disable=invalid-name lexonomy.py
lexonomy-userenv-test: &lexonomy-userenv-test
sudo: required
os: linux
language: python
before_install:
- cd website
- python3 --version
- pip3 --version
- sudo apt-get update
- sudo apt-get -y install xsltproc wget
install:
- pip3 install -r requirements.txt
- cp siteconfig.json.template siteconfig.json
- npm install
- |
python3 lexonomy.py &
lexonomy-dockerenv-test: &lexonomy-dockerenv-test
sudo: required
os: linux
services:
- docker
addons:
apt:
sources:
- docker-xenial
env:
DOCKER_VERSION: 17.09.0~ce-0~ubuntu
DOCKER_COMPOSE_VERSION: 1.17.0
before_install:
- sudo apt-get update
- sudo apt-get -y --allow-downgrades install docker-ce=${DOCKER_VERSION}
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- |
make docker-install
make docker-dev &
lexonomy-test-script: &lexonomy-test-script
script:
- wget --server-response --tries=15 --retry-connrefused http://localhost:8000/ -O /dev/null
jobs:
include:
- <<: *node_js-lint
stage: lint
node_js: 12
- <<: *python-lint
stage: lint
python: 3.5
- <<: *python-lint
stage: lint
python: 3.6
- <<: *lexonomy-userenv-test
<<: *lexonomy-test-script
stage: test
python: 3.5
- <<: *lexonomy-userenv-test
<<: *lexonomy-test-script
stage: test
python: 3.6
- <<: *lexonomy-dockerenv-test
<<: *lexonomy-test-script
stage: test
stages:
- test
- lint