This repository has been archived on 2026-01-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ptp/.travis.yml

49 lines
1.1 KiB
YAML

language: java
services:
- mysql
install: true
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
before_install:
- chmod +x gradlew
before_script:
- mysql_upgrade --force -uroot
- mysql -u root -e 'CREATE DATABASE IF NOT EXISTS pandamonium;'
- mysql -u root -e "CREATE USER 'panda'@'localhost' IDENTIFIED BY 'secret';"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* to 'panda'@'localhost';"
- mysql -u root pandamonium < persistence/scripts/mysql/local_development.sql
stages:
- name: Load Database
- name: Build
- name: Unit Tests
- name: Integration Tests
jobs:
include:
- stage: "Load Database"
script: ./gradlew loaddb
- stage: "Build"
script: ./gradlew build
- stage: "Unit Tests"
script: ./gradlew test
- stage: "Integration Tests"
script:
- |
./gradlew :persistence:startPersistenceApi &
APP_PID=$!
- |
./gradlew integrationTest
- kill $APP_PID
- stage: "Sonar Analysis"
script: ./gradlew sonar