Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add Travis secret #7

Merged
merged 2 commits into from
Dec 8, 2023

chore: Clean old Travis secret

80c3c35
Select commit
Loading
Failed to load commit list.
Merged

chore: Add Travis secret #7

chore: Clean old Travis secret
80c3c35
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Dec 8, 2023 in 19m 22s

Build Passed

The build passed. This is a change from the previous build, which errored.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #7 chore: Add Travis secret.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has four jobs, running in two sequential stages.

Stage 1: prebuild

This stage passed.

Job Node.js ENV OS State
9.1 Lint 16 MATTERMOST_CHANNEL='{"dev":"app-photos","beta":"app-photos,publication","stable":"app-photos,publication"}' Linux passed
9.2 Unit tests node 16 16 MATTERMOST_CHANNEL='{"dev":"app-photos","beta":"app-photos,publication","stable":"app-photos,publication"}' Linux passed
9.3 Unit tests node 20 20 MATTERMOST_CHANNEL='{"dev":"app-photos","beta":"app-photos,publication","stable":"app-photos,publication"}' Linux passed

Stage 2: build

This stage passed.

Job Node.js ENV OS State
9.4 Photos web 16 MATTERMOST_CHANNEL='{"dev":"app-photos","beta":"app-photos,publication","stable":"app-photos,publication"}' Linux passed

Build Configuration

Build Option Setting
Language Ruby
Operating System Linux (Focal)
Build Configuration
{
  "node-preset": {
    "language": "node_js",
    "node_js": [
      16,
      20
    ],
    "cache": {
      "yarn": true,
      "directories": [
        "node_modules"
      ]
    },
    "before_install": [
      "curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4",
      "export PATH=\"$HOME/build/cozy/cozy-photos:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH\""
    ]
  },
  "language": "ruby",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "branches": {
    "only": [
      "master",
      "/^\\d+\\.\\d+\\.\\d+(\\-beta.\\d+)?$/"
    ]
  },
  "env": [
    "global={:MATTERMOST_CHANNEL=>\"'{\\\"dev\\\":\\\"app-photos\\\",\\\"beta\\\":\\\"app-photos,publication\\\",\\\"stable\\\":\\\"app-photos,publication\\\"}'\"}=MATTERMOST_HOOK_URL=[secure]=REGISTRY_TOKEN=[secure]=GITHUB_TOKEN=[secure]=[One of the secure variables in your .travis.yml has an invalid format.]"
  ],
  "stages": [
    {
      "name": "prebuild"
    },
    {
      "name": "build"
    }
  ],
  "jobs": {
    "include": [
      {
        "name": "Lint",
        "stage": "prebuild",
        "language": "node_js",
        "node_js": "16",
        "cache": {
          "yarn": true,
          "directories": [
            "node_modules"
          ]
        },
        "before_install": [
          "curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4",
          "export PATH=\"$HOME/build/cozy/cozy-photos:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH\""
        ],
        "script": [
          "yarn lint"
        ]
      },
      {
        "name": "Unit tests node 16",
        "stage": "prebuild",
        "language": "node_js",
        "node_js": "16",
        "cache": {
          "yarn": true,
          "directories": [
            "node_modules"
          ]
        },
        "before_install": [
          "curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4",
          "export PATH=\"$HOME/build/cozy/cozy-photos:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH\""
        ],
        "script": [
          "yarn test"
        ]
      },
      {
        "name": "Unit tests node 20",
        "stage": "prebuild",
        "language": "node_js",
        "node_js": "20",
        "cache": {
          "yarn": true,
          "directories": [
            "node_modules"
          ]
        },
        "before_install": [
          "curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4",
          "export PATH=\"$HOME/build/cozy/cozy-photos:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH\""
        ],
        "script": [
          "yarn test"
        ]
      },
      {
        "name": "Photos web",
        "stage": "build",
        "language": "node_js",
        "node_js": "16",
        "cache": {
          "yarn": true,
          "directories": [
            "node_modules"
          ]
        },
        "before_install": [
          "curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4",
          "export PATH=\"$HOME/build/cozy/cozy-photos:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH\""
        ],
        "env": [
          {
            "COZY_APP_SLUG": "photos"
          }
        ],
        "before_script": [
          "yarn run cozy-ci-transifex",
          "[ \"$TRAVIS_SECURE_ENV_VARS\" != \"false\" ] && openssl aes-256-cbc -K $encrypted_497d1a9dc404_key -iv $encrypted_497d1a9dc404_iv -in id_rsa_downcloud_photos.enc -out id_rsa_downcloud_photos -d",
          "[ \"$TRAVIS_SECURE_ENV_VARS\" != \"false\" ] && eval \"$(ssh-agent -s)\"",
          "[ \"$TRAVIS_SECURE_ENV_VARS\" != \"false\" ] && chmod 600 id_rsa_downcloud_photos",
          "[ \"$TRAVIS_SECURE_ENV_VARS\" != \"false\" ] && ssh-add id_rsa_downcloud_photos"
        ],
        "script": [
          "echo 'pull langages' && echo -en 'travis_fold:start:txpull\\\\r'",
          "yarn tx",
          "echo -en 'travis_fold:end:txpull\\\\r'",
          "echo 'build' && echo -en 'travis_fold:start:build\\\\r'",
          "yarn build:$COZY_APP_SLUG:browser",
          "echo -en 'travis_fold:end:build\\\\r'"
        ],
        "before_deploy": [
          "yarn add cozy-app-publish"
        ],
        "deploy": [
          {
            "repo": "cozy/cozy-photos",
            "provider": "script",
            "script": "yarn run deploy:$COZY_APP_SLUG",
            "on": {
              "branch": [
                "master"
              ]
            },
            "skip_cleanup": true
          },
          {
            "repo": "cozy/cozy-photos",
            "provider": "script",
            "script": "yarn run deploy:$COZY_APP_SLUG",
            "on": {
              "tags": true
            },
            "skip_cleanup": true
          }
        ]
      }
    ]
  }
}