-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
41 lines (35 loc) · 1 KB
/
.travis.yml
File metadata and controls
41 lines (35 loc) · 1 KB
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
language: ruby
dist: trusty
os:
- linux
# - osx
rvm:
- 2.3.3
- 2.4.2
- ruby-head
matrix:
fast_finish: true
allow_failures:
- rvm: ruby-head
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