Browse Source

run e2e on travis

Daniel Zlotin 7 years ago
parent
commit
2db23754dd
2 changed files with 4 additions and 2 deletions
  1. 1
    2
      .travis.yml
  2. 3
    0
      scripts/test.ios.js

+ 1
- 2
.travis.yml View File

25
   - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
25
   - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
26
 
26
 
27
 install:
27
 install:
28
-  - java -version
29
   - nvm install $NODE_VERSION
28
   - nvm install $NODE_VERSION
30
   - curl -o- -L https://yarnpkg.com/install.sh | bash
29
   - curl -o- -L https://yarnpkg.com/install.sh | bash
31
   - yarn config set cache-folder $YARN_CACHE
30
   - yarn config set cache-folder $YARN_CACHE
37
   - yarn run lint
36
   - yarn run lint
38
   - yarn run test-js
37
   - yarn run test-js
39
   - yarn run test-android
38
   - yarn run test-android
40
-  #- yarn run test-ios
39
+  - yarn run test-ios
41
   - yarn run release
40
   - yarn run release
42
   - set +e
41
   - set +e
43
 
42
 

+ 3
- 0
scripts/test.ios.js View File

2
 
2
 
3
 function run() {
3
 function run() {
4
   process.chdir('./playground');
4
   process.chdir('./playground');
5
+  exec.execSync(`hardlink node_modules/react-native-navigation/ -u || true`);
6
+  exec.execSync(`yarn install`);
7
+  exec.execSync(`yarn run e2e release`);
5
   process.chdir('../');
8
   process.chdir('../');
6
 }
9
 }
7
 
10