Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Bump zfs (#81)
Browse files Browse the repository at this point in the history
* Bump deps to latest

Signed-off-by: Joe Grund <[email protected]>

* Update libzfs-sys to 0.7.13

Update bindings to 0.7.13.

Signed-off-by: Joe Grund <[email protected]>

* remove module-tools

Signed-off-by: Joe Grund <[email protected]>

* update to use docker builder + some cleanup

Signed-off-by: Joe Grund <[email protected]>

* add global neon install

Signed-off-by: Joe Grund <[email protected]>

* use tabs

Signed-off-by: Joe Grund <[email protected]>

* force newer box version

Signed-off-by: Joe Grund <[email protected]>

* move modprobe

Signed-off-by: Joe Grund <[email protected]>

* exit if command fails

Signed-off-by: Joe Grund <[email protected]>

* add cleanup fn

Signed-off-by: Joe Grund <[email protected]>

* use ZFS kmod

Signed-off-by: Joe Grund <[email protected]>

* fixup trap fn

Signed-off-by: Joe Grund <[email protected]>

* bump libzfs-sys dep

Signed-off-by: Joe Grund <[email protected]>

* bump libzfs version

Signed-off-by: Joe Grund <[email protected]>

* add 5.0 deploy

Signed-off-by: Joe Grund <[email protected]>

* remove extra job

Signed-off-by: Joe Grund <[email protected]>

* fix release field

Signed-off-by: Joe Grund <[email protected]>

* address CR feedback

Signed-off-by: Joe Grund <[email protected]>
  • Loading branch information
jgrund authored May 6, 2019
1 parent b0960fd commit 0b05a07
Show file tree
Hide file tree
Showing 43 changed files with 288 additions and 935 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ target
/*.xml
.idea/
travis_env
include/copr-mfl
56 changes: 37 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,42 @@ jobs:
- stage: test
name: "bindgen test"
script:
- docker run -d -it --name libzfs -v $(pwd):/rust-libzfs:rw imlteam/zfs
- docker exec -i libzfs bash -c 'cd /rust-libzfs/node-libzfs && cargo build'
- docker run -dit --name libzfs -v $(pwd):/rust-libzfs:rw imlteam/zfs
- docker exec -i libzfs bash -c 'yum install -y cargo yum-plugin-copr'
- docker exec -i libzfs bash -c 'yum copr -y enable alonid/llvm-5.0.0'
- docker exec -i libzfs bash -c 'yum install -y clang-5.0.0'
- docker exec -i libzfs bash -c 'cd /rust-libzfs/libzfs-sys && cargo test bindgen_test_layout'
- stage: test
name: "mock build"
language: node_js
node_js: "10"
name: "copr build test"
script:
- cd node-libzfs
- npm run mock
- cd node-libzfs
- export SPEC=iml-node-libzfs.spec
- docker run -it -e SPEC="$SPEC" -e LOCAL_ONLY="True" -v $(pwd):/build:rw imlteam/copr-zfs
- ((`find _topdir/RPMS -name *.rpm | wc -l` > 0))
- stage: cd
name: "Continuous Deployment"
script:
- cd node-libzfs
- export OWNER=managerforlustre
- export PROJECT=manager-for-lustre-devel
- export PACKAGE=iml-node-libzfs
- export SPEC=iml-node-libzfs.spec
- docker run -it -e OWNER="$OWNER" -e PROJECT="$PROJECT" -e PACKAGE="$PACKAGE" -e SPEC="$SPEC" -e KEY="$encrypted_253525cedcf6_key" -e IV="$encrypted_253525cedcf6_iv" -v $(pwd):/build:rw imlteam/copr
- stage: deploy-libzfs-sys
name: "libzfs-sys"
script:
- docker run -d -it --name libzfs -v $(pwd):/rust-libzfs:rw imlteam/zfs
- docker exec -i libzfs bash -c 'yum install -y cargo yum-plugin-copr'
- docker exec -i libzfs bash -c 'yum copr -y enable alonid/llvm-5.0.0'
- docker exec -i libzfs bash -c 'yum install -y clang-5.0.0'
- docker exec -i libzfs bash -c "cd /rust-libzfs/libzfs-sys && cargo package && cargo publish --token $CARGO_TOKEN"
- stage: deploy-libzfs
name: "libzfs"
script:
- docker run -d -it --name libzfs -v $(pwd):/rust-libzfs:rw imlteam/zfs
- docker exec -i libzfs bash -c 'yum install -y cargo yum-plugin-copr'
- docker exec -i libzfs bash -c 'yum copr -y enable alonid/llvm-5.0.0'
- docker exec -i libzfs bash -c 'yum install -y clang-5.0.0'
- docker exec -i libzfs bash -c "cd /rust-libzfs/libzfs && cargo package && cargo publish --token $CARGO_TOKEN"
- stage: deploy-libzfs-types
name: "libzfs-types"
Expand All @@ -45,18 +62,19 @@ jobs:
skip_cleanup: true
on:
tags: true
- stage: deploy-copr
name: "Copr deploy"
before_deploy:
- include/travis/copr-deploy.sh prepare
deploy:
skip_cleanup: true
provider: script
script: ./travis_wait "./include/travis/run_in_centos7_docker.sh ./include/travis/copr-deploy.sh build"
on:
all_branches: true
- stage: deploy-copr-r5.0
name: "Copr 5.0 deploy"
script:
- cd node-libzfs
- export OWNER=managerforlustre
- export PROJECT=manager-for-lustre-5.0
- export PACKAGE=iml-node-libzfs
- export SPEC=iml-node-libzfs.spec
- docker run -it -e PROD="true" -e OWNER="$OWNER" -e PROJECT="$PROJECT" -e PACKAGE="$PACKAGE" -e SPEC="$SPEC" -e KEY="$encrypted_253525cedcf6_key" -e IV="$encrypted_253525cedcf6_iv" -v $(pwd):/build:rw imlteam/copr
stages:
- test
- name: cd
if: branch = master AND type = push AND fork = false
- name: deploy-libzfs-sys
if: branch =~ ^v\d+\.\d+\.\d+libzfs-sys$
- name: deploy-libzfs
Expand All @@ -65,5 +83,5 @@ stages:
if: branch =~ ^v\d+\.\d+\.\d+libzfs-types$
- name: deploy-node-libzfs
if: branch =~ ^v\d+\.\d+\.\d+node-libzfs$
- name: deploy-copr
if: branch =~ ^v\d+\.\d+\.\d+-.+node-libzfs$
- name: deploy-copr-r5.0
if: branch =~ ^v\d+\.\d+\.\d+-.+-r5\.0$
Loading

0 comments on commit 0b05a07

Please sign in to comment.