40 Commits
Author SHA1 Message Date
Reagan Lopez c084b8316c Update Makefile to avoid GRS check
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-05-23 11:02:21 -07:00
Mark D Horn f75f9aa645 Update makefile for correct remove paths
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-06 16:03:45 -07:00
Mark D Horn 9be79bb102 bundles: Updated to validate the bundles
We had an unknown bundle in the list of user optional bundles,
now we always check that all bundles are valid.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 18:18:33 -07:00
Mark D Horn b9b8e95acb gui: Desktop Launcher fixes
Made all files and actions consistent with the clr-installer-gui name.

Fix security of starting Installer; user pkexec not sudo.
Added new rule for clr-installer-gui.

Fix bug so only one icon is present when running.

Switch to only using Mexican Spanish for translations.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-29 14:40:48 -07:00
Brian J Lovin c136712772 Add boot message, disable autolaunch, change PS1
Add a message printed on boot that gives basic information and
instructions to login as root and run clr-installer to install onto this
sytem.

Also change $PS1 on the installer image after logged in to
indicate we're booted into a live image.

Remove clr-installer.service from the Makefile and remove all the
toggling on or off from the yaml files.

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-04-26 17:48:23 -07:00
Mark D Horn 363a198d17 travis: reduce travis time to allow completion
The about of code and the number of checks has exceeded
the free resources of Travis in 30 minutes.

Pull two of the longer running from the regular Travis
runs and add a new lint-release target to be run before
a release is done.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-26 17:47:54 -07:00
Reagan Lopez 5b9b62b9ed gui: Sync the strings across translations
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-04-25 17:48:22 -07:00
Mark D Horn f1102d82d8 gui: Fix the desktop launcher
Updated to the desktop launcher
TOD: Switch to pkexec

Added localization
TODO: Add translations

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-23 16:11:39 -07:00
Mark D Horn 2a1cda1e1e Enable Verbose testing on demand
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-22 12:52:05 -07:00
Brian J Lovin 6edff98004 Makefile: Add iso templates to install
Copy over required template files for ISO creation to the proper
sytem-level directories when running 'make install'

Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
2019-04-19 15:06:47 -07:00
Reagan Lopez 4c1f7a9dfe gui: Introduces localization
- Modifies the screen flow to first launch the Welcome (Language) page
- Adds localization package "gotext"
- Enables localization for "en_US", "zh_CN" and "es_MX"
- Modifies the strings to use localized version

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-04-19 15:04:57 -07:00
Reagan Lopez 0f38516893 gui: Additional gui pages and styling updates
- Introduces new Hostname page
- Uses .css file for styling
- Adds search feature in Language, Keyboard and Timezone pages
- Updates button styles

Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-04-19 14:29:35 -07:00
Mark D Horn 3ad214fec8 Enable Parallelization in Makefile
Update the targets to enable parallel execution
of the linters as they now take a long time with the
inclusion of the GUI code.

Also enable parallel of the go-get commands.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-19 14:29:35 -07:00
Mark D Horn fee98fe335 Split the GUI and TUI
Build two different binaries for the TUI and GUI so
that we do not need to pull along overhead of the GUI
for installations without a graphics environment.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-04-19 14:29:35 -07:00
Ikey Doherty 2f9461b2e1 gui: Initial introduction of pre-alpha installer GUI (bootstrap)
This GUI has been implemented in GTK+ and is very much a work in
progress. So far, we have a number of initial pages implemented:

 - Disk Configuration
 - Bundles
 - Keyboard
 - Language
 - Timezone
 - Telemetry

Note, some of the pages are quite ugly and basic and will need
some improvements. Additionally, the disk config page is currently
very crude, only supporting automatic installation mode.

Additionally, the use of pkexec will ignore environmental variables
for the proxy, thus, proxy support is a bust in the GUI installer.
Some OS-level work is expected to resolve this magically anyway.

There are some ugly hardcoded elements, such as relying on a system
wallpaper file for CSS, and the cooked-in CSS vs an on-disk .css file
that designers can edit and tweak locally. Note that error handling
is incredibly immature right now, resulting in a panic. Realistically
we need to show a "success" or "failure" page within a stack on the
install page to let the user know what happened, and offer the choice
of a reboot.

As a final note, the UX is still not rock solid, and will need
a design-develop feedback loop to improve. This commit represents
my initial handoff for others to jump in and vastly improve the
GUI.

Signed-off-by: Ikey Doherty <ikey.doherty@intel.com>
2019-04-19 14:25:56 -07:00
Mark D Horn b935971cb1 Makefile updates for go 1.12
Need to force reinstalling the linters after the update
to golang 1.12.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-03-05 11:01:55 -08:00
Mark D Horn 4ce634b4f6 Make make work without git repo
Production builds are made from github source archives. As there
is no repository, git commands will not be available for builds.

Attempt to discover the version for the directory name or from
environment/make variable VERSION.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-11-30 10:01:03 -08:00
Mark D Horn b0fdb39f79 New target for adding new Vendor packages
Improve easy of adding new required packages to the project.
make vendor-add GOADD=<package>

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-11-20 14:00:49 -08:00
Mark D Horn 35c10f1c9f Add check to ensure vendor file status
This will ensure all needed files are checked in correctly.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-11-20 14:00:49 -08:00
Leandro Dorileo 9e372588b3 build: add uninstall rule
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-11-16 14:56:55 -08:00
Leandro Dorileo 21caf06965 build: make sure we let install command create dirs
Use the -d argument for install command and let it deal with the
target directory creation.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-11-16 14:56:55 -08:00
Mark D Horn 59e658e029 Only use the release formatted tags
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-11-15 16:37:40 -08:00
Mark D Horn 260f769b3e Improve binary versioning
Now the version string in the binary is set by the
existing tag, plus the sha if changes exists beyond
the tag, plus "dirty" if built with uncommitted changes.

Tagging of releases is now a manual process, but the Makefile
will still print the instructions.

Also saves us creating a PR just to change the version string.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-11-15 11:23:40 -08:00
Mark D Horn ba1ea2490f Only copy files under Git control
Old method would copy EVERYTHING to gopath for building, including
misc files, images, etc.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-11-15 11:23:40 -08:00
Leandro Dorileo 62a5a98c58 build: fix desktop file's path
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-11-09 11:20:34 -08:00
Leandro Dorileo 9215f091bf build: make the desktop file's directory before installing it
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-11-09 11:11:49 -08:00
Leandro Dorileo 9c1b3a0aa8 build: fix desktop wrapper install
We're considering it to be installed in the .gopath, but actually
we should be using the source dir (scripts).

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-11-09 09:49:43 -08:00
Leandro Dorileo a01cd36e82 desktop: install desktop artifacts
Change buildsystem to install the .desktop file and the desktop
wrapper. Whenever integrated in the package+bundle then we can remove
these steps from the live-desktop post install script.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-11-08 14:30:00 -08:00
Leandro Dorileo ec69e69217 build: always create dirs
If we're installing artifacts to a mock environment for example
the directories like /usr/bin may not exist.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-10-23 16:32:05 -07:00
Mark D Horn af6ca59ada Fix the path for make tag target
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-23 16:05:31 -07:00
Leandro Dorileo ce98bd1af0 linter: add go build -race
Use the -race flag to detect/test for race conditions.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-10-19 10:43:13 -07:00
Leandro Dorileo b65ac90313 build: fix build
Make the "check" target as a single shell block, and 1) improve the
fail output display (by showing the left over files) and 2) ignore
the /tmp directory itself (avoiding to consider it as a left over
when some process has touched /tmp for example).

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-10-16 14:16:46 -07:00
Leandro Dorileo f1b632ad64 build: add build-local-travis target
This target is intended to be used to test local-travis out of the
regular check-coverage workflow.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-10-16 14:16:46 -07:00
Mark D Horn eb0c9a22f6 More temp file clean up
- Hid the makefile comment
- Catch additional test case that need to clean up the
  temp downloaded file

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-03 12:22:51 -07:00
Mark D Horn e550ed70ea Clean Up all temporary files and directories
Ensure both the main code and test clean up after themselves.

Testing for changes in the /tmp directory done in the Makefile
to ensure the testing is done outside of the code itself.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-02 16:24:45 -07:00
Leandro Dorileo e7f87a7dba build: add build target as lint dependency
The lint target needs the project is built before actually running
linters, this patch makes the build target dependency of lint target.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-09-27 13:50:17 -07:00
Leandro Dorileo f19841287c local-travis: add a travis "emulation"
This patch introduces the local-travis, an small util program locally
emulate the remote travis execution. The program will read the travis
yaml file and execute the tasks.

The program is not intended to be manually executed but wrapped by
"make check-coverage". The program uses the env var TRAVIS_CONF to
know where to find the travis yaml file (the makefile will have it all
set for you).

We also use the http_proxy, https_proxy and no_proxy if they are set.
If we're executing a docker command that supports -e flag then these
variables are also handled.

The check-coverage.sh script will also auto update the coverage database
and commit the changes if it detects a coverage increase. In order to
do that check-coverage will only update the database if there's no
unstaged changes in the tree and if it's being executed with
make check-coverage.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
2018-09-26 14:33:21 -07:00
Mark D Horn af70594180 Makefile updates
- Ensure files are copied with same permissions
- New target for cleaning testing cache
- New target for running tests as root

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-09-10 14:55:50 -07:00
Mark D Horn 362feeea15 Update the Vendor Dependencies
Refactor makefile commands to be more go-like:
  make <item>-<action>

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-09-06 13:16:17 -05:00
Mark D Horn e84bb0e403 First Open Source push of code base
This is code is still alpha. The Text-based User Interface is
undergoing a resign of the layout before beta.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-08-13 14:14:30 -07:00