Selaa lähdekoodia

Optimize the CI run time

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 6 vuotta sitten
vanhempi
commit
7fa89e8ac0
2 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 3 3
      .travis.yml
  2. 3 0
      labours.py

+ 3 - 3
.travis.yml

@@ -15,10 +15,8 @@ addons:
 
 go_import_path: gopkg.in/src-d/hercules.v5
 go:
-  - 1.9.x
   - 1.10.x
   - 1.11.x
-  - tip
 cache:
   directories:
     - $HOME/.cache/pip
@@ -74,7 +72,7 @@ script:
   - (cd contrib/_plugin_example && make)
   - $GOPATH/bin/hercules --burndown --burndown-files --burndown-people --couples --quiet https://github.com/src-d/hercules | python3 labours.py -m all -o out --backend Agg --disable-projector
   - $GOPATH/bin/hercules --burndown --burndown-files --burndown-people --couples --quiet --pb https://github.com/src-d/hercules | python3 labours.py -f pb -m all -o out --backend Agg --disable-projector
-  - $GOPATH/bin/hercules --sentiment --quiet --languages Python https://github.com/src-d/hercules > /dev/null
+  - # $GOPATH/bin/hercules --sentiment --quiet --languages Python https://github.com/src-d/hercules > /dev/null
   - set +e
   - if [[ $TRAVIS_GO_VERSION = 1.10.* ]]; then bash <(curl -s https://codecov.io/bash); fi
 
@@ -83,6 +81,8 @@ jobs:
     - stage: test
       language: generic
       env: DOCKER_BUILD=1
+      before_install: skip
+      install: skip
       script: docker build -t srcd/hercules .
     - stage: deploy
       os: osx

+ 3 - 0
labours.py

@@ -942,6 +942,9 @@ def train_embeddings(index, matrix, tmpdir, shard_size=IDEAL_SHARD_SIZE):
         else:
             embedding_size = 300
             num_epochs = 300
+        if os.getenv("CI"):
+            # Travis, AppVeyor etc. during the integration tests
+            num_epochs /= 10
         swivel.FLAGS.embedding_size = embedding_size
         swivel.FLAGS.input_base_path = tmproot
         swivel.FLAGS.output_base_path = tmproot