ci: use export command to export envs instead of env config item

Config item env is used as a Matrix Expansion key, so these envs
will export to build jobs individually.

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu 2020-09-23 10:25:57 +08:00
parent 9e5a4b8b80
commit e3a0f9b30e

View File

@ -21,13 +21,11 @@ cache:
directories:
- src/agent/target
env:
- target_branch=$TRAVIS_BRANCH
- RUST_BACKTRACE=1
before_install:
- git remote set-branches --add origin "${TRAVIS_BRANCH}"
- git fetch
- export RUST_BACKTRACE=1
- export target_branch=$TRAVIS_BRANCH
- "ci/setup.sh"
# we use install to run check agent