-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
59 lines (55 loc) · 1.78 KB
/
circle.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
52
53
54
55
56
57
58
59
machine:
timezone: UTC
java:
version: oraclejdk8
ruby:
version: 2.2.3
environment:
DB_DATABASE: development
DB_HOST: localhost
DB_USER: postgres
DB_USER_PASS: ""
dependencies:
pre:
- go get github.com/aktau/github-release
- gem install bundler
cache_directories:
- "~/.sbt"
- "target/resolution-cache"
- "target/streams"
- "project/target/resolution-cache"
- "project/target/streams"
override:
- bundle install:
timeout: 360
pwd:
db-migration
- sbt compile test:scalastyle
database:
override:
- bundle exec rake db:create db:migrate RACK_ENV=test_api --trace:
pwd:
db-migration
- bundle exec rake db:create db:migrate RACK_ENV=test_resolver --trace:
pwd:
db-migration
test:
override:
- echo 'We test it with https://github.com/GlobalNamesArchitecture/gnresolver_client for awhile'
post:
- sbt ";resolver/assembly;api/assembly"
- cp resolver/target/scala-2.11/*.jar api/target/scala-2.11/*.jar $CIRCLE_ARTIFACTS/
deployment:
release:
tag: snapshot
commands:
- github-release delete --user GlobalNamesArchitecture --repo gnresolver --tag snapshot ||
echo ''
- github-release release --user GlobalNamesArchitecture --repo gnresolver
--name Snapshot --tag snapshot
- github-release upload --user GlobalNamesArchitecture --repo gnresolver
--tag snapshot --name gnresolver-assembly-0.1.0-SNAPSHOT.jar
--file resolver/target/scala-2.11/gnresolver-assembly-0.1.0-SNAPSHOT.jar
- github-release upload --user GlobalNamesArchitecture --repo gnresolver
--tag snapshot --name gnresolver-api-assembly-0.1.0-SNAPSHOT.jar
--file api/target/scala-2.11/gnresolver-api-assembly-0.1.0-SNAPSHOT.jar