This repository was archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #2 from secman-team/main
Pull New
- Loading branch information
Showing
25 changed files
with
259 additions
and
586 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,61 +1,103 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
ruby: circleci/[email protected] | ||
win: circleci/[email protected] | ||
|
||
linux_environment: &linux_environment | ||
PLATFORM: "linux" | ||
|
||
windows_environment: &windows_environment | ||
PLATFORM: "windows" | ||
|
||
install_secman_linux: &install_secman_linux | ||
name: Install Secman (Linux) | ||
command: curl -fsSL https://secman-team.github.io/install.sh | bash | ||
|
||
install_secman_windows: &install_secman_windows | ||
name: Install Secman (Windows) | ||
command: iwr -useb https://secman-team.github.io/install.ps1 | iex | ||
|
||
test_secman: &test_secman | ||
name: Run Secman && Test It | ||
command: | | ||
git clone https://github.com/secman-team/.secman.ex $HOME/.secman | ||
secman | ||
jobs: | ||
build: | ||
docker: | ||
# specify the version | ||
- image: circleci/golang:1.9 | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
# documented at https://circleci.com/docs/2.0/circleci-images/ | ||
# - image: circleci/postgres:9.4 | ||
|
||
#### TEMPLATE_NOTE: go expects specific checkout path representing url | ||
#### expecting it in the form of | ||
#### /go/src/github.com/circleci/go-tool | ||
#### /go/src/bitbucket.org/circleci/go-tool | ||
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}} | ||
steps: | ||
- checkout | ||
|
||
# specify any bash command here prefixed with `run: ` | ||
- run: go get -d ./... | ||
|
||
install_secman: | ||
|
||
linux_build: | ||
environment: | ||
<<: *linux_environment | ||
|
||
machine: | ||
image: ubuntu-1604:202004-01 | ||
image: ubuntu-1604:201903-01 | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: Install Secman | ||
command: | | ||
curl -fsSL https://secman-team.github.io/install/install.sh | bash | ||
<<: *install_secman_linux | ||
|
||
clone_dot_secman_ex: | ||
machine: | ||
image: ubuntu-1604:202004-01 | ||
linux_test: | ||
environment: | ||
<<: *linux_environment | ||
|
||
steps: | ||
- run: git clone https://github.com/secman-team/.secman.ex ~/.secman | ||
|
||
test_secman: | ||
machine: | ||
image: ubuntu-1604:202004-01 | ||
image: ubuntu-1604:201903-01 | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
<<: *install_secman_linux | ||
|
||
- run: | ||
name: Test Secman | ||
command: | | ||
curl -fsSL https://secman-team.github.io/install/install.sh | bash | ||
secman | ||
<<: *test_secman | ||
|
||
windows_build: | ||
environment: | ||
<<: *windows_environment | ||
|
||
executor: win/default | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
<<: *install_secman_windows | ||
shell: powershell.exe | ||
|
||
windows_test: | ||
environment: | ||
<<: *windows_environment | ||
|
||
executor: win/default | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
<<: *install_secman_windows | ||
shell: powershell.exe | ||
|
||
- run: | ||
<<: *test_secman | ||
shell: powershell.exe | ||
|
||
workflows: | ||
test_install_secman: | ||
version: 2.1 | ||
linux_jobs: | ||
jobs: | ||
- install_secman | ||
|
||
test__secman: | ||
- linux_build | ||
- linux_test | ||
|
||
windows_jobs: | ||
jobs: | ||
- clone_dot_secman_ex | ||
- test_secman | ||
- windows_build | ||
- windows_test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,4 @@ secret_key.rb | |
|
||
# beta folder | ||
/api/sync/beta | ||
go.sum |
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$releases = "https://api.github.com/repos/secman-team/secman/releases" | ||
|
||
$tag = (Invoke-WebRequest -Uri $releases -UseBasicParsing | ConvertFrom-Json)[0].tag_name | ||
|
||
Write-Host $tag |
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
Submodule docs
deleted from
633f28
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.