Skip to content

Commit

Permalink
test: offload travis — move Linux tests to CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Jun 2, 2016
1 parent 05bdee4 commit b85ddfe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 32 deletions.
38 changes: 10 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
osx_image: xcode7

dist: trusty
sudo: required

services:
- docker

matrix:
include:
- os: linux
env: CIRCLE_NODE_INDEX=0 NODE_VERSION=6
os: osx

- os: linux
env: CIRCLE_NODE_INDEX=1 NODE_VERSION=6

- os: osx
env: NODE_VERSION=6
#env: TEST_FILES=osxPackagerTest,CodeSignTest NODE_VERSION=6

# - os: osx
# env: TEST_FILES=linuxPackagerTest,BuildTest NODE_VERSION=6
osx_image: xcode7

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

language: c

Expand All @@ -40,15 +22,15 @@ before_install:
install:
- nvm install $NODE_VERSION
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$NODE_VERSION" == "4" ]]; then npm install npm -g ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm install && npm prune ; fi
- npm install
- npm prune

script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm run test ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CIRCLE_NODE_INDEX" == "0" ]]; then docker run --rm --env-file ./test/docker-env.list -v ${PWD}:/project -v ~/.electron:/root/.electron electronuserland/electron-builder:latest /bin/bash -c "/test.sh && ./test/release.sh" ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CIRCLE_NODE_INDEX" == "1" ]]; then docker run --rm --env-file ./test/docker-env.list -v ${PWD}:/project -v ~/.electron:/root/.electron electronuserland/electron-builder:wine /bin/bash -c "/test.sh && ./test/release.sh" ; fi
- npm run test

after_success:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then node out/cleanup.js && ./test/release.sh ; fi
- node out/cleanup.js
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && "$AUTO_PUBLISH" != "false" ]]; then npm run semantic-release ; fi

branches:
except:
Expand Down
4 changes: 0 additions & 4 deletions test/release.sh

This file was deleted.

0 comments on commit b85ddfe

Please sign in to comment.