-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (56 loc) · 1.58 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
sudo: true
dist: trusty
services:
- docker
addons:
sonarcloud:
organization: "marcocaballero-github"
token:
secure: "$SONAR_TOKEN"
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
jobs:
include:
- stage: Frontend & Backend Unit Testing Phase
language: java
jdk: oraclejdk8
before_script: cd testlink-plugin
script: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
- # stage name not required, parallel jobs
language: node_js
node_js: "8.11.1"
before_script:
- cd testlink-plugin-gui
- npm i -g karma
- npm i
script: karma start karma.conf.js --single-run
- # stage name not required, parallel jobs
language: node_js
node_js: "8.11.1"
before_script:
- cd testlink-plugin-gui
- npm i
script: npm run e2e
- stage: Build & Release Docker images
language: python
python: "2.7"
before_script:
- pip install termcolor
script:
- cd docker
- python build.py --frontend --backend
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- chmod u+x deploy_stable.py
- chmod u+x deploy_version.py
- if [[ $TRAVIS_COMMIT_MESSAGE == *"[--deploy-DockerHub]"* ]];
then python deploy_stable.py;
else python deploy_version.py;
fi;