Skip to content

Commit f7a859a

Browse files
committed
travis: use deploy section
Signed-off-by: Robin Jarry <[email protected]>
1 parent 7ec7981 commit f7a859a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.travis.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,18 @@ script:
5555
- make -j2 && ctest --output-on-failure
5656
- cd -
5757

58-
after_success:
59-
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" -a "$TRAVIS_ARCH" = "amd64" -a "$TRAVIS_BRANCH" = "master" ]; then codecov; ./packages/create-package.sh; fi
58+
deploy:
59+
- provider: script
60+
script: codecov
61+
skip_cleanup: true
62+
verbose: true
63+
on:
64+
branch: master
65+
condition: $TRAVIS_OS_NAME = linux && $CC = gcc && $TRAVIS_ARCH = amd64
66+
- provider: script
67+
script: ./packages/create-package.sh
68+
skip_cleanup: true
69+
verbose: true
70+
on:
71+
branch: master
72+
condition: $TRAVIS_OS_NAME = linux && $CC = gcc && $TRAVIS_ARCH = amd64

0 commit comments

Comments
 (0)