forked from OWASP/Maturity-Models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (65 loc) · 5.2 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
sudo: required
services:
- docker
language: node_js
node_js:
- "5"
git:
submodules: false
env:
global:
- secure: "UnkjMMD5WA19zORlk1LECpO1GZfWvuM0WcVmougiuwlQhTPv697UMA1NEmTXNzMgF5DTEHNaBiIr9Q75woOzXnjJsTizsyUpwAQHP//s6ZTfuof3EUAQg3rX9tGj/KFHG3VuvDOlCnF6R1hc86jLTRL61DiWP/4+Q9Wn8JXeicPS2eI8ga+fVyTvgLtYZ//e+egyYK32dZyqvT0mlfFEpLBnMVmYzzi9SSHBu2otLLTvEray90V2afNamiqvb4Wwc9hGJF4fLZfMF8vuPqFztnA2imOdCtd1D3PZ6tNp3cXalqggn6aqkXwDoCZzmO3CHfLqIEqZuCeas0bwccApu5ZL14b/b618jwU9hoXhFHr+eZZxjoYqD0wRyJFH2fxbOWPzXJ05fpwY2s5Avflh7g1qhDmPsqc/O9SyplKqSvCeXdf+im/fesbZuzU1dDqX8ZXQFY4EK4ye+fORWzda/0Ltc0HMBVB44kz7wXbYlYT+10IqUZH7xidRVTAWRjpvUD1UzrJFr6N/WA2CQXUBr/VHbi23kVPoysZaZxZ2f9frfp0NNfUflMQhiKYiFuPf7D7j4DVLUX0QlUpmhTTGUsdodNpgTbvTszf7+vRHgLa4FbESn/ISbtOaFyIvqYTssezo8KAUrK50ABWKH0kt3VFydRQ61Qab5slVDl+NOBo="
- secure: "F2TFYlVRGMb7u95e2wO8s1sG2ChZm/R3a2rxymXTcAif6m9ocpI6M7pWhgfLzR+ZHb9AOgCpbn0NcDHHSuBgYQjm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fJM7Jp3jY8kWhkL1p6A1Tr8gFO0hz5vwGEE+gQovXSK4OuFA1BQjUVcwdLbA3k+Df3449JETi+H4/YOeHaSTEb0kmPRj+2mAfBhLLADQCoylmM6lTvomuHm7cDXttuYowO+8GGCSQ1JDUV4u9gIP4sUQvHZcjqb0YdMvleB5Z9HJQmMVDxV1yEhFGZPcaQ+ti65esJJJQ75BBaWcFs72s7HPz41LnHgIlAfdzfRlrg8gQlh4f7+V2ieWJUeDSXtDZG4WIEtJ6W4v3bizfrv1hImRRNA5+APonx76VCgNZgzlAqnL7zgWYFnnZGM4EgA33Q36Rwg97UX3oiNweprQE32yiO4XkWrLFZKpYfmoqCryWZKvTHAzE5k6NmIeTPESlOQ3uhrVFUaE5QLkIQzaWXt9rfJix6IGgEzfEchhrqYsPdxXDO7ySU2VLR+g8ryhXclFaqI/9XOCF1J8O1fJB8sIfheh53tJ6xF+PpZzu4="
before_install:
- cat .gitmodules
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- cat .gitmodules
- git submodule update --init --recursive
before_script:
- cd code/api
- npm install
- cd ../ui
- npm install
- npm install -g bower
- npm install -g gulp
- bower install
- gulp
- cd ../..
script:
- echo ">>>>> Running core tests<<<<<"
- npm test
- echo ">>>>> Running UI tests<<<<<"
- cd code/ui
- npm test
- cd ../..
after_success:
- echo ">>>>> Updating Dev fork <<<<<"
- git remote add upstream https://DinisCruz-Dev:[email protected]/DinisCruz-Dev/Maturity-Models.git
- git push -f upstream
- echo ">>>>> Building DOCKER IMAGE and pushing it go Docker Hub <<<<<"
- echo 'building docker image'
- docker images
- docker build -t diniscruz/maturity-models .
- docker images
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push diniscruz/maturity-models
- echo ">>>>> Running core tests (on deployed Docker server)<<<<<"
- cd code/qa
- npm install --quiet
- npm test
# - echo ">>>>> Cloning Maturity-Models-QA, adding extra commit and pushing it to Maturity-Models-Dev for <<<<<"
# - cd ..
# - git clone https://github.com/DinisCruz/Maturity-Models-QA.git
# - cd Maturity-Models-QA
# - git remote add upstream https://DinisCruz-Dev:[email protected]/DinisCruz-Dev/Maturity-Models-QA.git
#
# - git config --global user.email "[email protected]"
# - git config --global user.name "Travis Bot"
#
# - git log -n5 --pretty=oneline > travis-git-log.txt
# - git add .
# - git commit -m "Comming files for $(git rev-parse HEAD)"
# - git push --quiet -f upstream master