Skip to content

Commit

Permalink
remove travis remains (#3051)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Mar 14, 2023
1 parent 6803195 commit eba0f9a
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 527 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ e2e-output
dist
coverage
.github
.travis
.vscode
scripts
app/src/assets/i18n
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/publish-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ runs:
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
- name: Publish image
shell: bash
run: ./scripts/travis/deploy/publish.sh "${{ inputs.domain }}" "$REPO_SLUG" "${{ inputs.username }}" "${{ inputs.password }}" "$TAG_VERSION" "${{ inputs.branch_name }}" "${{ inputs.dry-run }}"
run: ./scripts/gh/docker-publish.sh "${{ inputs.domain }}" "$REPO_SLUG" "${{ inputs.username }}" "${{ inputs.password }}" "$TAG_VERSION" "${{ inputs.branch_name }}" "${{ inputs.dry-run }}"
17 changes: 10 additions & 7 deletions .github/workflows/aca-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,34 @@ on:
default: alfresco-applications
env:
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
TRAVIS_COMMIT: ${{ github.sha }}
TRAVIS_BUILD_NUMBER: ${{ github.run_id }}
GH_COMMIT: ${{ github.sha }}
GH_BUILD_NUMBER: ${{ github.run_id }}
NODE_OPTIONS: "--max-old-space-size=5120"

jobs:
trigger_aca_upstream:
name: Trigger ACA upstream
name: Trigger ACA Upstream
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install NPM

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v1.35.0
with:
username: ${{ vars.BOT_GITHUB_USERNAME }}
email: ${{ vars.BOT_GITHUB_EMAIL }}
global: true
- name: Trigger upstream

- name: Trigger Upstream
shell: bash
run: |
npm install github-api
./scripts/travis/update/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $TRAVIS_COMMIT -r ${{ inputs.repo_to_update || 'alfresco-applications' }}
./scripts/gh/update/update-project.sh -p $GH_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $GH_COMMIT -r ${{ inputs.repo_to_update || 'alfresco-applications' }}
33 changes: 0 additions & 33 deletions app/project.metadata.json

This file was deleted.

24 changes: 14 additions & 10 deletions docs/extending/publish-to-npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,40 @@
Title: Publish to npm
---

# Create a new library
## Create a new library

New library can be created using standard `ng` command

e.g. if we would like to create `aca-new-lib` we need to run the following:

```
```sh
ng generate @schematics/angular:library aca-new-lib
```

# Publish library
## Publish library


### Build library

## Build library
In order to publish new library, we need to build it first. You need to add build of your library to `build-libs` command in `package.json`

```
```sh
"build-libs": "ng build aca-shared && ng build aca-new-lib",
```

## Update publish script
If we would like to publish the new library we need to update `scripts/ci/npm/publish-libs.sh`
### Update publish script

If we would like to publish the new library we need to update `scripts/gh/npm-publish.sh`

The only thing that need to be done is to update `PROJECTS` variable by adding your library name i.e.

```
```sh
PROJECTS=(
'aca-shared',
'aca-new-lib'
);
```
# Caveats

## Caveats

- The versions of libraries are updated automatically by the script (should not be done manually)
- In travis setting you can find `PUBLISH_PROJECTS` variable, which can be used for enabling dry mode when running the publish command
6 changes: 3 additions & 3 deletions e2e/e2e-config/utils/build-number.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const buildNumber = () => {
let buildNumber = process.env.TRAVIS_BUILD_NUMBER;
let buildNumber = process.env.GH_BUILD_NUMBER;
if (!buildNumber) {
process.env.TRAVIS_BUILD_NUMBER = Date.now();
process.env.GH_BUILD_NUMBER = Date.now();
}

return process.env.TRAVIS_BUILD_NUMBER;
return process.env.GH_BUILD_NUMBER;
}

module.exports = buildNumber;
75 changes: 0 additions & 75 deletions scripts/app-config-replace.js

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/ci/job_hooks/after_e2e.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/ci/job_hooks/before-playwright.sh

This file was deleted.

48 changes: 0 additions & 48 deletions scripts/ci/job_hooks/before_e2e.sh

This file was deleted.

42 changes: 0 additions & 42 deletions scripts/ci/job_hooks/before_install.sh

This file was deleted.

44 changes: 0 additions & 44 deletions scripts/ci/jobs/affected-project-with.sh

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/ci/jobs/check-link-adf.sh

This file was deleted.

0 comments on commit eba0f9a

Please sign in to comment.