File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cd ../testrepo
5
5
6
6
bold " Test: It should compile"
7
7
8
- if rewatch clean ;
8
+ if rewatch clean & > /dev/null ;
9
9
then
10
10
success " Repo Cleaned"
11
11
else
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ exit_watcher() {
19
19
}
20
20
21
21
rewatch_bg watch > /dev/null 2>&1 &
22
- echo " Started watcher in background"
23
22
24
23
sleep 1
25
24
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ export REWATCH_EXECUTABLE
13
13
source ./utils.sh
14
14
15
15
bold " Rescript version"
16
- (cd ../testrepo && yarn rescript -v)
16
+ (cd ../testrepo && ./node_modules/.bin/ rescript -v)
17
17
18
18
# we need to reset the yarn.lock and package.json to the original state
19
19
# so there is not diff in git. The CI will install new ReScript package
20
20
bold " Reset package.json and yarn.lock"
21
- git checkout ../testrepo/yarn.lock
22
- git checkout ../testrepo/package.json
21
+ git checkout ../testrepo/yarn.lock & > /dev/null
22
+ git checkout ../testrepo/package.json & > /dev/null
23
23
success " Reset package.json and yarn.lock"
24
24
25
25
bold " Make sure the testrepo is clean"
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ success() { echo -e "- ✅ \033[32m$1\033[0m"; }
4
4
error () { echo -e " - 🛑 \033[31m$1 \033[0m" ; }
5
5
bold () { echo -e " \033[1m$1 \033[0m" ; }
6
6
rewatch () { RUST_BACKTRACE=1 $REWATCH_EXECUTABLE --no-timing=true $@ ; }
7
+ rewatch_bg () { RUST_BACKTRACE=1 nohup $REWATCH_EXECUTABLE --no-timing=true $@ ; }
7
8
8
9
replace () {
9
10
if [[ $OSTYPE == ' darwin' * ]];
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cd ../testrepo
3
3
4
4
bold " Test: It should watch"
5
5
6
- if rewatch clean ;
6
+ if rewatch clean & > /dev/null ;
7
7
then
8
8
success " Repo Cleaned"
9
9
else
@@ -16,7 +16,7 @@ exit_watcher() {
16
16
rm lib/rewatch.lock
17
17
}
18
18
19
- rewatch watch &
19
+ rewatch_bg watch > /dev/null 2>&1 &
20
20
success " Watcher Started"
21
21
22
22
echo ' Js.log("added-by-test")' >> ./packages/main/src/Main.res
You can’t perform that action at this time.
0 commit comments