forked from dbwebb-se/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
113 lines (75 loc) · 2.26 KB
/
.travis.yml
File metadata and controls
113 lines (75 loc) · 2.26 KB
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
110
111
112
113
language: python
python:
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "nightly" # currently points to 3.6-dev
# command to install dependencies
#install: "pip install -r requirements.txt"
# command to run tests
#script: nosetests
sudo: false
git:
submodules: false
addons:
apt:
packages:
#- pylint
#- php-codesniffer
#- phpmd
#- shellcheck
matrix:
allow_failures:
- python: "3.2"
- python: "nightly"
before_script:
# Create a build directory for output
# Store all files in your own bin
- install --directory build/bin
- install --directory build/webroot
- export PATH=$PATH:$PWD/build/bin/
# install pylint
- pip3 install pylint
# Install validation tools
- npm install -g htmlhint csslint jshint jscs jsonlint js-yaml html-minifier@0.8.0 clean-css uglify-js
# Install phpcs
#- curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
#- install --mode 0755 phpcs.phar $PWD/bin/phpcs
# Install phpmd
#- wget -c http://static.phpmd.org/php/latest/phpmd.phar
#- install --mode 0755 phpmd.phar $PWD/bin/phpmd
# Download dbwebb-validate
- wget -O dbwebb-validate https://raw.githubusercontent.com/mosbth/dbwebb-cli/master/dbwebb2-validate
- install --mode 0755 dbwebb-validate $PWD/build/bin/dbwebb-validate
script:
# Check versions of validation tools
- node --version
- npm --version
- pylint --version
- htmlhint --version
- csslint --version
#- jscs --version
#- jshint --version
#- phpcs --version
#- phpmd --version
#- jsonlint --version
- js-yaml --version
#- shellcheck --version
- html-minifier --version
- cleancss --version
- uglifyjs --version
# Run validation & publish
- dbwebb-validate --version
- dbwebb-validate --check
- dbwebb-validate --publish --publish-to build/webroot/ example
notifications:
irc: "irc.freenode.org#dbwebb"
webhooks:
urls:
- https://webhooks.gitter.im/e/e9644e16dba8fa098005
# options: [always|never|change] default: always
on_success: change
on_failure: always
on_start: never