forked from E2OpenPlugins/e2openplugin-OpenWebif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 1.06 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
language: python
python:
- "2.7"
before_install:
- sudo apt-get install -y closure-compiler nodejs npm
- "npm config set strict-ssl false"
- sudo npm install -g jshint
install:
- pip install -r requirements.txt
- pip install bandit
script:
- python -m compileall -l . -l plugin -l plugin/backport -l plugin/controllers -l plugin/controllers/models
- cheetah compile -R plugin
- python testsuite/evil_eval.py
after_success:
- bandit -r plugin -f html -o bandit.html
- python -m flake8 --ignore=W191,E501,E302 plugin/ --output-file flake8_report.txt
- jshint ./sourcefiles/js/ | tee jshint1_report.txt
- jshint ./sourcefiles/themes/absb/js/ | tee jshint2_report.txt
- ./create_ipk.sh
- export PKG=$(ls -1 *.ipk)
- mkdir Rel
- touch ./Rel/.nojekyll
- mv "${PKG}" ./Rel
- mv bandit.html ./Rel
- mv flake8_report.txt ./Rel
- mv jshint1_report.txt ./Rel
- mv jshint2_report.txt ./Rel
- cd doc
- make html
- cd build/html
- mv * ../../../Rel/
deploy:
provider: pages
local_dir: Rel
github_token: $GITHUB_TOKEN
skip_cleanup: true
target_branch: gh-pages
on:
branch: master