forked from nextcloud/appstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 972 Bytes
/
.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
dist: xenial
sudo: false
language: python
python:
- "3.5"
- "3.6"
- "3.7"
env:
matrix:
- DB=postgres
matrix:
include:
- python: 3.5
env: DB=sqlite
branches:
only:
- master
before_install:
- nvm install 12
- if [[ "$DB" == "postgres" ]]; then psql -c 'create database nextcloudappstore;' -U postgres; fi
# install geckodriver for frontend tests
- wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz -O geckodriver.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
install:
- npm -g install yarn
- make dev-setup db="$DB" venv_bin=""
- make l10n venv_bin=""
- yarn add tslint
script:
- ./node_modules/.bin/tslint "./nextcloudappstore/core/static/assets/**/*.ts"
- make test venv_bin=""
after_success:
- coveralls
services:
- postgresql
- xvfb
addons:
firefox: "latest"
postgresql: "9.5"