mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
The get_key_value method is currently only avaiable in nightly rust. As only this feature is required it worth to refactor and enable building in the stable channel. The method was removed by first getting the value from the CGROUPS hashmap, then key is get by iterating over all the keys. The checks for an empty key and key == "devices" were moved out of the hashmap block. The README.md was updated as well to detail the instructions for stable rust. Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
34 lines
579 B
YAML
34 lines
579 B
YAML
# Copyright (c) 2019 Ant Financial
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
sudo: required
|
|
dist: bionic
|
|
|
|
os:
|
|
- linux
|
|
|
|
language: rust
|
|
rust:
|
|
- stable
|
|
|
|
env:
|
|
- target_branch=$TRAVIS_BRANCH RUST_AGENT=yes
|
|
|
|
before_install:
|
|
- "ci/setup.sh"
|
|
- "ci/install_go.sh"
|
|
- "ci/install_rust.sh"
|
|
- "ci/static-checks.sh"
|
|
|
|
# need to install rust from scratch?
|
|
# still need go to download github.com/kata-containers/tests
|
|
# which is already installed?
|
|
|
|
install:
|
|
- cd ${TRAVIS_BUILD_DIR}/src/agent && make
|
|
|
|
script:
|
|
- cd ${TRAVIS_BUILD_DIR}/src/agent && make check
|