Skip to content

Commit

Permalink
test: attempt to fix travis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Jul 28, 2016
1 parent d605e23 commit c0468cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ osx_image: xcode7.3
matrix:
include:
- os: osx
env: TEST_FILES=macPackagerTest,BuildTest,linuxPackagerTest,globTest NODE_VERSION=6
env: TEST_FILES=BuildTest,linuxPackagerTest,globTest NODE_VERSION=6 PUBLISH_TO_NPM=true

- os: osx
env: TEST_FILES=macPackagerTest,CodeSignTest,winPackagerTest NODE_VERSION=4
env: TEST_FILES=macPackagerTest,winPackagerTest NODE_VERSION=6

- os: osx
env: TEST_FILES=macPackagerTest,CodeSignTest NODE_VERSION=4

language: c

Expand Down Expand Up @@ -35,7 +38,7 @@ script:
- npm run test

after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && "$AUTO_PUBLISH" != "false" && "$TRAVIS_TAG" == "" && "$NODE_VERSION" == "6" ]]; then npm run semantic-release ; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && "$AUTO_PUBLISH" != "false" && "$TRAVIS_TAG" == "" && "$PUBLISH_TO_NPM" == "true" ]]; then npm run semantic-release ; fi

branches:
except:
Expand Down
4 changes: 4 additions & 0 deletions test/src/helpers/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ function runTests(): BluebirdPromise<any> {
const args: Array<string> = []
const testFiles = process.env.TEST_FILES

if (process.env.TRAVIS) {
args.push("--concurrency=2")
}

const baseDir = path.join("test", "out")
const baseForLinuxTests = [path.join(baseDir, "ArtifactPublisherTest.js"), path.join(baseDir, "httpRequestTest.js"), path.join(baseDir, "RepoSlugTest.js")]
let skipWin = false
Expand Down

0 comments on commit c0468cd

Please sign in to comment.