当前位置: 首页 > 软件库 > 程序开发 > >

travis-web

The Ember web client for Travis CI
授权协议 MIT License
开发语言 JavaScript
所属分类 程序开发
软件类型 开源软件
地区 不详
投 递 者 曹乐意
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Travis CI ember web client

Running the app

The app is developed using Ember CLI. It requires nodejswith npm installed.

In order to run the app you need to install dependencies with:

npm ci

And then install ember-cli globally in order to have access to the ember command:

npm install -g ember-cli

Now you can run the server:

ember serve

And open http://localhost:4200 in the browser.

Alternatively you can run ember build --watch and start the server with waiter/script/server

Waiter Workarounds

Should you encounter issues installing Puma while bundling Waiter on a recentOSX version, you need to tinker with Homebrew:

brew install openssl
brew link --force openssl

You should then be able to run bundle install as usual.

Running the app in private repos mode

At the moment Travis CI is available as two separate sites - https://travis-ci.org for Open Sourceprojects and https://travis-ci.com for private projects. travis-web will connectto the Open Source version by default. In order to connect it to the API for private projects you need to setup your .env file.

Copy .env.example to .env

$ cp .env.example .env

Update the .env file to run the app in private repos mode:

TRAVIS_PRO=true

After setting up environment variables, you can run the app like so:

ember serve --ssl --ssl-key=ssl/server.key --ssl-cert=ssl/server.crt

One caveat here is that the command will start server with SSL, so the page willbe accessible at https://localhost:4200 (note https part).

Running on SSL in general

Sometimes there is a need to test the app with an SSL connection. This is requiredto make Pusher work when running Travis CI Pro, but it may also be needed in othersituations.

There's already an SSL certificate in the ssl directory, which is set for localhosthost. If you want to use it, you can start the server with:

ember serve --ssl --ssl-key=ssl/server.key --ssl-cert=ssl/server.crt

In case you want your own certificate, you can follow the instructions postedhere: https://gist.github.com/trcarden/3295935 and then point the server to yourcertificate with --ssl-key and --ssl-cert.

Running tests

To run the test suite execute:

ember test

You can also start an interactive test runner for easier development:

ember test --serve

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Feature Flags

travis-web is beginning the transition to use feature flags wherever it makessense. To enable/disable/add/remove a feature flag for the application, you canedit the config/environment.js file. For instance, to enable some-feature, you wouldsimply add/update the file like so:

{
    featureFlags: {
      'some-feature': true
    }
  }

This uses the awesome ember-feature-flags addon under the hood, so be sure to read its owndocumentation for more information.

Debugging

Ember's default logging has been disabled in all environments by default andmoved to a feature flag. To enable it, simply edit the debug-logging featureflag as mentioned previously in the Feature Flags section.

Deploying

ember-cli-deploy is available for deploying pull requests. See after_successin .travis.yaml and associated scripts for details. It uses the “lightningstrategy” of deploying assets to S3 and index.html to a Redis server. You candeploy from your own machine too. First, update your .env file with the following variables:

AWS_KEY=key
AWS_SECRET=secret

Then run:

npm run deploy

After success, your deployment will be available at branch.test-deployments.travis-ci.org.

See the documentation for the full list ofdeployment environments and more details.

The Redis server is a modified version of waiter/lib/travis/web/app.rb. We will eventually replacethat with travis-web-index and move to usingember-cli-deploy for all deployments.

Ember beta and canary deployments

Upon a merge to master, the application is built with the latest beta and canary versionsof Ember, running against the production API. This uses the same infrastructure as thepull request deployments. You can visit these deployments at:

These deployments are also performed with the weekly cron build.

  • travis-ci 在本文中,我们将学习如何将Travis CI用于SpringBoot应用程序的持续集成和持续部署(CI / CD)。 我们将学习如何运行Maven构建目标,使用JaCoCo插件,使用SonarCloud代码质量检查,建立泊坞窗图像进行测试覆盖率验证并推DockerHub并最终将其部署到Heroku的 。 本文的源代码位于https://github.com/sivaprasad

  • 在本文中,我们将学习如何将Travis CI用于SpringBoot应用程序的持续集成和持续部署(CI / CD)。 我们将学习如何运行Maven构建目标,使用JaCoCo插件,使用SonarCloud代码质量检查,建立泊坞窗图像进行测试覆盖率验证并推DockerHub并最终将其部署到Heroku的 。 本文的源代码位于https://github.com/sivaprasadreddy/free

 相关资料
  • Overview 平时项目里用的是jenkins,但很难找到好用又免费的jenkins hosting服务,而travis-ci.org免费为github用户提供服务且非常易用,SpringSide的地址为 https://travis-ci.org/springside/springside4 。不过商业的项目就没这么幸运了,两个并发要129美刀/月,十个并发要489美刀,不过其实也不贵。 Qu

  • 在 Travis CI 中使用 Docker 当代码提交到 GitHub 时,Travis CI 会根据项目根目录 .travis.yml 文件设置的指令,执行一系列操作。 本小节介绍如何在 Travis CI 中使用 Docker 进行持续集成/持续部署(CI/CD)。这里以当代码提交到 GitHub 时自动构建 Docker 镜像并推送到 Docker Hub 为例进行介绍。 准备 首先登录

  • Travis CI 是一个基于云的持续集成项目, 目前已经支持大部分主流语言了,比如:C,PHP,Ruby,Python, Nodejs等等。和Jenkins类似, Travis CI也是开源的,不过Travis和Github集成非常紧密,官方的集成测试托管只支持Github项目, 不过你也可以搭建一套自己的方案。  如果你有开源项目,那么Travis绝对值得一试,目前托管在Github上的大部分

  • LaTeX + Git + Travis → release pdf Write LaTeX, push to git, let Travis automatically build your file and release a pdf automatically to GitHub releases when the commit was tagged. This repository con

  • 如何简单入门使用Travis-CI持续集成 不知道你们有没有看过这样一个标识,只看文字就可以看出这个项目是否已经构建成功(让大家知道项目没有问题),如果不成功则会显示 Build failing。 如果你的项目还没有使用,那么赶快跟我一起来装13吧。233333 Travis-CI 是什么? Travis-CI是一个开源的持续构建项目,能够测试和部署;Travis-CI会同步你在GitHub上托管

  • 问题内容: 我只是在我的Express应用程序中添加了Redis Store,并使它正常工作。 我想将这个Redis商店包含在Travis CI中,以使我的代码继续在那里工作。我在Travis文档中读到,可以使用出厂设置启动Redis。 在我的项目中,我不使用出厂设置,而是编写了自己的文件来指定端口和密码。 因此,我在文件中添加了以下行: 但这会在Travis CI上返回以下内容: 有没有什么办法