Skip to content

Commit

Permalink
config travis CI
Browse files Browse the repository at this point in the history
Travis Badge is added and JB badge made plastic.
  • Loading branch information
valich committed Sep 13, 2017
1 parent a5300a9 commit 07bb221
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: ruby
dist: trusty
os:
- linux
- osx

rvm:
- 2.3.3
- 2.4.0

services:
- mysql

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mysql; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mysql.server start; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mysql -u root -e "CREATE USER 'travis'@'127.0.0.1' IDENTIFIED BY '';"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mysql -u root -e "FLUSH PRIVILEGES;"; fi
- mysql -u root -e 'CREATE DATABASE ruby_type_contracts;'
- mysql -u root -e 'GRANT ALL ON ruby_type_contracts.* TO 'travis'@'127.0.0.1';'
- cd arg_scanner

script:
- gem install rake
- rake test
- rake install
- cd ..
- travis_wait 40 ./gradlew tasks
- ./gradlew -Dmysql.user.name=travis -Dmysql.user.password="" test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Automated Type Contracts Generation [![JetBrains incubator project](http://jb.gg/badges/incubator-flat-square.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
Automated Type Contracts Generation [![JetBrains incubator project](http://jb.gg/badges/incubator.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) [![Build Status](https://travis-ci.org/JetBrains/ruby-type-inference.svg?branch=master)](https://travis-ci.org/JetBrains/ruby-type-inference)
===================================

`ruby-type-inference` project is a completely new approach to
Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ buildscript {
}
}


allprojects {
repositories {
mavenCentral()
Expand Down Expand Up @@ -38,6 +37,13 @@ allprojects {
jvmTarget = '1.8'
}
}

test {
systemProperties System.properties
testLogging {
exceptionFormat = 'full'
}
}
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import org.jetbrains.ruby.runtime.signature.server.SignatureServer
class SignatureService {
init {
Database.connect("jdbc:mysql://localhost:3306/" + "ruby_type_contracts" + "?serverTimezone=UTC&nullNamePatternMatchesAll=true&useSSL=false",
driver = "com.mysql.cj.jdbc.Driver", user = "rubymine", password = "rubymine")
driver = "com.mysql.cj.jdbc.Driver",
user = System.getProperty("mysql.user.name", "rubymine"),
password = System.getProperty("mysql.user.password", "rubymine"))
transaction {
SchemaUtils.create(GemInfoTable, ClassInfoTable, MethodInfoTable, SignatureTable)
}
Expand Down

0 comments on commit 07bb221

Please sign in to comment.