Skip to content

Commit

Permalink
Merge pull request #507 from dmitry-sinina/remove_jessie_build
Browse files Browse the repository at this point in the history
remove jessie build
  • Loading branch information
dmitry-sinina authored Jul 20, 2019
2 parents 0827ed5 + 92f7470 commit 6aba829
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 53 deletions.
30 changes: 0 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,6 @@ jobs:
- cd pgq-processors && bundle install --gemfile="./Gemfile" && cd ..
- cd pgq-processors && BUNDLE_GEMFILE=./Gemfile ./bin/bundle exec rspec && cd ..

- stage: stable package
if: branch != master OR tag =~ ^.*$
env: CACHE_NAME=jessie_package
name: Stable Jessie Package
script: &build_jessie
- rm -vf config/database.yml
- docker build -t yeti-web -f ./ci/build_jessie.Dockerfile .
- docker run --network yeti-net --name yeti-web yeti-web && docker commit yeti-web yeti-web:built
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-web-deploy yeti-web:built ci/deploy.sh "$API_ENDPOINT" jessie "${TRAVIS_TAG:0:3}" main /build/*.deb
on:
tags: true
condition: "$TRAVIS_TAG != *-master*"
repo: yeti-switch/yeti-web

- stage: stable package
if: branch != master OR tag =~ ^.*$
env: CACHE_NAME=stretch_package
Expand All @@ -119,19 +102,6 @@ jobs:
condition: "$TRAVIS_TAG != *-master*"
repo: yeti-switch/yeti-web

- stage: nightly package
if: branch = master
env: CACHE_NAME=jessie_package
name: Nightly Jessie Package
script: *build_jessie
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-web-deploy yeti-web:built ci/deploy.sh "$API_ENDPOINT" jessie nightly main /build/*.deb
on:
all_branches: true
repo: yeti-switch/yeti-web

- stage: nightly package
if: branch = master
env: CACHE_NAME=stretch_package
Expand Down
4 changes: 2 additions & 2 deletions ci/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Building debian package
There are some non-standard requirements to build a package. E.g. Debian changelog is generated using custom tool that is installed from yeti repository. So it's advised to use docker to build package. Dockerfiles are `build_jessie.Dockerfile` and `build_stretch.Dockerfile` for building in jessie and stretch enviroment respectively. Building of a package involves building of the documentation, which is generated by doing api requests to a working application. This step requires working database. You can launch it using `ci/pgsql.Dockerfile`. Generally, the sequence of commands to build package is:
There are some non-standard requirements to build a package. E.g. Debian changelog is generated using custom tool that is installed from yeti repository. So it's advised to use docker to build package. Dockerfiles is `build_stretch.Dockerfile` for building in stretch enviroment respectively. Building of a package involves building of the documentation, which is generated by doing api requests to a working application. This step requires working database. You can launch it using `ci/pgsql.Dockerfile`. Generally, the sequence of commands to build package is:

```bash
$ docker build -t pgsql_yeti -f ./ci/pgsql.Dockerfile .
$ docker network create yeti-net
$ docker run -d --network yeti-net -p 5432:5432 --name db pgsql_yeti
$ docker build -t yeti-web -f ./ci/build_jessie.Dockerfile .
$ docker build -t yeti-web -f ./ci/build_stretch.Dockerfile .
$ docker run --network yeti-net --name yeti-web yeti-web
```

Expand Down
21 changes: 0 additions & 21 deletions ci/build_jessie.Dockerfile

This file was deleted.

0 comments on commit 6aba829

Please sign in to comment.