Просмотр исходного кода

Only install ruby if running journey-tests

Logan Stucki 9 лет назад
Родитель
Сommit
6e9bc5d71c
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 3 добавлений и 6 удалений
  1. 3
    6
      .travis.yml

+ 3
- 6
.travis.yml Просмотреть файл

9
   - SCRIPT="bin/build-jq.sh;
9
   - SCRIPT="bin/build-jq.sh;
10
       for file in \`curl -s https://api.github.com/repos/exercism/java/pulls/$TRAVIS_PULL_REQUEST/files | bin/jq -r '.[].filename'\`;
10
       for file in \`curl -s https://api.github.com/repos/exercism/java/pulls/$TRAVIS_PULL_REQUEST/files | bin/jq -r '.[].filename'\`;
11
       do if [[ \$file == exercises* ]] || [[ \$file == config.json ]];
11
       do if [[ \$file == exercises* ]] || [[ \$file == config.json ]];
12
-        then bin/journey-tests.sh;
12
+        then rvm install 2.2.5;
13
+        rvm use 2.2.5;
14
+        bin/journey-tests.sh;
13
         break;
15
         break;
14
       fi;
16
       fi;
15
     done"
17
     done"
22
     packages:
24
     packages:
23
       - tree
25
       - tree
24
 
26
 
25
-before_install:		
26
-  - rvm install 2.2.5		
27
-  - rvm use 2.2.5		
28
-  - bin/build-jq.sh  # we want jq 1.5 features; not avail through pkg repo.
29
-
30
 # https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step
27
 # https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step
31
 install: true  # if we don't skip install, ./gradlew assemble is invoked, but this task is not available.
28
 install: true  # if we don't skip install, ./gradlew assemble is invoked, but this task is not available.
32
 
29