Sfoglia il codice sorgente

Stand-up X-API in development mode

Signed-off-by: Cen Ge <cge@corelogic.com>
Signed-off-by: Dan Neumann <dan@bestangle.com>
Signed-off-by: John Ryan <jtigger@infosysengr.com>
Bronwyn Perry-Huston 10 anni fa
parent
commit
c232bccaa6
3 ha cambiato i file con 14 aggiunte e 5 eliminazioni
  1. 4
    0
      .travis.yml
  2. 9
    5
      bin/journey-setup.sh
  3. 1
    0
      x-api

+ 4
- 0
.travis.yml Vedi File

@@ -5,6 +5,10 @@ jdk:
5 5
 
6 6
 # http://docs.travis-ci.com/user/migrating-from-legacy
7 7
 sudo: false
8
+cache: bundler
9
+before_install:
10
+  - rvm install 2.2.1
11
+  - rvm use 2.2.1
8 12
 
9 13
 script:
10 14
   - bin/journey-setup.sh

+ 9
- 5
bin/journey-setup.sh Vedi File

@@ -1,14 +1,18 @@
1 1
 #!/bin/bash
2 2
 
3
-rvm install 2.2.1
4
-rvm 2.2.1 do rvm env --path
5
-source $(rvm 2.2.1 do rvm env --path)
6
-
7 3
 git clone https://github.com/exercism/x-api
8 4
 cd x-api
5
+git submodule init -- metadata
9 6
 git submodule init -- tracks/java
10 7
 git submodule update
11 8
 
12 9
 gem install bundler
13 10
 bundle install
14
-rackup
11
+
12
+RACK_ENV=development rackup&
13
+
14
+sleep 5
15
+
16
+ps aux | grep rackup
17
+
18
+curl -i 'localhost:9292/tracks/java/hello-world'

+ 1
- 0
x-api

@@ -0,0 +1 @@
1
+Subproject commit eecf15a0af868a1611e7e5b82cdb955beb9a8605