chore(tests): update mastodon to v2.6.5 (#764)

* chore(tests): update mastodon to v2.6.5

* fix for travis cache of mastodon git repo
This commit is contained in:
Nolan Lawson 2018-12-08 12:46:00 -08:00 committed by GitHub
parent 7876f82871
commit dd349e2ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const writeFile = pify(fs.writeFile.bind(fs))
const dir = __dirname
const GIT_URL = 'https://github.com/tootsuite/mastodon.git'
const GIT_TAG = 'v2.6.1'
const GIT_TAG = 'v2.6.5'
const DB_NAME = 'pinafore_development'
const DB_USER = 'pinafore'
@ -43,6 +43,7 @@ async function cloneMastodon () {
} catch (e) {
console.log('Cloning mastodon...')
await exec(`git clone --single-branch --branch master ${GIT_URL} "${mastodonDir}"`)
await exec(`git fetch origin --tags`, { cwd: mastodonDir }) // may already be cloned, e.g. in CI
await exec(`git checkout ${GIT_TAG}`, { cwd: mastodonDir })
await writeFile(path.join(dir, '../mastodon/.env'), envFile, 'utf8')
}