Skip to content

Commit

Permalink
[chore] Travis: Sanity binary executable without full path
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and bjoerge committed Jan 30, 2018
1 parent c32340b commit 1b38e0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -7,6 +7,9 @@ before_script:
- travis_wait yarn run bootstrap
- yarn run build
script:
# Allow running the Sanity CLI tool without specifying absolute path
- export PATH="${TRAVIS_BUILD_DIR}/packages/@sanity/cli/bin:$PATH"

# Build CLI to a single file
- cd packages/@sanity/cli
- npm run pack
Expand All @@ -17,7 +20,7 @@ script:

# Test building the test studio with all customizations
- cd $TRAVIS_BUILD_DIR/packages/test-studio
- $TRAVIS_BUILD_DIR/packages/@sanity/cli/bin/sanity build
- sanity build

# Test initializing a project in unattended mode
- sanity init -y --project=ppsg7ml5 --dataset=test --output-path=/tmp/test-project
Expand All @@ -27,4 +30,4 @@ script:
- $TRAVIS_BUILD_DIR/scripts/symlinkDependencies.js .

# Test building the project with latest dependencies
- $TRAVIS_BUILD_DIR/packages/@sanity/cli/bin/sanity build --skip-minify
- sanity build --skip-minify

0 comments on commit 1b38e0f

Please sign in to comment.