Skip to content

Commit

Permalink
Move package upload to stage
Browse files Browse the repository at this point in the history
  • Loading branch information
bendmorris committed Mar 3, 2019
1 parent ef39253 commit b34a6c3
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,43 @@ addons:
matrix:
fast_finish: true
include:
- stage: test
- stage: Test
name: linux-gcc
os: linux
env: KIT_BUILD_TOOLCHAIN=linux-gcc
- stage: test
- stage: Test
name: linux-clang
os: linux
env: KIT_BUILD_TOOLCHAIN=linux-clang
- stage: test
- stage: Test
name: darwin-gcc
os: osx
env: KIT_BUILD_TOOLCHAIN=darwin-gcc
- stage: test
- stage: Test
name: darwin-clang
os: osx
env: KIT_BUILD_TOOLCHAIN=darwin-clang
- stage: install
if: branch IN (master, dev)

- stage: Upload
name: upload Linux packages
if: env(TRAVIS_PULL_REQUEST) = "false"
os: linux
script: 'bash ./.packages/linux.sh'
- stage: Upload
name: upload MacOS package
if: env(TRAVIS_PULL_REQUEST) = "false"
os: osx
script: 'bash ./.packages/osx.sh'

- stage: Test Package Install
name: "test Linux package install"
if: branch IN (master, dev) AND env(TRAVIS_PULL_REQUEST) = "false"
os: linux
env:
- KIT_BUILD_TOOLCHAIN: linux-gcc
before_install: skip
install: skip
script: 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then bash ./.packages/install_test.sh; fi'
script: 'bash ./.packages/install_test.sh'

before_install:
- mkdir -p ~/.local/bin
Expand All @@ -62,9 +75,6 @@ script:
- stack exec kitc -- --env
- TEST_RUNS=1 stack test --test-arguments '+RTS -N -RTS'
- stack install
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then bash ./.packages/linux.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then bash ./.packages/osx.sh; fi


notifications:
webhooks:
Expand Down

0 comments on commit b34a6c3

Please sign in to comment.