Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
3ed00e6f
Commit
3ed00e6f
authored
3 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Improve README
parent
d437b68a
No related branches found
No related tags found
3 merge requests
!68
Master merge
,
!24
Josh/local env migration
,
!11
Release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+61
-4
61 additions, 4 deletions
README.md
with
61 additions
and
4 deletions
README.md
+
61
−
4
View file @
3ed00e6f
...
...
@@ -59,13 +59,50 @@ So, if you make changes that break integration and merge the fixes to the
`master`
branch of integration, you ought to also merge the
`master`
branch
into the
`benchmark`
branch so that the benchmarks will continue to function.
##
Automate running locally
##
Scripts
`build.sh`
generates version information for all repositories under test and
### `build.sh`
[
`build.sh`
](
./build.sh
)
generates version information for all repositories under test and
builds binaries for them in the
`bin/`
directory.
`download_cmix_binaries`
downloads binaries from certain branches into the
`bin/`
directory.
The targeted operating system for the binaries can be specified via command line arguments.
### `download_cmix_binaries.sh`
The script
[
`download_cmix_binaries.sh`
](
./download_cmix_binaries.sh
)
accepts an optional flag that
specifies which platform to download the binaries for. If no flag is specified,
then the script defaults to the Linux binaries. Refer to the table below for
details on the flags.
|Long flag|Short flag|Effect|
|---|---|---|
|linux|l|downloads the Linux binaries|
|mac|m|downloads the Mac binaries|
A second argument can be provided which changes where the script downloads from.
By default it downloads from a public bucket which includes release and master builds.
|Flag name|Short flag|Effect|
|---|---|---|
|dev downloads|d|downloads from internal CI |
This script will require additional set-up steps, see the
[
Additional Set-Up
](
#Additional-Set-Up
)
section for
details.
### My Multi Word Header
### download.sh
[
`download.sh`
](
./download.sh
)
will download all network related repositories to the working
directory. Each repository will be individually built, with the binary being moved
to the
`binaries/`
directory, for the run script (
`run.sh`
) to initiate. This
will not require additional steps like
`download_cmix_binaries.sh`
, it will use up more
local storage. This will download binaries from release by default.
If you want to build and run custom binaries off of custom branches, you may create a branch in
local environment styled as
`feature/[INSERT_PROJECT_BRANCH]`
and run the download script
checked out into that feature branch.
### `update.sh`
`update.sh`
runs
`git pull`
for each repo under test, and by uncommenting the
relevant code, checks out the
`master`
branch of each repo before pulling. This
...
...
@@ -82,3 +119,23 @@ resulting logs, set the INTEGRATION\_EDITOR environment variable:
If you need to make a lot of exploratory changes to get things integrated,
using these utility scripts can speed up the process.
### Additional Set Up
You will need to add a personal access token to your environment vars to download binaries via the
`download_cmix_binaries.sh`
. You can generate one
[
here
](
https://gitlab.com/-/profile/personal_access_tokens
)
,
giving it the "api" scope.
Please add the following to your
`~/.zshrc`
or
`~/.bash_profile`
depending on your shell
(You could most likely find out what shell you're using by running
`echo $0`
in the terminal).
```
export GITLAB_ACCESS_TOKEN=token_here
```
You could also invoke the script with the var, if you don't want to set it in your file or use
a different token temporarily.
```
GITLAB_ACCESS_TOKEN=token_here ./download_cmix_binaries.sh [l/m] d
```
The script downloads from the CI when the second argument into it (the one after the platform flag) is
`d`
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment