scripts

Scripts for use on Codeship Basic
授权协议 MIT License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 祁刚毅
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Codeship Scripts

A public collection of useful scripts for use on Codeship and similar tools.

E.g. scripts to install specific versions of software not included by default on the build VMs. Deployment scripts for external services to customize to your needs, configure caching or trigger notifications. And other scripts if you want to have them included ;)

Using the scripts

Each script includes a comment at the beginning detailing how to configure and use the script in your builds. Those comments look for example like

# Add at least the following environment variables to your project configuration
# (otherwise the defaults below will be used).
# * FIREFOX_VERSION
#
# Include in your builds via
# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/firefox.sh | bash -s

It is important that you follow those instructions and not simply copy / paste the scripts into your Codeship project configuration.

Most scripts include set -e to make the script fail as soon as a subcommand returns a non-zero exit code (which indicates failure).

This is fine if you call the script as documented above (via the curl command). But it will have side effects if you copy the commands into your settings on codeship.com as any command that fails after the set -e) will terminate your build. You'll get a SYSTEM build status, but no further error message or log output. You probably don't want this :)

Please see the post at https://documentation.codeship.com/basic/builds-and-configuration/scripts/#set--e for more information on how set -e works and why this causes issues if you include it in your setup or test commands.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

  • 1.内核构建分两块,配置和构建,先要把配置系统建起来然后去构建内核。scripts 目录下的文件是用于配置系统构建的程序源文件。在一级Mafile中有*config目标,它代表所有和配置有关的目标,这个目标的动作就是进入 scripts目录去建配置系统  ,根据不同的用户config方式(text,menu, x,qt,gtk,等)提供给用户不同的配置接口。

  • 一般会报错'pip' 不是内部或外部命令,也不是可运行的程序或批处理文件。 1、打开命令行输入python -m ensurepip 2、查看Python根目录下的Scripts文件夹中是否有pip相关文件 3、切换到Scripts文件夹中,输入命令:easy_install.exe pip 4、将Scripts目录添加到环境变量

  • Node 开发离不开 npm,而脚本功能是 npm 最强大、最常用的功能之一。 1、什么是 npm 脚本? npm 允许在package.json文件里面,使用scripts字段定义脚本命令。 { // ... "scripts": { "build": "node build.js" } } 上面代码是package.json文件的一个片段,里面的scripts字段是一个对象

相关阅读

相关文章

相关问答

相关文档