forked from OpenArchitex/OpenLearnr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (47 loc) · 2.04 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
os:
- bionic
services:
- docker
language: node_js
node_js:
- '10.16.0'
git:
depth: false
cache:
directories:
- node
- node_modules
- $HOME/.m2
- $HOME/.yarn-cache
env:
global:
- NODE_VERSION=10.16.0
- SPRING_OUTPUT_ANSI_ENABLED=ALWAYS
- SPRING_JPA_SHOW_SQL=false
- JHI_DISABLE_WEBPACK_LOGS=true
- NG_CLI_ANALYTICS="false"
- secure: zmmc/J8/HwIx6iCcK0+t5sZkJN0YMbHbjJawZ+AT3A+gtDtLOSx042pHOnXZmnXc7WRo2sieqB7SXtvMCv2vONW/DR7+x2QwxrS8Y/yG6On7FfTk5NjIe34wpqG8Httfmggc5LLOi8jkiGka8KEGHx32ngnerutt4FbTT5P0gWc6B8NsjJNMlL5ED1elL46xU7q2YebrZH4WfDEOANI6CsojtmU1O1Te3OX2divFpOHq2khZuZPwY1RbP3lyBrQjQbPnBxDaG2+/dtO4yEtbUH0MYu/mBZPKomvhj5mDyOvd1NXy9yCv1tChet4lYm/yzHVSh//gPwqSl4D7zM2F/F++hdF/PjaNl2CB0SnkPRpwFImlTxV/KVd1vPg1mlIvRlQ5/NhVtCHcRamXf2rmHEeNsjFOg9gyOyr2AvTkI3qz1N4r5MqOtFr+JcSk6NpeaRX2IKSMMM4QvoVRXvKToBG8yeDnqB8WPWITJDN70TeGExafp2BALXXYbry65nPPWFmG1gabyHSqz6tY7a/fzPUnzDBKwuzmN1IEf+rL9NWQ6M1PviADrHsRf5OdD58AFd6fVwz/Isa2rO+AWl4mjrtHumxlk4T/YMlK/+guUyuQWkMvS0Ul36NkmN9mq/lOBjbQ4vuW1M2QjQokw3pe9oUzrAd7s8JPsPaVumoAjfo=
before_install:
- java -version
- sudo /etc/init.d/mysql stop
- sudo /etc/init.d/postgresql stop
# Repo for Yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn install
script:
- chmod +x mvnw
- ./mvnw clean verify
- ./mvnw com.github.eirslett:frontend-maven-plugin:yarn -Dfrontend.yarn.arguments='run test' -Dmaven.repo.local=$MAVEN_USER_HOME
- if [ $TRAVIS_PULL_REQUEST == "false" ]; then ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=python-sinhala-education-society -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN; fi
- ./mvnw verify -Pprod -DskipTests
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/260eb3b570873affaad2
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
after_success:
- bash ./deploy.sh;