on master help sign in
clean up based agentm's comments
commit3602928bc0d68246e58ffb02ea95125637722907 authorhughjfchen <hugh.jf.chen@gmail.com> dateThu 11 Jun 2020, 14:52 (6 years ago) parent2d73f59
3 files changed−52
DevOps/local/test/build/prepare.sh−28 DevOps/local/test/build/unprepare.sh−21 ci/DevOps/local/test/deploy/Dockerfile−3
DevOps/local/test/build/prepare.sh−28
@@ -78,32 +78,4 @@ if ! type cabal >/dev/null 2>&1; then
7878 nix-env --install cabal-install
7979fi
8080
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−
10981done_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
3131 [[ -f $HOME/.bashrc ]] && sed -i.nix.uninstall.bak '/.nix-profile/d' $HOME/.bashrc
3232fi
3333
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−
5534done_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