File tree Expand file tree Collapse file tree 4 files changed +44
-47
lines changed Expand file tree Collapse file tree 4 files changed +44
-47
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ jobs:
370370        shell : bash 
371371
372372      - name : Run rewatch tests 
373-         run : ./rewatch/tests/suite-ci .sh 
373+         run : ./rewatch/tests/suite.sh 
374374        shell : bash 
375375
376376      - name : Run syntax benchmarks 
@@ -667,7 +667,7 @@ jobs:
667667        working-directory : rewatch/testrepo 
668668
669669      - name : Run rewatch integration tests 
670-         run : ./rewatch/tests/suite-ci .sh node_modules/.bin/rescript 
670+         run : ./rewatch/tests/suite.sh node_modules/.bin/rescript 
671671        shell : bash 
672672
673673  publish :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ test-gentype:
4444	make -C tests/gentype_tests/typescript-react-example clean test 
4545
4646test-rewatch :
47- 	./rewatch/tests/suite-ci .sh
47+ 	./rewatch/tests/suite.sh
4848
4949test-all : test test-gentype test-analysis test-tools test-rewatch
5050
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ 
3+ unset  CLICOLOR_FORCE
4+ 
5+ #  Make sure we are in the right directory
26cd  $( dirname $0 ) 
3- ./suite-ci.sh
7+ 
8+ #  Get rewatch executable location from the first argument or use default
9+ if  [ -n  " $1 "   ];  then 
10+   REWATCH_EXECUTABLE=" $1 " 
11+ else 
12+   REWATCH_EXECUTABLE=" ../target/release/rewatch" 
13+   eval  $( node ./get_bin_paths.js) 
14+ fi 
15+ 
16+ export  REWATCH_EXECUTABLE
17+ export  RESCRIPT_BSC_EXE
18+ 
19+ source  ./utils.sh
20+ 
21+ bold " Rescript version" 
22+ (cd ../testrepo &&  ./node_modules/.bin/rescript -v)
23+ 
24+ #  we need to reset the yarn.lock and package.json to the original state
25+ #  so there is not diff in git. The CI will install new ReScript package
26+ bold " Reset package.json and yarn.lock" 
27+ git checkout ../testrepo/yarn.lock & >  /dev/null
28+ git checkout ../testrepo/package.json & >  /dev/null
29+ success " Reset package.json and yarn.lock" 
30+ 
31+ bold " Make sure the testrepo is clean" 
32+ if  git diff --exit-code ../testrepo & >  diff.txt; 
33+ then 
34+   rm diff.txt
35+   success " Testrepo has no changes" 
36+ else 
37+   error " Testrepo is not clean to start with" 
38+   cat diff.txt
39+   rm diff.txt
40+   exit  1
41+ fi 
42+ 
43+ ./compile.sh &&  ./watch.sh &&  ./lock.sh &&  ./suffix.sh &&  ./legacy.sh &&  ./format.sh
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments