-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 2.13 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
language: java
jdk:
- openjdk11
sudo: required
services:
- docker
- mysql
- redis-server
env:
global:
- MYSQL_USER="root"
- MYSQL_HOST="127.0.0.1"
- MYSQL_DB="qicoo2db"
- MYSQL_PORT="3306"
- REDIS_HOST="localhost"
- REDIS_PORT="6379"
- DOCKER_REPO='cndjp/qicoo-api-kt'
- secure: I1f+kycoJXcz9gzgKN6Ym/WkwR+79brUvS01eq4F2CfmMyDvM9Ddr0CUhTDgbATSlCeGoKrzEtbvwiuwRMQACqoqdKsqLavK7lIRbg4QfDxxxYBA64NbaWEK9XDHVYGljfujgI18vJXcgEuAqNTklXBIfX8L+WT0/hcUSlh/10ola9UEv0HJtbUI/jHZWqd+tLDyExsScNasG3sJ0dOcF6PMQG2qGOC7ibNI3Q1w4Qr/KQ8ZDKi4ghITe5LyDF+m2H1YkaC3Udabc+8a9wLrtMhYMYEiP1TKZpPIqz+swPAIS6Cng6OmtG6/J3dkv9oCvNzh9p+lDw3EeW5evFAf585WMXGExU0KdK5puTBu1IPrzKG+y45eI1IhpdLFURGXbW7JyFb/6Vtu8LGsuE59cdhseycLVHGqCr4ihzYjJQk2hWAM+Bim+hEEimDDsYkMLoeD/YMVthcs8aSD6787SAMlOMMoIn/t9oi1kKUP87cbQHFsu3NOyIs0+yHtrld4IlOjXmghQjd76W+1+SU/VHijBroWRYm0DwTk7SdeJUeJNVXQc9ppzF/IkN2Ahch/axLBZbkAUfcx2y5O4ynMvbtfMMUErCqo8NYzLxLTfRLtSq2Ek5vZJt3HdvqoP5YaaRicjLGQj8nkQKKPgR1lmHQ7ZWOsERwf9t3e1jx9/tQ=
before_install:
- export TZ=Asia/Tokyo
- curl -s api.sdkman.io | bash
- source /home/travis/.sdkman/bin/sdkman-init.sh
- sdk list gradle
- sdk install gradle 5.6.2
- sdk default gradle 5.6.2
before_script:
- echo ${DOCKERHUB_PASSWORD} | docker login -u cndjpintegrate --password-stdin
- echo 'Asia/Tokyo' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend noninteractive tzdata
- date
- mkdir /opt/bin
- curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git casey/just
--target x86_64-unknown-linux-musl --to /opt/bin/
- export PATH=/opt/bin:$PATH
- just version
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
- echo "CREATE DATABASE IF NOT EXISTS ${MYSQL_DB}" | mysql -h${MYSQL_HOST} -uroot
- echo 'set global time_zone = "Asia/Tokyo"' | mysql -h${MYSQL_HOST} -uroot
script:
- just test
- just build
- if [[ "${TRAVIS_BRANCH}" = "master" ]]; then just docker-release; else just docker-build; fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
bundler: true
directories:
- "${HOME}/.gradle/caches/"
- "${HOME}/.gradle/wrapper/"
- "${HOME}/.android/build-cache"