install.sh: autodep, improve note (#22)

* install.sh: --auto

* ci: test --auto

* ci: remove dep when test --auto

* debug

* ok. improve the install notes
This commit is contained in:
2022-11-08 22:58:17 +08:00
committed by GitHub
parent 5b00add073
commit 6dce3cfa18
3 changed files with 83 additions and 12 deletions

View File

@@ -9,8 +9,8 @@ jobs:
steps:
- name: install dependencies
run: |
sudo apt update
sudo apt install -y git python3 python3-pip zsh curl inetutils-ping
sudo apt-get update
sudo apt-get install -y git python3 python3-pip zsh curl inetutils-ping
sudo pip3 install requests
- name: checkout repo
@@ -22,8 +22,8 @@ jobs:
run: |
rev=`git rev-parse HEAD`
pwd
export DFS_NO_COMPILE=1 DFS_DEV=1
./install.sh
export DFS_NO_COMPILE=1
./install.sh -d
test `git rev-parse HEAD` = "$rev"
- name: antigen build
@@ -70,8 +70,8 @@ jobs:
run: |
rev=`git rev-parse HEAD`
pwd
export DFS_NO_COMPILE=1 DFS_DEV=1
./install.sh
export DFS_NO_COMPILE=1
./install.sh -d
test `git rev-parse HEAD` = "$rev"
- name: antigen build
@@ -97,4 +97,32 @@ jobs:
- name: run tests
shell: /bin/zsh -ileo PIPE_FAIL {0}
run: source tools/test.zsh
run: source tools/test.zsh
test-autodep:
name: test of auto-install dependencies
runs-on: ubuntu-latest
steps:
- name: remove dependencies
run: |
sudo apt-get -y remove curl vim
- name: checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install dfs
run: |
rev=`git rev-parse HEAD`
export DFS_NO_COMPILE=1
./install.sh -d -a
test `git rev-parse HEAD` = "$rev"
- name: antigen build with DFS_NO_WALL
shell: /bin/zsh -ileo PIPE_FAIL {0}
env:
DFS_NO_WALL: 1
run: |
echo $SHELL
antigen list