Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

frontend: Remove GUI for Track 2 #3067

Merged
merged 2 commits into from
Mar 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
21 changes: 0 additions & 21 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ alias(
actual = "//tests/smoke:smoke",
)

alias(
name = "backend",
actual = "//installer/cmd/installer:installer",
)

alias(
name = "cli",
actual = "//installer/cmd/tectonic:tectonic",
Expand All @@ -98,8 +93,6 @@ load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
genrule(
name = "tarball",
srcs = [
":tarball_installer_binary_darwin",
":tarball_installer_binary_linux",
":tarball_tectonic_binary_darwin",
":tarball_tectonic_binary_linux",
":tarball_terraform_configuration",
Expand Down Expand Up @@ -131,20 +124,6 @@ pkg_tar(
strip_prefix = ".",
)

pkg_tar(
name = "tarball_installer_binary_darwin",
mode = "0755",
package_dir = "tectonic-installer/darwin",
srcs = ["//installer/cmd/installer:darwin"],
)

pkg_tar(
name = "tarball_installer_binary_linux",
mode = "0755",
package_dir = "tectonic-installer/linux",
srcs = ["//installer/cmd/installer:linux"],
)

pkg_tar(
name = "tarball_tectonic_binary_darwin",
mode = "0755",
Expand Down
21 changes: 2 additions & 19 deletions Documentation/dev/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ tectonic
├── platforms
└── tectonic-installer
├── darwin
├── installer
   ├── tectonic
│   ├── terraform
│   └── terraform-provider-matchbox
└── linux
├── installer
├── tectonic
├── terraform
└── terraform-provider-matchbox
```
Expand All @@ -96,23 +96,6 @@ tectonic_1.2.3-beta

*Note*: the generated tarball will not include the version string in its own name since output names must be known ahead of time in Bazel. To include the version in the tarball name, copy or move the archive with the desired name in the destination.

## Building the Installer Binary

For cases where the entire Tectonic tarball is not needed and only the Tectonic Installer GUI is required, the installer binary can be built by itself.
To build the Tectonic Installer binary, issue the following command from the `tectonic-installer` root directory:

```sh
bazel build backend
```

This will produce a binary located at `bazel-bin/installer/cmd/installer/linux_amd64_pure_stripped/installer` when built on a Linux machine or `bazel-bin/installer/cmd/installer/darwin_amd64_pure_stripped/installer` if built on a Mac.

To build a cross-compiled binary for another platform, e.g. a Darwin binary on a Linux machine, specify the target platform explicitly:

```sh
bazel build backend --experimental_platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64
```

## Building the Smoke Test Binary

We also use Bazel to build the smoke test binary. To do so, run:
Expand Down
96 changes: 0 additions & 96 deletions Documentation/dev/frontend.md

This file was deleted.

3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ quayCreds = [
)
]

defaultBuilderImage = 'quay.io/coreos/tectonic-builder:v1.44'
defaultBuilderImage = 'quay.io/coreos/tectonic-builder:v1.45'
tectonicSmokeTestEnvImage = 'quay.io/coreos/tectonic-smoke-test-env:v5.16'
tectonicBazelImage = 'quay.io/coreos/tectonic-builder:bazel-v0.3'
originalCommitId = 'UNKNOWN'
Expand Down Expand Up @@ -203,7 +203,6 @@ pipeline {

withDockerContainer(tectonicBazelImage) {
sh "bazel test terraform_fmt --test_output=all"
sh "bazel test installer/frontend:unit --test_output=all"
sh "bazel test installer:cli_units --test_output=all"
sh"""#!/bin/bash -ex
bazel build tarball tests/smoke
Expand Down
12 changes: 0 additions & 12 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ git_repository(
commit = "3f38260eda98d23e9142bb905caede5912508770"
)

http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "7550c6f7904f602b69c2a69d92f7c739db87479336554c7a31d0649519ec414e",
type = "tar.gz",
strip_prefix = "rules_nodejs-0.3.1",
url = "https://codeload.github.com/bazelbuild/rules_nodejs/tar.gz/0.3.1",
)

http_archive(
name = "bazel_gazelle",
sha256 = "4952295aa35241082eefbb53decd7d4dd4e67a1f52655d708a1da942e3f38975",
Expand All @@ -39,10 +31,6 @@ go_rules_dependencies()

go_register_toolchains()

load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")

node_repositories(package_json = ["//installer/frontend:package.json"])

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()
Expand Down
Loading