diff --git a/.travis.yml b/.travis.yml index 7452d9c..9352656 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,9 @@ branches: install: - rm -rf public || exit 0 - wget -O hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.37.1/hugo_0.37.1_Linux-64bit.tar.gz && tar xzf hugo.tar.gz + - wget https://github.com/mikefarah/yq/releases/download/v4.2.0/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq script: + - yq eval -j data/mapping.yml >> content/post/mirror-help/mapping.html - ./hugo -v after_success: - sudo apt-get update && sudo apt-get install -yy python-pip python-dev build-essential && sudo pip install pyopenssl ndg-httpsclient pyasn1 coscmd diff --git a/content/post/mirror-help/mapping.html b/content/post/mirror-help/mapping.html new file mode 100644 index 0000000..2db4300 --- /dev/null +++ b/content/post/mirror-help/mapping.html @@ -0,0 +1,5 @@ ++++ +title = "metadata:mapping" +tags = ["mirror-help"] +author = "skyzh" ++++ diff --git a/data/mapping.yml b/data/mapping.yml new file mode 100644 index 0000000..0787040 --- /dev/null +++ b/data/mapping.yml @@ -0,0 +1,94 @@ +groups: + rust: + name: Rust 语言及工具链 + repos: + - crates.io + - git/crates.io-index + - static.crates.io + - rust-static + archlinux: + name: Arch Linux + repos: + - archlinux + - archlinux-cn + - archlinuxarm + debian: + name: Debian + repos: + - debian + - debian-cd + - debian-security + ubuntu: + name: Ubuntu + repos: + - ubuntu + - ubuntu-cd + - ubuntu-cdimage + - ubuntu-ports + raspberry-pi: + name: Raspberry Pi + repos: + - raspbian + - raspberrypi + - raspberry-pi-os-images + pypi: + name: Python PyPI + repos: + - pypi-packages + - pypi/web/simple + homebrew: + name: Homebrew + repos: + - homebrew-bottles + - linuxbrew-bottles + - git/homebrew-cask-drivers.git + - git/homebrew-cask-fonts.git + - git/homebrew-cask-versions.git + - git/homebrew-cask.git + - git/homebrew-core.git + - git/homebrew-services.git + - git/linuxbrew-core.git + - git/brew.git + centos: + name: CentOS + repos: + - centos + - fedora/epel + - rpmfusion + fedora: + name: Fedora + repos: + - fedora/epel + - fedora/linux + - fedora-iot + - fedora-ostree + - fedora-secondary + - rpmfusion + flutter: + name: Dart 和 Flutter + repos: + - dart-pub + - flutter_infra + - download.flutter.io + - git/flutter-sdk.git + guix: + name: Guix + repos: + - git/guix.git + - guix + emacs: + name: Emacs + repos: + - emacs-elpa + - git/doom-emacs.git + - git/spacemacs.git + opam: + name: OCaml OPAM + repos: + - git/opam-repository.git + - opam-cache + julia: + name: Julia + repos: + - julia + - julia-releases