Skip to content

Commit

Permalink
Use Travis multi-stage for proper test & deployment to WeDeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Feb 21, 2019
1 parent 5e9e8fb commit ce0fa54
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,33 @@ before_install:

install:
- |
if [ "$LPN_COMMAND" != "license" ] && [ "$LPN_COMMAND" != "tags" ] && [ "$LPN_COMMAND" != "version" ]; then
if [ "$LPN_COMMAND" != ""] && ["$LPN_COMMAND" != "license" ] && [ "$LPN_COMMAND" != "tags" ] && [ "$LPN_COMMAND" != "version" ]; then
./scripts/pull-images.sh
fi
- go build

script:
- ./scripts/coverage.sh
- mkdir bin && mv ./lpn bin/lpn && cucumber features/$LPN_COMMAND.feature

after_success:
- bash <(curl -s https://codecov.io/bash)
- |
if [ "$LPN_COMMAND" != "" ]; then
mkdir bin && mv ./lpn bin/lpn && cucumber features/$LPN_COMMAND.feature
fi
deploy:
provider: script
script: cd $TRAVIS_BUILD_DIR/.equinox && ./release.sh
on:
branch: master
jobs:
include:
- stage: "Deploy to WeDeploy"
name: "Deploy to WeDeploy"
env:
- LPN_COMMAND=
script:
- ./scripts/coverage.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
- provider: script
script: ./scripts/build.sh && ./scripts/publish.sh
on:
branch: master
- provider: script
script: ./scripts/build.sh && ./scripts/publish.sh
on:
branch: develop

0 comments on commit ce0fa54

Please sign in to comment.