on master help sign in
clean up based agentm's comments
3602928hughjfchen
DevOps/local/test/build/prepare.sh−28
@@ -78,32 +78,4 @@ if ! type cabal >/dev/null 2>&1; then
78 nix-env --install cabal-install
78 nix-env --install cabal-install
79fi
79fi
80
80
81−if ! type nodejs >/dev/null 2>&1 && ! type node >/dev/null 2>&1; then
82− info "no nodejs found, trying to install it"
83− case ${THE_DISTRIBUTION_ID} in
84− debian)
85− curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
86− sudo apt-get update
87− sudo apt-get install -y nodejs
88− ;;
89− ubuntu)
90− curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
91− sudo apt-get update
92− sudo apt-get install -y nodejs
93− ;;
94− Darwin)
95− if type brew > /dev/null 2>&1; then
96− brew install node@10
97− else
98− curl "https://nodejs.org/dist/latest-v10.x/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest-v10.x/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest-v10.x.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest-v10.x.pkg" -target "/"
99− fi
100− ;;
101− rhel|centos)
102− curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
103− sudo yum install -y nodejs
104− ;;
105− *) ;;
106− esac
107−fi
108−
109done_banner "Top level" "build prepare"
81done_banner "Top level" "build prepare"
DevOps/local/test/build/unprepare.sh−21
@@ -31,25 +31,4 @@ if type nix-build >/dev/null 2>&1; then
31 [[ -f $HOME/.bashrc ]] && sed -i.nix.uninstall.bak '/.nix-profile/d' $HOME/.bashrc
31 [[ -f $HOME/.bashrc ]] && sed -i.nix.uninstall.bak '/.nix-profile/d' $HOME/.bashrc
32fi
32fi
33
33
34−if type nodejs >/dev/null 2>&1 || type node >/dev/null 2>&1; then
35− info "nodejs found, trying to uninstall it"
36− case ${THE_DISTRIBUTION_ID} in
37− debian|ubuntu)
38− sudo apt-get purge -y nodejs
39− ;;
40− Darwin)
41− if type brew > /dev/null 2>&1; then
42− brew uninstall node@10
43− brew unlink node@10
44− else
45− info "Use your macOS finder to uninstall the nodejs package."
46− fi
47− ;;
48− rhel|centos)
49− sudo yum erase -y nodejs
50− ;;
51− *) ;;
52− esac
53−fi
54−
55done_banner "Top level" "build unprepare"
34done_banner "Top level" "build unprepare"
ci/DevOps/local/test/deploy/Dockerfiledeleted−3
@@ -1,3 +0,0 @@
1−FROM depent_1:tag_1
2−RUN localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8
3−ENV LANG zh_CN.UTF-8