Skip to content

Commit 83e6d15

Browse files
authored
Merge pull request #4 from sergerdn/feature/travis-js
add make test-js to Travis, minor modification in gulp build
2 parents 69f2123 + 50fe03b commit 83e6d15

4 files changed

Lines changed: 248 additions & 223 deletions

File tree

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,41 @@ jobs:
1010
env: TOXENV=py37
1111
addons:
1212
postgresql: "9.4"
13+
chrome: stable
14+
services:
15+
- xvfb
1316
- name: "python3.7-postgresql-10-bionic"
1417
dist: bionic
1518
language: python
1619
python: "3.7"
1720
env: TOXENV=py37
1821
addons:
1922
postgresql: '10'
23+
chrome: stable
2024
apt:
2125
packages:
2226
- postgresql-10
2327
- postgresql-client-10
2428
- postgresql-server-dev-10
2529
services:
2630
- postgresql
31+
- xvfb
2732
- name: "python3.8-postgresql-12-focal"
2833
dist: focal
2934
language: python
3035
python: "3.8"
3136
env: TOXENV=py38
3237
addons:
3338
postgresql: '12'
39+
chrome: stable
3440
apt:
3541
packages:
3642
- postgresql-12
3743
- postgresql-client-12
3844
- postgresql-server-dev-12
3945
services:
4046
- postgresql
47+
- xvfb
4148

4249
cache:
4350
directories:
@@ -53,6 +60,9 @@ env:
5360
# https://github.com/travis-ci/travis-ci/issues/5246#issuecomment-166460882
5461
- BOTO_CONFIG=/doesnotexist
5562

63+
before_install:
64+
- export CHROME_BIN=/usr/bin/google-chrome
65+
5666
before_script:
5767
- sudo systemctl stop postgresql
5868
# the port may have been auto-configured to use 5433 if it thought 5422 was already in use,
@@ -64,8 +74,9 @@ before_script:
6474
- psql -c "create user lemur with password 'lemur;'" -U postgres
6575
- psql lemur -c "create extension IF NOT EXISTS pg_trgm;" -U postgres
6676
- npm config set registry https://registry.npmjs.org
67-
- npm install -g bower
77+
- npm install -g npm@latest bower
6878
- pip install --upgrade setuptools
79+
- export DISPLAY=:99.0
6980

7081
install:
7182
- pip install coveralls
@@ -74,6 +85,7 @@ install:
7485
script:
7586
- make test
7687
- bandit -r . -ll -ii -x lemur/tests/,docs
88+
- make test-js
7789

7890
after_success:
7991
- coveralls

0 commit comments

Comments
 (0)