TravisCI
Personal access tokens
「Environment Variables」で、取得した Token を登録します。
build
errorになりました。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! redux-saga-axios-template@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the redux-saga-axios-template@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
以下のようなWarningが出てるとCIが失敗するようです。
./src/redux/sagas/index.js
Line 1: 'take' is defined but never used no-unused-vars
Line 1: 'fork' is defined but never used no-unused-vars
Line 1: 'delay' is defined but never used no-unused-vars
Line 2: 'history' is defined but never used no-unused-vars
こんな感じで成功しました
```
yarn run v1.3.2
(node:5273) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
The project was built assuming it is hosted at /redux-saga-axios-template/.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
To publish it at https://sugasaki.github.io/redux-saga-axios-template/, run:
yarn run deploy
Find out more about deployment here:
http://bit.ly/CRA-deploy
Done in 23.05s.
The command "yarn run build" exited with 0.
Installing deploy dependencies
Logged in as @sugasaki (sugasaki)
Deploying application
Done. Your build exited with 0.
```