2 Star 0 Fork 0

mirrors_anthonyfok/snapcraft

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 4.40 KB
一键复制 编辑 原始数据 按行查看 历史
language: bash
services: [docker]
env:
global:
# SPREAD_GOOGLE_KEY
- secure: "uWKJdJlHc8tg+98jGpcc/FvsssEbw2FARqtgO0smBp5x8JWCmAt5fAVPB8qRbbirdHS5Yjpk8SSSa3vWVizYeTIOV+Vo3w8/1oqymPnMEEMtcLkyGZP+fNMDgNnX+icOU/bmh8werhOn9+qiZfKmFuXgpjrXzYoWzrhn55EuDN68Yhe6gB1zznHihDtSKjwQrbZFlgNnTh13Wk9lY8y2XYsWZZVfQ25dP4PaQQv647nBhcWPvrB0N/vMmDS/twvUBcbbEjRg5yKtsqzuT2lEqdIpwosp3/gZjWAWK0FjjmnzRcSHbugtaxWHmghHDLHSpP4GF7bzYL01tklFWDSW9DDvVfZ3HgiN058LL1jsk+VjcMCgu7csUWUj2kib3/TjKQy32R1vALpgDOrLHutdVDXoED33qxcyAYLODNRwW9o+QQM2HoZD4PKVDcKW4WOvAKp7Z1NK+ag26WdA/bM7ZgAll40dY9yPtgg0fdMM9N1X9e4v2TJmjnSLXF8v0jXIwp3VL01c/RpsmD7ubTUp0ixSaiKK0cCvxdflsDSUGojckeA4OsGOf9X+anqxmJsiY7vW/TKULMgToKEYDIPB0EfJ0Tf8P/ve4veEZSnhFinrDk46jwSP2m4kpR2FHAMtjCwqWEXZWouIJOOclAk4IqUWGT88Iomdz/LFbQa2rdo="
- LC_ALL: C.UTF-8
- LANG: C.UTF-8
matrix:
include:
- os: osx
- os: linux
sudo: required
dist: trusty
cache:
directories:
- $TRAVIS_BUILD_DIR/snaps-cache
jobs:
include:
# Tests, only when not triggered by the daily cron.
- stage: static
if: type != cron
install:
- sudo apt update
- sudo apt install -y python3.5-dev snapd shellcheck libyaml-dev
# workaround for "cannot locate the core snap: No such file or directory"
- sudo snap install core
- sudo snap install black --devmode --edge
- sudo update-alternatives --install /usr/bin/python3 python3.5 /usr/bin/python3.5 0
- curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && python3 /tmp/get-pip.py --user
- pip3 install --user -r requirements-devel.txt
script:
- export PATH="/snap/bin:$PATH"
- ./runtests.sh static
# CLA check, only in pull requests, not coming from the bot.
- if: type = pull_request AND sender != snappy-m-o
install:
- sudo apt update && sudo apt install -y git python-launchpadlib
script:
- ./tools/cla_check.py
- stage: unit, snap and osx
if: type != cron
install:
# Here until we have our snapcraft testing toolkit snap
- sudo add-apt-repository -y ppa:chris-lea/libsodium
- sudo apt update
- sudo apt install -y python3.5-dev git bzr subversion mercurial rpm2cpio p7zip-full libnacl-dev libssl-dev libsodium-dev libffi-dev libapt-pkg-dev squashfs-tools xdelta3 libyaml-dev
- sudo update-alternatives --install /usr/bin/python3 python3.5 /usr/bin/python3.5 0
- curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && python3 /tmp/get-pip.py --user
- pip3 install --user -r requirements-devel.txt -r requirements.txt codecov
script:
- ./runtests.sh tests/unit
after_success:
- coverage xml
- codecov --token="$CODECOV_TOKEN"
- if: type != cron
os: osx
install:
- brew upgrade python
# readlink -f doesn't work on osx.
- brew upgrade coreutils || brew install coreutils
- python3 ./tools/brew_install_from_source.py
- python3 -m pip install -r requirements.txt
- python3 -m pip install -r requirements-devel.txt
script:
- SNAPCRAFT_PACKAGE_TYPE=brew ./runtests.sh tests.integration.store.test_store_login_logout use-run
- if: type != cron
install:
- sudo apt update
- sudo apt install -y snapd
- sudo snap install lxd --channel 3.0/stable
- sudo snap install snapcraft --candidate --classic
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- mkdir -p "$TRAVIS_BUILD_DIR/snaps-cache"
script:
- export PATH=/snap/bin:$PATH
- sudo snapcraft cleanbuild
- sudo cp snapcraft_amd64.snap "snapcraft-pr$TRAVIS_PULL_REQUEST.snap"
- sudo cp snapcraft_amd64.snap "$TRAVIS_BUILD_DIR/snaps-cache/snapcraft-pr$TRAVIS_PULL_REQUEST.snap"
after_success:
- sudo snap install transfer
- timeout 180 sudo /snap/bin/transfer snapcraft-pr$TRAVIS_PULL_REQUEST.snap
after_failure:
- sudo journalctl -u snapd
- sudo snap install http
- /snap/bin/http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16
- stage: integration
if: type != cron
script:
- cp "$TRAVIS_BUILD_DIR/snaps-cache/snapcraft-pr$TRAVIS_PULL_REQUEST.snap" .
- ./runtests.sh spread
- if: type != cron
script: sudo ./tools/travis/run_integration_test.sh tests/integration/store
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_anthonyfok/snapcraft.git
[email protected]:mirrors_anthonyfok/snapcraft.git
mirrors_anthonyfok
snapcraft
snapcraft
master

搜索帮助