Remove old CI files
parent
a09e370e1d
commit
b7a1c5fd5a
@ -1,61 +0,0 @@
|
|||||||
# TODO: Figure out a way to use nvm in the linux build
|
|
||||||
linux:
|
|
||||||
image: node:10.13.0
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
- whoami
|
|
||||||
- node -v
|
|
||||||
- yarn -v
|
|
||||||
- yarn install --frozen-lockfile
|
|
||||||
- export SIGNAL_ENV=production
|
|
||||||
- yarn generate
|
|
||||||
- $(yarn bin)/electron-builder --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$CI_COMMIT_REF_SLUG' --publish=never --config.directories.output=release
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- node_modules/
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- release/
|
|
||||||
|
|
||||||
osx:
|
|
||||||
tags:
|
|
||||||
- osx
|
|
||||||
script:
|
|
||||||
- nvm install
|
|
||||||
- npm install --global yarn
|
|
||||||
- yarn install --frozen-lockfile
|
|
||||||
- export SIGNAL_ENV=production
|
|
||||||
- yarn generate
|
|
||||||
- $(yarn bin)/electron-builder --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$CI_COMMIT_REF_SLUG' --publish=never --config.directories.output=release
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- node_modules/
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- release/
|
|
||||||
|
|
||||||
windows:
|
|
||||||
tags:
|
|
||||||
- windows-cmd
|
|
||||||
script:
|
|
||||||
# install
|
|
||||||
- set PATH=%PATH%;C:\Users\Administrator\AppData\Local\nvs\
|
|
||||||
- set SIGNAL_ENV=production
|
|
||||||
- set /p NVMRC_VER=<.nvmrc
|
|
||||||
- call nvs add %NVMRC_VER%
|
|
||||||
- call nvs use %NVMRC_VER%
|
|
||||||
- call "C:\\PROGRA~2\\MICROS~1\\2017\\BuildTools\\Common7\\Tools\\VsDevCmd.bat"
|
|
||||||
- call yarn install --frozen-lockfile
|
|
||||||
# build
|
|
||||||
- call yarn generate
|
|
||||||
- call node build\grunt.js
|
|
||||||
- call yarn prepare-beta-build
|
|
||||||
- call node_modules\.bin\electron-builder --config.extraMetadata.environment=%SIGNAL_ENV% --publish=never --config.directories.output=release
|
|
||||||
- call node build\grunt.js test-release:win
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- node_modules/
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- release/
|
|
@ -1,33 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
cache:
|
|
||||||
yarn: true
|
|
||||||
directories:
|
|
||||||
- node_modules
|
|
||||||
node_js:
|
|
||||||
- '10.13.0'
|
|
||||||
install:
|
|
||||||
- travis_wait 30 yarn install --frozen-lockfile --network-timeout 1000000
|
|
||||||
script:
|
|
||||||
- yarn generate
|
|
||||||
- yarn lint-windows
|
|
||||||
- yarn test
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- SIGNAL_ENV: production
|
|
||||||
sudo: false
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- name: 'Linux'
|
|
||||||
os: linux
|
|
||||||
dist: trusty
|
|
||||||
before_install:
|
|
||||||
- sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb hunspell-en-us
|
|
||||||
before_script:
|
|
||||||
- Xvfb -ac -screen scrn 1280x2000x24 :9.0 &
|
|
||||||
- export DISPLAY=:9.0
|
|
||||||
- export LC_ALL=en_US
|
|
||||||
- name: 'OSX'
|
|
||||||
os: osx
|
|
@ -1,24 +0,0 @@
|
|||||||
platform:
|
|
||||||
- x64
|
|
||||||
|
|
||||||
cache:
|
|
||||||
- '%LOCALAPPDATA%\electron\Cache'
|
|
||||||
- node_modules -> package.json
|
|
||||||
|
|
||||||
install:
|
|
||||||
- systeminfo | findstr /C:"OS"
|
|
||||||
- set PATH=C:\Ruby23-x64\bin;%PATH%
|
|
||||||
- ps: Install-Product node 10.13.0 x64
|
|
||||||
- yarn install --frozen-lockfile
|
|
||||||
|
|
||||||
build_script:
|
|
||||||
- node build\grunt.js
|
|
||||||
- yarn generate
|
|
||||||
- yarn lint-windows
|
|
||||||
- yarn test-node
|
|
||||||
|
|
||||||
test_script:
|
|
||||||
- node build\grunt.js test
|
|
||||||
|
|
||||||
environment:
|
|
||||||
SIGNAL_ENV: production
|
|
@ -1,52 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Setup - creates the local repo which will be mirrored up to S3, then back-fill it. Your
|
|
||||||
# future deploys will eliminate all old versions without these backfill steps:
|
|
||||||
# aptly repo create signal-desktop
|
|
||||||
# aptly mirror create -ignore-signatures backfill-mirror https://updates.signal.org/desktop/apt xenial
|
|
||||||
# aptly mirror update -ignore-signatures backfill-mirror
|
|
||||||
# aptly repo import backfill-mirror signal-desktop signal-desktop signal-desktop-beta
|
|
||||||
# aptly repo show -with-packages signal-desktop
|
|
||||||
#
|
|
||||||
# First run on a machine - uncomment the first set of 'aptly publish snapshot' commands,
|
|
||||||
# comment the other two. Sets up the two publish channels, one local, one to S3.
|
|
||||||
#
|
|
||||||
# Testing - comment out the lines with s3:$ENDPOINT to publish only locally. To eliminate
|
|
||||||
# effects of testing, remove package from repo, then move back to old snapshot:
|
|
||||||
# aptly repo remove signal-desktop signal-desktop_1.0.35_amd64
|
|
||||||
# aptly publish switch -gpg-key=57F6FB06 xenial signal-desktop_v1.0.34
|
|
||||||
#
|
|
||||||
# Pruning package set - we generally want 2-3 versions of each stream available,
|
|
||||||
# production and beta. You can remove old packages like this:
|
|
||||||
# aptly repo show -with-packages signal-desktop
|
|
||||||
# aptly repo remove signal-desktop signal-desktop_1.0.34_amd64
|
|
||||||
#
|
|
||||||
# Release:
|
|
||||||
# NAME=signal-desktop(-beta) VERSION=X.X.X ./aptly.sh
|
|
||||||
|
|
||||||
echo "Releasing $NAME build version $VERSION"
|
|
||||||
|
|
||||||
REPO=signal-desktop
|
|
||||||
CURRENT=xenial
|
|
||||||
# PREVIOUS=xenial
|
|
||||||
ENDPOINT=signal-desktop-apt # Matches endpoint name in .aptly.conf
|
|
||||||
SNAPSHOT=signal-desktop_v$VERSION
|
|
||||||
GPG_KEYID=57F6FB06
|
|
||||||
|
|
||||||
aptly repo add $REPO release/$NAME\_$VERSION\_*.deb
|
|
||||||
aptly snapshot create $SNAPSHOT from repo $REPO
|
|
||||||
|
|
||||||
# run these only on first release to a given repo from a given machine. the first set is
|
|
||||||
# for local testing, the second set is to set up the production server.
|
|
||||||
# https://www.aptly.info/doc/aptly/publish/snapshot/
|
|
||||||
# aptly publish snapshot -gpg-key=$GPG_KEYID -distribution=$CURRENT $SNAPSHOT
|
|
||||||
# aptly publish snapshot -gpg-key=$GPG_KEYID -distribution=$PREVIOUS $SNAPSHOT
|
|
||||||
# aptly publish snapshot -gpg-key=$GPG_KEYID -distribution=$CURRENT -config=.aptly.conf $SNAPSHOT s3:$ENDPOINT:
|
|
||||||
# aptly publish snapshot -gpg-key=$GPG_KEYID -distribution=$PREVIOUS -config=.aptly.conf $SNAPSHOT s3:$ENDPOINT:
|
|
||||||
|
|
||||||
# these update already-published repos, run every time after that
|
|
||||||
# https://www.aptly.info/doc/aptly/publish/switch/
|
|
||||||
aptly publish switch -gpg-key=$GPG_KEYID $CURRENT $SNAPSHOT
|
|
||||||
# aptly publish switch -gpg-key=$GPG_KEYID $PREVIOUS $SNAPSHOT
|
|
||||||
aptly publish switch -gpg-key=$GPG_KEYID -config=.aptly.conf $CURRENT s3:$ENDPOINT: $SNAPSHOT
|
|
||||||
# aptly publish switch -gpg-key=$GPG_KEYID -config=.aptly.conf $PREVIOUS s3:$ENDPOINT: $SNAPSHOT
|
|
||||||
|
|
Loading…
Reference in New Issue