use bash explicitly
This commit is contained in:
parent
c2a501e195
commit
bb9c959935
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ fedora:
|
||||||
script:
|
script:
|
||||||
- pwd
|
- pwd
|
||||||
- ls
|
- ls
|
||||||
- $CI_PROJECT_DIR/test.sh
|
- bash -c $CI_PROJECT_DIR/test.sh
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
@ -16,7 +16,7 @@ ubuntu:
|
||||||
script:
|
script:
|
||||||
- pwd
|
- pwd
|
||||||
- ls
|
- ls
|
||||||
- $CI_PROJECT_DIR/test.sh
|
- bash -c $CI_PROJECT_DIR/test.sh
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
2
test.sh
2
test.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
|
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue