This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from firstlookmedia/develop
Version 0.3.5
- Loading branch information
Showing
14 changed files
with
534 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,237 @@ | ||
workflows: | ||
version: 2 | ||
test: | ||
jobs: | ||
- test | ||
version: 2 | ||
version: 2.1 | ||
|
||
jobs: | ||
|
||
test: | ||
environment: | ||
FLM_ENV: "test" | ||
docker: | ||
- image: circleci/python:3-stretch-node-browsers | ||
- image: circleci/python:3.7-buster | ||
steps: | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y gnupg2 python3-pyqt5 tor xvfb | ||
- run: | ||
name: Start tor service | ||
command: sudo service tor start | ||
- checkout | ||
- run: | ||
name: Install python dependencies | ||
command: pipenv install --dev | ||
- run: | ||
name: Run tests | ||
command: pipenv run xvfb-run -s "-screen 0 1280x1024x24" python setup.py pytest | ||
|
||
build-ubuntu-bionic: | ||
docker: | ||
- image: ubuntu:18.04 | ||
steps: | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y git ssh ruby-dev rubygems build-essential fakeroot python-all python3-all dh-python python3-pyqt5 python3-stdeb python3-requests python3-socks python3-packaging python3-dateutil python3-pytest python3-pytest-runner gnupg2 | ||
gem install --no-ri --no-rdoc rake | ||
gem install --no-ri --no-rdoc package_cloud | ||
- checkout | ||
- run: | ||
name: Create the .deb package | ||
command: | | ||
./install/build_deb.sh | ||
dpkg -i deb_dist/gpgsync_*.deb | ||
- run: | ||
name: Deploy to packagecloud.io | ||
command: | | ||
VERSION=$(cat share/version |cut -dv -f2) | ||
package_cloud push firstlookmedia/code/ubuntu/bionic deb_dist/gpgsync_${VERSION}-1_all.deb | ||
package_cloud push firstlookmedia/code/ubuntu/bionic deb_dist/gpgsync_${VERSION}-1.dsc | ||
build-ubuntu-disco: | ||
docker: | ||
- image: ubuntu:19.04 | ||
steps: | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y git ssh ruby-dev rubygems build-essential fakeroot python-all python3-all dh-python python3-pyqt5 python3-stdeb python3-requests python3-socks python3-packaging python3-dateutil python3-pytest python3-pytest-runner gnupg2 | ||
gem install --no-ri --no-rdoc rake | ||
gem install --no-ri --no-rdoc package_cloud | ||
- checkout | ||
- run: | ||
name: Create the .deb package | ||
command: | | ||
./install/build_deb.sh | ||
dpkg -i deb_dist/gpgsync_*.deb | ||
- run: | ||
name: Deploy to packagecloud.io | ||
command: | | ||
VERSION=$(cat share/version |cut -dv -f2) | ||
package_cloud push firstlookmedia/code/ubuntu/disco deb_dist/gpgsync_${VERSION}-1_all.deb | ||
package_cloud push firstlookmedia/code/ubuntu/disco deb_dist/gpgsync_${VERSION}-1.dsc | ||
build-ubuntu-eoan: | ||
docker: | ||
- image: ubuntu:19.10 | ||
steps: | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y git ssh ruby-dev rubygems build-essential fakeroot python-all python3-all dh-python python3-pyqt5 python3-stdeb python3-requests python3-socks python3-packaging python3-dateutil python3-pytest python3-pytest-runner gnupg2 | ||
gem install --no-ri --no-rdoc rake | ||
gem install --no-ri --no-rdoc package_cloud | ||
- checkout | ||
- run: | ||
name: Create the .deb package | ||
command: | | ||
./install/build_deb.sh | ||
dpkg -i deb_dist/gpgsync_*.deb | ||
- run: | ||
name: Deploy to packagecloud.io | ||
command: | | ||
VERSION=$(cat share/version |cut -dv -f2) | ||
package_cloud push firstlookmedia/code/ubuntu/eoan deb_dist/gpgsync_${VERSION}-1_all.deb | ||
package_cloud push firstlookmedia/code/ubuntu/eoan deb_dist/gpgsync_${VERSION}-1.dsc | ||
build-debian-buster: | ||
docker: | ||
- image: debian:buster | ||
steps: | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y git ssh ruby-dev rubygems build-essential fakeroot python-all python3-all dh-python python3-pyqt5 python3-stdeb python3-requests python3-socks python3-packaging python3-dateutil python3-pytest python3-pytest-runner gnupg2 | ||
gem install --no-ri --no-rdoc rake | ||
gem install --no-ri --no-rdoc package_cloud | ||
- checkout | ||
- run: | ||
name: Create the .deb package | ||
command: | | ||
./install/build_deb.sh | ||
dpkg -i deb_dist/gpgsync_*.deb | ||
- run: | ||
name: Deploy to packagecloud.io | ||
command: | | ||
VERSION=$(cat share/version |cut -dv -f2) | ||
package_cloud push firstlookmedia/code/debian/buster deb_dist/gpgsync_${VERSION}-1_all.deb | ||
package_cloud push firstlookmedia/code/debian/buster deb_dist/gpgsync_${VERSION}-1.dsc | ||
build-debian-bullseye: | ||
docker: | ||
- image: debian:bullseye | ||
steps: | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y git ssh ruby-dev rubygems build-essential fakeroot python-all python3-all dh-python python3-pyqt5 python3-stdeb python3-requests python3-socks python3-packaging python3-dateutil python3-pytest python3-pytest-runner gnupg2 | ||
gem install --no-ri --no-rdoc rake | ||
gem install --no-ri --no-rdoc package_cloud | ||
- checkout | ||
- run: | ||
name: Create the .deb package | ||
command: | | ||
./install/build_deb.sh | ||
dpkg -i deb_dist/gpgsync_*.deb | ||
- run: | ||
name: Deploy to packagecloud.io | ||
command: | | ||
VERSION=$(cat share/version |cut -dv -f2) | ||
package_cloud push firstlookmedia/code/debian/bullseye deb_dist/gpgsync_${VERSION}-1_all.deb | ||
package_cloud push firstlookmedia/code/debian/bullseye deb_dist/gpgsync_${VERSION}-1.dsc | ||
build-fedora-30: | ||
docker: | ||
- image: fedora:30 | ||
steps: | ||
- run: | ||
name: Verify python versions | ||
name: Install dependencies | ||
command: | | ||
dnf install -y git openssh ruby-devel make automake gcc gcc-c++ rpm-build qt5-devel python3-qt5 python3-requests python3-pytest-runner python3-packaging python3-dateutil gnupg2 | ||
gem install package_cloud | ||
- checkout | ||
- run: | ||
name: Create the .rpm package | ||
command: | | ||
./install/build_rpm.sh | ||
dnf install -y dist/gpgsync-*-1.noarch.rpm | ||
- run: | ||
name: Deploy to packagecloud.io | ||
command: | | ||
python3 --version | ||
pip --version | ||
- run: sudo apt install gnupg2 python3-pyqt5 tor | ||
VERSION=$(cat share/version |cut -dv -f2) | ||
package_cloud push firstlookmedia/code/fedora/30 dist/gpgsync-${VERSION}-1.noarch.rpm | ||
package_cloud push firstlookmedia/code/fedora/30 dist/gpgsync-${VERSION}-1.src.rpm | ||
build-fedora-31: | ||
docker: | ||
- image: fedora:31 | ||
steps: | ||
- run: | ||
name: Restart tor service | ||
command: sudo service tor restart | ||
name: Install dependencies | ||
command: | | ||
dnf install -y git openssh ruby-devel make automake gcc gcc-c++ rpm-build qt5-devel python3-qt5 python3-requests python3-pytest-runner python3-packaging python3-dateutil gnupg2 | ||
gem install package_cloud | ||
- checkout | ||
- run: | ||
name: Install Python deps in a venv | ||
name: Create the .rpm package | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install -q --upgrade pip | ||
pip install -r ./install/requirements.txt | ||
pip install -r ./install/requirements-tests.txt | ||
./install/build_rpm.sh | ||
dnf install -y dist/gpgsync-*-1.noarch.rpm | ||
- run: | ||
name: run tests | ||
name: Deploy to packagecloud.io | ||
command: | | ||
. venv/bin/activate | ||
python setup.py pytest | ||
VERSION=$(cat share/version |cut -dv -f2) | ||
package_cloud push firstlookmedia/code/fedora/31 dist/gpgsync-${VERSION}-1.noarch.rpm | ||
package_cloud push firstlookmedia/code/fedora/31 dist/gpgsync-${VERSION}-1.src.rpm | ||
workflows: | ||
version: 2 | ||
test: | ||
jobs: | ||
- test | ||
build-tags: | ||
jobs: | ||
- build-ubuntu-bionic: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
- build-ubuntu-disco: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
- build-ubuntu-eoan: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
- build-debian-buster: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
- build-debian-bullseye: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
- build-fedora-30: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
- build-fedora-31: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.