Skip to content

Commit

Permalink
Pick up CI from the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
smashwilson committed Aug 8, 2018
1 parent ed47bf7 commit 96e5635
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ install:
- nvm install $NODE_VERSION
- nvm use --delete-prefix $NODE_VERSION
- npm install --global npm@6.2.0
- script/build --ci --create-debian-package --create-rpm-package --compress-artifacts
- script/build --create-debian-package --create-rpm-package --compress-artifacts

script:
- script/lint
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -48,18 +48,18 @@ build_script:
- IF [%TASK%]==[installer] (
IF [%IS_RELEASE_BRANCH%]==[true] (
ECHO Building on release branch - Creating production artifacts &&
script\build.cmd --ci --code-sign --compress-artifacts --create-windows-installer
script\build.cmd --code-sign --compress-artifacts --create-windows-installer
) ELSE (
IF [%IS_SIGNED_ZIP_BRANCH%]==[true] (
ECHO Building on %APPVEYOR_REPO_BRANCH% branch - Creating signed zips &&
script\build.cmd --ci --code-sign --compress-artifacts
script\build.cmd --code-sign --compress-artifacts
) ELSE (
ECHO Skipping installer build for non-release/non-master branch
)
)
) ELSE (
ECHO Test build only - Not creating artifacts &&
script\build.cmd --ci
script\build.cmd
)

test_script:
2 changes: 1 addition & 1 deletion script/vsts/platforms/linux.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ phases:
displayName: Install apt dependencies
- script: |
script/build --ci --create-debian-package --create-rpm-package --compress-artifacts
script/build --create-debian-package --create-rpm-package --compress-artifacts
env:
ATOM_RELEASE_VERSION: $(ReleaseVersion)
displayName: Build Atom
4 changes: 2 additions & 2 deletions script/vsts/platforms/macos.yml
Original file line number Diff line number Diff line change
@@ -20,9 +20,9 @@ phases:

- script: |
if [ $IS_RELEASE_BRANCH == "true" ] || [ $IS_SIGNED_ZIP_BRANCH == "true" ]; then
script/build --ci --code-sign --compress-artifacts
script/build --code-sign --compress-artifacts
else
script/build --ci --compress-artifacts
script/build --compress-artifacts
fi
displayName: Build Atom
env:
6 changes: 3 additions & 3 deletions script/vsts/platforms/windows.yml
Original file line number Diff line number Diff line change
@@ -33,14 +33,14 @@ phases:
SET SQUIRREL_TEMP=C:\tmp
IF [%IS_RELEASE_BRANCH%]==[true] (
ECHO Creating production artifacts for release branch %BUILD_SOURCEBRANCHNAME%
script\build.cmd --ci --code-sign --compress-artifacts --create-windows-installer
script\build.cmd --code-sign --compress-artifacts --create-windows-installer
) ELSE (
IF [%IS_SIGNED_ZIP_BRANCH%]==[true] (
ECHO Creating signed CI artifacts for branch %BUILD_SOURCEBRANCHNAME%
script\build.cmd --ci --code-sign --compress-artifacts
script\build.cmd --code-sign --compress-artifacts
) ELSE (
ECHO Pull request build, no code signing will be performed
script\build.cmd --ci --compress-artifacts
script\build.cmd --compress-artifacts
)
)
env:

0 comments on commit 96e5635

Please sign in to comment.