浏览代码

update travis.yml

Daniel Zlotin 8 年前
父节点
当前提交
52c0f9d219
共有 3 个文件被更改,包括 2 次插入12 次删除
  1. 1
    8
      .travis.yml
  2. 1
    0
      playground/scripts/e2e.ios.js
  3. 0
    4
      scripts/clean.sh

+ 1
- 8
.travis.yml 查看文件

8
     - PATH=$PATH:$HOME/.yarn/bin
8
     - PATH=$PATH:$HOME/.yarn/bin
9
     - ANDROID_HOME=$HOME/android-sdk-macosx
9
     - ANDROID_HOME=$HOME/android-sdk-macosx
10
     - PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
10
     - PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
11
-    - YARN_CACHE=$HOME/.yarn-cache
12
 
11
 
13
 git:
12
 git:
14
   depth: 10
13
   depth: 10
20
 
19
 
21
 cache:
20
 cache:
22
   directories:
21
   directories:
23
-    - $YARN_CACHE
22
+    - $HOME/.yarn-cache
24
     - $HOME/.gradle/
23
     - $HOME/.gradle/
25
     - $HOME/.m2
24
     - $HOME/.m2
26
     - $ANDROID_HOME/licenses/
25
     - $ANDROID_HOME/licenses/
32
 before_install:
31
 before_install:
33
   - brew update
32
   - brew update
34
   - brew cask install java
33
   - brew cask install java
35
-  - touch ~/.nvmrc
36
-  - rm -rf ~/.nvm
37
-  - git clone https://github.com/creationix/nvm.git ~/.nvm
38
-  - source ~/.nvm/nvm.sh
39
   - nvm install $NODE_VERSION
34
   - nvm install $NODE_VERSION
40
   - curl -o- -L https://yarnpkg.com/install.sh | bash
35
   - curl -o- -L https://yarnpkg.com/install.sh | bash
41
-  - yarn cache dir
42
 
36
 
43
 install:
37
 install:
44
   - set -e
38
   - set -e
45
-  - ./scripts/clean.sh
46
   - yarn install
39
   - yarn install
47
 
40
 
48
 script:
41
 script:

+ 1
- 0
playground/scripts/e2e.ios.js 查看文件

26
 
26
 
27
 function e2e() {
27
 function e2e() {
28
   try {
28
   try {
29
+    shellUtils.exec.execSyncSilent(`watchman watch-del-all || true`);
29
     shellUtils.exec.kill(`detox-server`);
30
     shellUtils.exec.kill(`detox-server`);
30
     shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
31
     shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
31
     const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
32
     const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;

+ 0
- 4
scripts/clean.sh 查看文件

1
-#!/bin/sh -e
2
-
3
-watchman watch-del-all 2> /dev/null || true
4
-rm -rf "$TMPDIR/react-packager-*" || true