1 Star 0 Fork 0

dz617/cat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.23 KB
一键复制 编辑 原始数据 按行查看 历史
wangyapu 提交于 2019-07-22 14:01 . modify travis, build with jdk8
language: java
jdk:
- openjdk8
cache:
bundler: true
directories:
- /home/travis/.m2
sudo: false # faster builds
services:
- mysql
before_install:
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- mysql -e 'CREATE DATABASE IF NOT EXISTS cat;'
- mysql -u root --password="" cat < script/CatApplication.sql
- mkdir -p $HOME/data/appdatas/cat && mkdir -p $HOME/data/applogs
- cp ./docker/datasources.xml $HOME/data/appdatas/cat && export MYSQL_URL="127.0.0.1" && export MYSQL_PORT="3306" && export MYSQL_USERNAME="root" && export MYSQL_PASSWD="" && export MYSQL_SCHEMA="cat" && sed "s# /data/# $HOME/data/#g" ./docker/datasources.sh > $HOME/data/datasources.sh && sh $HOME/data/datasources.sh
- cp ./docker/client.xml $HOME/data/appdatas/cat/
# - echo -e '<?xml version="1.0" encoding="UTF-8"?>\n<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"\n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <localRepository>/home/travis/.m2</localRepository><mirrors>\n <mirror>\n <id>mvnsearch-unavailable</id>\n <name>mvnsearch-unavailable</name>\n <mirrorOf>mvnsearch</mirrorOf>\n <url>http://repo1.maven.org/maven2</url>\n </mirror>\n </mirrors>\n <profiles>\n <profile>\n <id>no-mvnsearch</id>\n <repositories>\n <repository>\n <id>mvnsearch</id>\n <url>http://www.mvnsearch.org/maven2</url>\n <releases>\n <enabled>true</enabled>\n </releases>\n <snapshots>\n <enabled>true</enabled>\n </snapshots>\n </repository>\n </repositories>\n </profile>\n </profiles>\n <activeProfiles>\n <activeProfile>no-mvnsearch</activeProfile>\n </activeProfiles>\n</settings>' > $HOME/.m2/settings.xml
# - cat $HOME/.m2/settings.xml
- bash -c " ls -l ~/.m2 && du -sm ~/.m2/ "
install:
# bash -c "ls -l $HOME/data/appdatas/cat"
export CAT_HOME=$HOME/data/appdatas/cat && mvn install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=warn
script:
#bash -c " ls -l $HOME/data/appdatas/cat "
bash -c " export CAT_HOME=$HOME/data/appdatas/cat && mvn test -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dz617/cat.git
git@gitee.com:dz617/cat.git
dz617
cat
cat
master

搜索帮助