Skip to content

Commit

Permalink
chore: add travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
fmal committed Oct 10, 2019
1 parent 211f4ed commit 5476745
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 6 deletions.
45 changes: 45 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
sudo: false
language: node_js
node_js: '10'
install:
- npm ci
cache:
directories:
- '$HOME/.npm'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# needed by nodegit (repo-cooker)
- libstdc++-4.9-dev
git:
depth: 9999
notifications:
email: false
script:
- |
if [[ $SKIP_TESTS != 'true' ]]; then
npm prune
npm run checkdeps
npm run typecheck
npm run lint
npm test
fi
after_success:
- |
if [[ $TRAVIS_SECURE_ENV_VARS == 'true' ]]; then
git remote set-url origin https://fmal:${GH_TOKEN}@github.com/fmal/monorepo;
git config --global user.email "travis@travis-ci.com";
fi
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_PULL_REQUEST == 'true' ]]; then
npx codecov -t $(CODECOV_TOKEN)
fi
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'next' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
printf "//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" >> ~/.npmrc
npm install --no-save nodegit@0.24.3
npm run release -- --no-parallel --print-release
fi
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"test:coverage": "npm test -- --coverage",
"test:ci": "cross-env CI=true npm test",
"typecheck": "tsc",
"prerelease": "npm run build",
"release": "repo-cooker --release",
"release:preview": "repo-cooker --dry-run --release --print-release",
"release:preview": "npm run release -- --dry-run --print-release",
"release:debug": "npm run release -- --dry-run --devtools",
"commit": "commit",
"plop": "plop"
},
Expand Down
2 changes: 1 addition & 1 deletion repo-cooker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process.env.REPO_COOKER_GITHUB_TOKEN = process.env.GH_TOKEN;

export const cooker = Cooker(process.argv, {
devtools: {
host: 'localhost:8787, reconnect: false'
host: 'localhost:8787'
},
path: '.',
packagesGlobs: ['packages/@fmal/*']
Expand Down

0 comments on commit 5476745

Please sign in to comment.