Skip to content

Commit ce0fa54

Browse files
committed
Use Travis multi-stage for proper test & deployment to WeDeploy
1 parent 5e9e8fb commit ce0fa54

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

.travis.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,33 @@ before_install:
3232

3333
install:
3434
- |
35-
if [ "$LPN_COMMAND" != "license" ] && [ "$LPN_COMMAND" != "tags" ] && [ "$LPN_COMMAND" != "version" ]; then
35+
if [ "$LPN_COMMAND" != ""] && ["$LPN_COMMAND" != "license" ] && [ "$LPN_COMMAND" != "tags" ] && [ "$LPN_COMMAND" != "version" ]; then
3636
./scripts/pull-images.sh
3737
fi
3838
- go build
3939

4040
script:
41-
- ./scripts/coverage.sh
42-
- mkdir bin && mv ./lpn bin/lpn && cucumber features/$LPN_COMMAND.feature
43-
44-
after_success:
45-
- bash <(curl -s https://codecov.io/bash)
41+
- |
42+
if [ "$LPN_COMMAND" != "" ]; then
43+
mkdir bin && mv ./lpn bin/lpn && cucumber features/$LPN_COMMAND.feature
44+
fi
4645
47-
deploy:
48-
provider: script
49-
script: cd $TRAVIS_BUILD_DIR/.equinox && ./release.sh
50-
on:
51-
branch: master
46+
jobs:
47+
include:
48+
- stage: "Deploy to WeDeploy"
49+
name: "Deploy to WeDeploy"
50+
env:
51+
- LPN_COMMAND=
52+
script:
53+
- ./scripts/coverage.sh
54+
after_success:
55+
- bash <(curl -s https://codecov.io/bash)
56+
deploy:
57+
- provider: script
58+
script: ./scripts/build.sh && ./scripts/publish.sh
59+
on:
60+
branch: master
61+
- provider: script
62+
script: ./scripts/build.sh && ./scripts/publish.sh
63+
on:
64+
branch: develop

0 commit comments

Comments
 (0)