-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
43 lines (35 loc) · 913 Bytes
/
.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
language: java
sudo: false
jdk: openjdk8
addons:
apt:
packages:
- ruby
- nodejs
install: gem install faraday pry pp paint rspec
branches:
except:
- /^add-.*/
services: postgresql
before_script:
- psql -c 'CREATE DATABASE geekapk;' -U postgres
- psql -c "CREATE USER geekapk with password 'a1234567';" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE geekapk TO geekapk;" -U postgres
- chmod +x spectrum.rb
- ruby ./spectrum.rb geekapk_v1b_api.geekspec json
script:
- ruby ./spectrum.rb spectrum_geekapk_v1b_api.json show
- ./gradlew check
- rspec ./spectrum_checks.rb
- pushd geekspec_times_sample
- bundler install
- rake spec
- popd
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/